<? include("../connect.php"); ?> <?php @session_start(); $ses_userid =$_SESSION[ses_userid]; $ses_username = $_SESSION[ses_username]; if($ses_userid <> session_id() or $ses_username ==""){ echo "Please Login to system<br />"; echo "<a href=../login.php>Back</a>"; exit(); } if($_SESSION[ses_status] == "SUPERUSER" ) { $rent = "rent.php"; }else{ $rent ="rent2.php";} $ke = $_POST['keyword']; if($ke == 11){ echo("<script> alert('กรุณาเลือกบริษัทที่ท่านต้องการก่อน'); window.location='se_com.php';</script>"); } if($ke == "1"){ $ke1 = "ทุกบริษัท"; $ke = ""; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <Link href="../css/menuaddedit.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> body,td,th { font-size: 13px; color: #000000; } .center { text-align: center; color: #000000; } body { } .d { text-align: center; } .d { text-align: center; } .txt #form1 p label { font-size: 12px; } .txt #form1 strong p { font-size: 12px; } .txt #form1 table { color: #FFF; } .txt #form1 table tr td strong { color: #FFFFFF; } .txt #form1 table tr td label { color: #FFFFFF; } .txt #form1 table tr td { color: #FFFFFF; font-weight: bold; } .pu { font-size: 10px; } a { font-size: 12px; color: #FFF; } a:hover { color: #000; font-size: 14px; } </style> <script language="javascript"> function fncSubmit(strPage) { if(strPage == "page1") { document.form1.action="<?php echo $_SERVER['PHP_SELF']; ?>"; } if(strPage == "page2") { document.form1.action="phpexcel.php"; } if(strPage == "page3") { document.form1.action="phpword.php"; } if(strPage == "page4") { document.form1.action="PDF.php"; } document.form1.submit(); } </script> <script> function doDisableTextbox(frm){ if(frm.keyword.options[frm.keyword.selectedIndex].value == "0") frm.name_com.disabled = true; else frm.name_com.disabled = false; } </script> </head> <body background="../images/bgr.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"><table width="778" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#3D444B"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="138" align="left" valign="top" background="../images/topimg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="415" height="38"><img src="../images/trans.gif" width="2" height="38"></td> <td> </td> </tr> <tr> <td> </td> <td align="left" valign="top"><img src="../images/op.png" width="500" height="45"></td> </tr> </table></td> </tr> <tr> <td height="26" align="center" valign="middle" background="../images/nav-bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="center" valign="top"> <td width="15%"><a href="../user/returntomenu.php" class="navlink">กลับเมนู</a></td> <td width="15%"><a href="selec.php" class="navlink">ระบบค้นหา</a></td> <td width="19%"><a href="se_com.php" class="navlink" style="font-size:14px">ระบบจัดทำรานงาน</a></td> <td width="12%"><a href="../newtest/allrent.php" class="navlink">ยอดรายได้</a></td> <td width="4%"> </td> <td width="4%"> </td> <td width="17%"> </td> <td width="14%"><a href=javascript:if(confirm('ยืนยันการออกจากระบบ')==true){window.location='../logout.php';} class="pu">ออกจากระบบ</a></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="5" align="left" valign="top" background="../images/nav_under.gif"><img src="../images/nav_under.gif" width="5" height="5"></td> </tr> <tr> <td height="20" align="left" valign="top"> </td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="128" align="center"> </td> <td width="450"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top" class="welcome"> </td> </tr> <tr> <td align="left" valign="top" class="txt"> <form id="form1" name="form1" method="get" action="page.cgi"> <p>ระบบจัดทำรายงาน:<br /> </p> <table width="99%" border="0"> <tr> <td width="28%"> </td> <td width="72%"><label> <input name="field_search" type="hidden" value="com.name_com" checked="checked" /> </label> <label><br> </label></td> </tr> <tr> <td><label>ชื่อบริษัท</label> <label> :</label></td> <td><p> <input name="keyword" type="hidden" id="keyword" size="30" value="<?=$ke?>"/> <label for="name"></label> <? echo $ke ?><? echo $ke1 ?></p></td> </tr> <tr> <td height="28">ตำแหน่งคำ : <label><br> </label></td> <td rowspan="2"><select name="match" id="match"> <option value="part">ส่วนของคำ</option> <option value="whole">ตรงกันทั้งคำ</option> </select> <label> ไตรมาส: <select name="qvarter" id="qvarter"> <option value="1" >1</option> <option value="2" >2</option> <option value="3" >3</option> <option value="4">4</option> </select> </label> <label> ปี: </label> <label> <select name="year"> <? $sql = "SELECT * from revenuc GROUP BY year" ; $result = mysql_query($sql); while($objResult = mysql_fetch_array($result)) { ?> <option value="<?= $objResult['year']?>"><?= $objResult['year']+543?></option> <? } ?> </select> <br /> <br /> <br /> </label></td> </tr> <tr> <td> </td> </tr> <tr> <td>รูปแบบรายงาน : </td> <td><input name="field_select[]" type="hidden" id="field_select[]" value="com.* , rent.* , revenuc.* " checked="checked" /> <label> Word <input name="btnButton4" type="radio" value="word" onClick="JavaScript:fncSubmit('page3')" /> </label> <label> Ecxel <input name="btnButton3" type="radio" value="excel" onClick="JavaScript:fncSubmit('page2')" /> </label> <label> PDF <input name="btnButton3" type="radio" value="PDF" onClick="JavaScript:fncSubmit('page4')" /> </label></td> </tr> </table> <p> <p> <label> <label><br /> </label><br> <div style="padding: 100px 100px 0 100px;" align="center"></form></td> </tr> <tr> <td align="left" valign="top"> </td> </tr> </table></td> <td width="200" align="center"><p> </p> <p> </p> <p> </p></td> </tr> </table></td> </tr> <tr> <td height="100%" align="left" valign="top"><p> </p> <p> </p></td> </tr> <tr> <td height="14" align="left" valign="top"><img src="../images/bottom-bar.gif" width="778" height="14"></td> </tr> <tr> <td height="26" align="center" valign="middle" background="../images/bottom.gif" class="copyright"> </td> </tr> </table></td> </tr> </table> </body> </html>
<label> Word <input name="btnButton4" type="radio" value="word" /> </label> <label> Ecxel <input name="btnButton3" type="radio" value="excel" /> </label> <label> PDF <input name="btnButton3" type="radio" value="PDF" /> </label>
<script language="javascript"> function fncSubmit(strPage) { if(strPage == "page1") { document.form1.action="<?php echo $_SERVER['PHP_SELF']; ?>"; } if(strPage == "page2") { document.form1.action="phpexcel.php"; } if(strPage == "page3") { document.form1.action="phpword.php"; } if(strPage == "page4") { document.form1.action="PDF.php"; } document.form1.submit(); } </script>
<form id="form1" name="form1" method="get" action="page.cgi"> <input name="btnButton4" type="radio" value="word" onClick="JavaScript:fncSubmit('page3')" /> </label> <label> Ecxel <input name="btnButton3" type="radio" value="excel" onClick="JavaScript:fncSubmit('page2')" /> </label> <label> PDF <input name="btnButton3" type="radio" value="PDF" onClick="JavaScript:fncSubmit('page4')" />
<script language="javascript"> function fncSubmit(strPage) { if(strPage == "page1") { document.form1.action="<?php echo $_SERVER['PHP_SELF']; ?>"; } if(strPage == "page2") { document.form1.action="phpexcel.php"; } if(strPage == "page3") { document.form1.action="phpword.php"; } if(strPage == "page4") { document.form1.action="PDF.php"; } document.form1.submit(); // ************************************* เอาตรงนี้ออกครับ } </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง