<tr> <td height="45" align="center" valign="top" ><h3> <div class="title_h" > <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"><h5 align="right">ค้นหา <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"> </h5> </form> <p><strong>ตรวจสอบสถานะ</strong><br /> </p> </div></h3> <table width="100%" border="1" cellspacing="2" cellpadding="2" bgcolor="#FFFFCC" style="border:5px solid #C60;"> <tr> <td style="width:65px;"><div align="center"><strong>ลำดับที่</strong></div></td> <td style="width:60px";><div align="center"><strong>ฃื่อผู้ใช้</strong></div></td> <td><div align="center"><strong>วันที่ส่งซัก</strong></div></td> <td><div align="center"><strong>วันที่มารับ</strong></div></td> <td><div align="center"><strong>ราคา (บาท)</strong></div></td> <td><div align="center"><strong>สถานะ</strong></div></td> </tr> <? include ("connect.php"); $sql_show = "select * from service2 where status !=''"; $result_show = mysql_query($sql_show) or die(mysql_error());$i=0; while($row_show = mysql_fetch_array($result_show)) { ?> <tr> <td style="width:45px;"align="center"><?=++$i?></td> <td align="center"><?=$row_show['id_name']?></td> <td align="center"><?=$row_show['datein']?></td> <td align="center"><?=$row_show['dateout']?></td> <td align="right"><?=number_format(($row_show['total']),2)?></td> <td align="center"><? if($row_show['status']=='pass'){ echo "<font color=\"red\">กำลังดำเนินการ</font>";} else { echo "<font color=\"green\">เสร็จสิ้น</font>";}?></td> </tr> <? } ?> <? if($_GET["txtKeyword"] ) { $objConnect = mysql_connect("localhost","root","12345") or die("Error Connect to Database"); $objDB = mysql_select_db("laundry"); // Search By Name or Email $strSQL = "SELECT * FROM service2 WHERE (id_name LIKE '%".$_GET["txtKeyword"]."%' )"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");$i=0; ?> <tr> <th width="58"> <div align="center">ลำดับ</div></th> <th width="91"> <div align="center">ชื่อผู้ใช้</div></th> <th width="107"> <div align="center">วันที่สั่งซัก</div></th> <th width="90"> <div align="center">วันที่มารับ</div></th> <th width="130"> <div align="center">ราคา</div></th> <th width="84"> <div align="center">สถานะ </div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=++$i?></div></td> <td><?=$objResult["id_name"];?></td> <td><?=$objResult["datein"];?></td> <td><div align="center"><?=$objResult["dateout"];?></div></td> <td align="right"><?=number_format(($objResult['total']),2)?></td> <td align="right"><? if($objResult['status']=='pass'){ echo "<font color=\"red\">กำลังดำเนินการ</font>";} else { echo "<font color=\"green\">เสร็จสิ้น</font>";}?></td> </tr> <? } ?> <? mysql_close($objConnect); } ?> </table> <p> </p> <p> </p> <p> </p> <p><br/> </p></td> </tr>
<tr> <td height="45" align="center" valign="top" ><h3> <div class="title_h" > <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"><h5 align="right">ค้นหา <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"> </h5> </form> <p><strong>ตรวจสอบสถานะ</strong><br /> </p> </div></h3> <table width="100%" border="1" cellspacing="2" cellpadding="2" bgcolor="#FFFFCC" style="border:5px solid #C60;"> <tr> <td style="width:65px;"><div align="center"><strong>ลำดับที่</strong></div></td> <td style="width:60px";><div align="center"><strong>ฃื่อผู้ใช้</strong></div></td> <td><div align="center"><strong>วันที่ส่งซัก</strong></div></td> <td><div align="center"><strong>วันที่มารับ</strong></div></td> <td><div align="center"><strong>ราคา (บาท)</strong></div></td> <td><div align="center"><strong>สถานะ</strong></div></td> </tr> <?php if(!empty($_GET["txtKeyword"])) { $objConnect = mysql_connect("localhost","root","12345") or die("Error Connect to Database"); $objDB = mysql_select_db("laundry"); // Search By Name or Email $sql_show = "SELECT * FROM service2 WHERE (id_name LIKE '%".$_GET["txtKeyword"]."%' )"; $result_show = mysql_query($sql_show) or die ("Error Query [".$strSQL."]");$i=0; } else { include ("connect.php"); $sql_show = "select * from service2 where status !=''"; $result_show = mysql_query($sql_show) or die(mysql_error());$i=0; } while($row_show = mysql_fetch_array($result_show)) { ?> <tr> <td style="width:45px;"align="center"><?=++$i?></td> <td align="center"><?=$row_show['id_name']?></td> <td align="center"><?=$row_show['datein']?></td> <td align="center"><?=$row_show['dateout']?></td> <td align="right"><?=number_format(($row_show['total']),2)?></td> <td align="center"><? if($row_show['status']=='pass'){ echo "<font color=\"red\">กำลังดำเนินการ</font>";} else { echo "<font color=\"green\">เสร็จสิ้น</font>";}?></td> </tr> <?php } mysql_close($objConnect); ?> </table> <p> </p> <p> </p> <p> </p> <p><br/> </p></td> </tr>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง