<form id="form1" name="form1" method="post" action=""> <table width="93%" align="left"> <tr> <td width="36%" align="left" scope="col">จำนวนแถวแสดง: <input type="text" name="textfield" id="textfield" /> <input type="submit" name="button" id="button" value="แสดง" /></td> <td width="64%" scope="col">แสดงตามรายการ: <select name="select" id="select"> <option value="status">รับของคืนแล้ว</option> <option value="status">ยังไม่รับคืน</option> <option>ทั้งหมด</option> </select> <input type="submit" name="button2" id="button2" value="แสดง" /></td> </tr> </table> </form> <?php include("../AC_student/login/connect2.php"); $select=$_POST[select]; $sql = " SELECT * FROM tb_item WHERE status= '$select' ORDER BY id desc "; $result = mysql_db_query($db,$sql); ?> <br /> <table width="100%"> <tr> <td width="8%" align="center" bgcolor="#71B5F9"><p>วันที่</p></td> <td width="15%" align="center" bgcolor="#71B5F9"><p>ชื่อรายการแจ้ง</p></td> <td width="5%" align="center" bgcolor="#71B5F9"><p>จำนวน</p></td> <td width="21%" align="center" bgcolor="#71B5F9"><p>ลักษณะของที่พบ</p></td> <td width="10%" align="center" bgcolor="#71B5F9">สถานะ</td> <td width="21%" align="center" bgcolor="#71B5F9">ผู้พบเห็น</td> <td width="20%" align="center" bgcolor="#71B5F9"><p>ผู้รับ</p></td> </tr> <? while ($row = mysql_fetch_array($result)){ ?> <tr> <td align="center" bgcolor="#E2F0FE"><? echo $row[da_te] ?></td> <td align="center" bgcolor="#E2F0FE"> <? echo $row[item] ?></td> <td align="center" bgcolor="#E2F0FE"><? echo $row[num] ?></td> <td align="center" bgcolor="#E2F0FE"><? echo $row[detial]?></td> <td align="center" bgcolor="#E2F0FE"><? echo $row[status] ?></td> <td align="center" bgcolor="#E2F0FE"><? echo $row[inform] ?></td> <td align="center" bgcolor="#E2F0FE"><? echo $row[receive]?></td> </tr> <? } ?> </table> </tr>
<form id="form1" name="form1" method="post" action=""> <table width="93%" align="left"> <tr> <td width="36%" align="left" scope="col">จำนวนแถวแสดง: <input type="text" name="numrows" id="numrows" /> <input type="submit" name="button" id="button" value="แสดง" /></td> <td width="64%" scope="col">แสดงตามรายการ: <select name="status" id="status"> <option value="รับของคืนแล้ว">รับของคืนแล้ว</option> <option value="ยังไม่รับคืน">ยังไม่รับคืน</option> <option>ทั้งหมด</option> </select> <input type="submit" name="submitForm" id="submitForm" value="แสดง" /></td> </tr> </table> </form> <br /> <table width="100%"> <tr> <td width="8%" align="center" bgcolor="#71B5F9"><p>วันที่</p></td> <td width="15%" align="center" bgcolor="#71B5F9"><p>ชื่อรายการแจ้ง</p></td> <td width="5%" align="center" bgcolor="#71B5F9"><p>จำนวน</p></td> <td width="21%" align="center" bgcolor="#71B5F9"><p>ลักษณะของที่พบ</p></td> <td width="10%" align="center" bgcolor="#71B5F9">สถานะ</td> <td width="21%" align="center" bgcolor="#71B5F9">ผู้พบเห็น</td> <td width="20%" align="center" bgcolor="#71B5F9"><p>ผู้รับ</p></td> </tr> <?php if(isset($_POST["submitForm"])){ include("../AC_student/login/connect2.php"); $sql = "select * from tb_item where status='{$_POST["status"]}' limit {$_POST["numrows"]}" $res = mysql_query($sql) or die(mysql_error()); $i=1; while($data = mysql_fetch_assoc($res)){ echo "<tr><td>$i</td><td>{$data["da_te"]}</td>", "<td>{$data["item"]}</td><td>{$data["num"]}</td>", "<td>{$data["detial"]}</td><td>{$data["status"]}</td>", "<td>{$data["inform"]}</td><td>{$data["receive"]}</td></tr>\n"; } } ?> </table>
<form id="form1" name="form1" method="post" action=""> <table width="93%" align="left"> <tr> <td width="36%" align="left" scope="col">จำนวนแถวแสดง: <input type="text" name="numrows" id="numrows" /> <input type="submit" name="button" id="button" value="แสดง" /></td> <td width="64%" scope="col">แสดงตามรายการ: <select name="status" id="status"> <option value="รับของคืนแล้ว">รับของคืนแล้ว</option> <option value="ยังไม่รับคืน">ยังไม่รับคืน</option> <option value="%">ทั้งหมด</option> </select> <input type="submit" name="submitForm" id="submitForm" value="แสดง" /></td> </tr> </table> </form> <br /> <table width="100%"> <tr> <td width="8%" align="center" bgcolor="#71B5F9"><p>วันที่</p></td> <td width="15%" align="center" bgcolor="#71B5F9"><p>ชื่อรายการแจ้ง</p></td> <td width="5%" align="center" bgcolor="#71B5F9"><p>จำนวน</p></td> <td width="21%" align="center" bgcolor="#71B5F9"><p>ลักษณะของที่พบ</p></td> <td width="10%" align="center" bgcolor="#71B5F9">สถานะ</td> <td width="21%" align="center" bgcolor="#71B5F9">ผู้พบเห็น</td> <td width="20%" align="center" bgcolor="#71B5F9"><p>ผู้รับ</p></td> </tr> <?php if(isset($_POST["submitForm"])){ include("../AC_student/login/connect2.php"); $sql = "select * from tb_item where status like '{$_POST["status"]}' limit {$_POST["numrows"]}" $res = mysql_query($sql) or die(mysql_error()); $i=1; while($data = mysql_fetch_assoc($res)){ echo "<tr><td>$i</td><td>{$data["da_te"]}</td>", "<td>{$data["item"]}</td><td>{$data["num"]}</td>", "<td>{$data["detial"]}</td><td>{$data["status"]}</td>", "<td>{$data["inform"]}</td><td>{$data["receive"]}</td></tr>\n"; } } ?> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง