<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title></title> <link href="mylayout.css" rel="stylesheet" type="text/css"> </head> <body> <div id="container"> <div id="header">LOgo</div> <div id="sidebar"> <p align="center">Menu <br> </p> </div> <div id="mainContent"> <p align="center"> <?php include("report1.php"); ?> </p> </div> <p> </p> </div> <div id="footer">copyright © 2010 Goko Spring.com</div> </body> </html>
@charset "utf-8"; /* CSS by DwThai.Com */ body { padding: 0px; height: auto; width: auto; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; } #header { height: auto; font-family: Tahoma, "Ms Sans Serif"; font-size: 24px; font-weight: bold; color: #FFFFFF; background-color: #99CC33; width: auto; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; } #container { width: auto; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; height: auto; } #sidebar { float: none; width: auto; background-color: #33FFCC; font-size: 12px; font-family: Arial, Helvetica, sans-serif; height: auto; padding: 0px; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; } #mainContent { font-family: Tahoma, "Ms Sans Serif"; font-size: 11px; text-indent: 20px; height: auto; width: auto; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; } #footer { clear: both; width: auto; height: auto; background-color: #99CC33; font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; }
<html> <head> <title>IT Goko Sring Service</title> <style type="text/css"> <!-- .style1 {color: #0000FF} .style3 {color: #000000} .style4 {color: #FF0000} --> </style> </head> <body> <? $objConnect = mysql_connect("localhost","root","999999") or die("Error Connect to Database"); $objDB = mysql_select_db("online"); $strSQL = "SELECT * FROM form "; $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 ASC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); ?> <table width="1226" border="1"> <tr> <th width="30"> <div align="center" class="style1">ID </div></th> <th width="139"> <div align="center" class="style1">Name </div></th> <th width="119"> <div align="center" class="style1">Section</div></th> <th width="126"> <span class="style1">Date</span></th> <th width="115"> <div align="center" class="style1">Time </div></th> <th width="430"><span class="style1">Details</span></th> <th width="221"><span class="style1">Status</span></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=$objResult["id"];?></div></td> <td><div align="center"> <?=$objResult["name"];?> </div></td> <td><div align="center"> <?=$objResult["section"];?> </div></td> <td><div align="center"><strong> <?=$objResult["date"];?> : <?=$objResult["date2"];?> : <?=$objResult["date3"];?> </strong></div></td> <td align="right"><div align="center"><strong> <?=$objResult["time"];?> : <?=$objResult["time2"];?> </strong></div></td> <td align="right"><div align="center"> <?=$objResult["details"];?> </div> </td> <td align="right"><div align="center"> <?=$objResult["status"];?> </div></td> </tr> <? } ?> </table> <p><br> <span class="style3"><span class="style4">Total</span> <?= $Num_Rows;?> <span class="style4">Record :</span> <?=$Num_Pages;?> <span class="style4">Page : </span> <? if($Prev_Page) { echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</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'>Next>></a> "; } mysql_close($objConnect); ?> </span></p> <p><a href="index.php">หน้าแรก</a></p> </body> </html>
Quote:<div id="mainContent"> <p align="center"> <?php include("report1.php"); ?> </p> </div>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง