<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Edit</title> <style type="text/css"> body,td,th { font-family: Tahoma, Geneva, sans-serif; font-size: 12px; } body { margin-left: 30px; margin-top: 10px; margin-right: 30px; margin-bottom: 100px; font-size: 12px; } </style> </head> <body> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("new"); $strSQL = " select * from repair_return order by order_num desc limit 0,1 "; mysql_query("set NAMES utf8 "); $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); ?> <table width="" border="1"> <tr> <th width="60"> <div align="center">เลขที่ใบแจ้งซ่อม </div></th> <th width="60"> <div align="center">หน่วยงาน </div></th> <th width="60"> <div align="center">จังหวัด </div></th> <th width="50"> <div align="center">ภาค/ชั้น </div></th> <th width="80"> <div align="center">รหัสพนักงานแจ้งซ่อม </div></th> <th width="100"> <div align="center">ชื่อพนักงานแจ้งซ่อม </div></th> <th width="70"> <div align="center">เบอร์ติดต่อ </div></th> <th width="80"> <div align="center">รหัสทรัพย์สิน </div></th> <th width="80"> <div align="center">ประเภททรัพย์สิน </div></th> <th width="50"> <div align="center">Brand </div></th> <th width="80"> <div align="center">Model </div></th> <th width="80"> <div align="center">SN </div></th> <th width="100"> <div align="center">ลักษณะการชำรุด </div></th> <th width="100"> <div align="center">หมายเหตุ </div></th> <th width="80"> <div align="center">รหัสพนักงานรับซ่อม </div></th> <th width="100"> <div align="center">ชื่อพนักงานรับซ่อม </div></th> <th width="100"> <div align="center">วันที่แจ้งซ่อม </div></th> <th width="10"> <div align="center">Edit </div></th> <th width="10"> <div align="center">Delete </div></th> <th width="10"> <div align="center">Print </div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=$objResult["order_num"];?></div></td> <td align="left"><?=$objResult["agencies"];?></td> <td align="left"><?=$objResult["province"];?></td> <td align="left"><?=$objResult["sector"];?></td> <td align="left"><?=$objResult["user_id"];?></td> <td align="left"><?=$objResult["user_name"];?></td> <td align="left"><?=$objResult["contact_num"];?></td> <td align="left"><?=$objResult["prop_code"];?></td> <td align="left"><?=$objResult["type"];?></td> <td align="left"><?=$objResult["brand"];?></td> <td align="left"><?=$objResult["model"];?></td> <td align="left"><?=$objResult["sn"];?></td> <td align="left"><?=$objResult["symtoms"];?></td> <td align="left"><?=$objResult["remark"];?></td> <td align="left"><?=$objResult["em_id"];?></td> <td align="left"><?=$objResult["em_name"];?></td> <td align="left"><?=$objResult["repair_date"];?></td> <td align="left"><a href="editrecordform.php?order_num=<?=$objResult["order_num"];?>">Edit</a></td> <td align="left"><a href="delete.php?order_num=<?=$objResult["order_num"]; ?>">Delete</a></td> <td align="left"><a href="print.php?order_num=<?=$objResult["order_num"];?>">Print</a></td> </tr> <? } ?> </table> <? mysql_close($objConnect); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง