<!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> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>แสดงข้อมูลสมาชิกผู้ป่วย</title> <script Language="Javascript"> <!-- function Conf(object) { if (confirm("โปรดยืนยันการลบ ?") == true) { return true; } return false; } //--> </script> <style type="text/css"> <!-- .style45 {color: #000000} body { background-color: #93EAFF; } .style60 {font-family: AngsanaUPC; font-size: 22px; color: #000000; font-weight: bold; } .style65 {font-family: AngsanaUPC; font-size: 22px; } .style69 { color: #000000; font-weight: bold; font-family: AngsanaUPC; font-size: 24px; } .style72 {color: #FFFFFF; font-family: AngsanaUPC; font-size: 20px; } .style73 { font-family: "MS Sans Serif"; font-size: 15px; } .style81 {font-family: "MS Sans Serif"; font-size: 14px; } .style86 { font-family: "Angsana New"; font-size: 20px; } .style87 { font-family: "Angsana New"; font-size: 22px; font-weight: bold; } .style91 {font-family: "MS Sans Serif"; font-size: 20px; } .style95 {font-family: "Angsana New"; font-weight: bold; font-size: 18px; } --> </style> </head> <body> <table width="955" height="878" border="1" align="center"> <tr> <td height="26" colspan="2"><? require('header.php') ?></td> </tr> <tr> <td colspan="2" bordercolor="#93EAFF" background="image/top.jpg" bgcolor="#93EAFF"> <marquee> <div align="center"><span class="style72">ระบบการให้บริการคลินิกหมอบุญพิมล </span></div> </marquee> </td> </tr> <tr> <td width="20" valign="top" bgcolor="#FFFFFF"><a href="officer_add.php"> <? include ('menu_user.php')?> </a></td> <td width="919" valign="top" bgcolor="#FFFFFF"><p align="center" class="style69"> </p> <p align="center" class="style69"> <?php $objConnect = mysql_connect("localhost","root","123") or die("ไม่สามารถติดต่อกับฐานข้อมูลได้"); $objDB = mysql_select_db("cl"); $strSQL = "SELECT * FROM guarantee1"; mysql_query("SET NAMES tis620"); $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 20; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $strSQL .=" order by id DESC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); ?> <span class="style86">เเสดงข้อมูลใบรับรองแพทย</span><span class="style91"></span><span class="style73">์</span></p> <table width="94%" align="center" cellspacing="3""> <tr background="image/foot.jpg"><td align="center"background="image/foot.jpg"><span class="style95">ลำดับ</span></td> <td align="center" background="image/foot.jpg" class="style60 style50 style53"><span class="style95">ชื่อ</span></td> <td align="center" class="style60 style50 style53"><span class="style95">พิมพ์ใบรับรองแพทย์สุขภาพ</span></td> </tr> <? $i = 0; while($dbarr = mysql_fetch_array($objQuery)) { $i++; ?> <tr bordercolor="" bgcolor="#dcf9ff" class="style45"> <td width="8%" height="30" align="center" class="style65"><span class="style81"><?php echo $dbarr['id'] ; ?></span></td> <td width="22%" align="center" class="style81"><div align="left"><?php echo $dbarr['pt_zname'] ; ?><?php echo $dbarr['pt_name'] ; ?></div></td> <td width="19%" align="center"><a href="gunrantee_card_show1.php?id=<?=$dbarr['id'];?>"><img src="image/printmgr.gif.png" title="พิมพ์ใบส่งตัว" width="22" height="22" border="0" /></a></td> </tr> <?php } ?> </table> <div align="left"> <strong> <p><span class="style24 style86">หน้า : <? if($Prev_Page) { echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< ก่อนหน้า</a> "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if($Page!=$Num_Pages) { echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>ถัดไป>></a> "; } mysql_close($objConnect); ?> </span></p> <p align="center" class="style87"><a href="guarantee_user.php">ย้อนกลับ</a></p> <p align="center"><a href="indexcl.php" class="style87"></a><br /> </p></td> </tr> <tr> <td height="26" colspan="2"><? require('footer.php') ?></td> </tr> </table> </body> </html>
alter table ชื่อตาราง add updatetime timestamp not null default current_timestamp on update current_timestamp
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง