<html> <head> <title>jack</title> <style type="text/css"> <!-- .style2 {font-size: 10px} .style5 {font-size: 14px} .style6 {font-size: 9px} .style13 {font-size: 12px} --> </style> </head> <body> <? $objCSV = fopen($_FILES["fileCSV"]["name"], "r"); while (($objArr = fgetcsv($objCSV, 1000, ",")) !== FALSE) { $Per_Page = 10; // 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 no ASC LIMIT $Page_Start , $Per_Page"; //น่าจะตั้งแต่ตรงนี้อ่ะครับ $objQuery = mysql_query($strSQL); ?> <? $objQuery = mysql_query($strSQL); echo"<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) // ติดอยู่ตรงนี้ครับถ้าเราไม่ติดต่อกับฐานข้อมูลตรงนี้ต้องเปลี่ยนเป็นอะไรอ่ะครับ { echo "<td>"; $intRows++; ?> </div> <table width="334" height="208" border="1" align="center"> <tr> <th width="324" height="202" valign="top" background="TOT5.jpg" scope="col"><div align="right"> <blockquote> <p align="center"><span class="style5"> </span></p> </blockquote> <p align="left"><span class="style5"> Username :<span class="style5"> <?=$objArr[1];?> </span> Password :<span class="style5"> <?=$objArr[2];?> </span></span></p> <form action="" method="post" name="form1" target="_blank" class="style6" id="form1"> <div align="left"> <ol> <li class="style6">Connect to "TOT HotSpot" or enter<br> "TOT_HotSpot" in SSID field</li> <li class="style6">Open Internet browser and go to any website</li> <li class="style6">The System will automatically redirect you to <br>"TOT HotSpot" log-in page</br></li> <li class="style6">Enter Username and Password.</li> <li class="style6">To disconnect type "http://logout.tot" in address <br> bar and click "OK"</br></li> <div align="center"></span> No :<span class="style2"> <?=$objArr[0];?> </span></span></p> </div> </ol> </div> </form> </div> </th> </tr> </table> <? echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } } echo"</tr></table>"; ?> </table> <br> Total <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page : <? 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> "; } } ?> </body> </html>
<? $arr = list file folder; $Num_Rows = count($arr); $Per_Page = 2; // 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; } $Page_End = $Per_Page * $Page; IF ($Page_End > $Num_Rows) { $Page_End = $Num_Rows; } for($i=$Page_Start;$i<$Page_End;$i++) { echo $arr[$i]; } ?>
$arrFile = null; $objOpen = opendir("files/"); /*** folder ***/ while (($file = readdir($objOpen)) !== false) { if($file != "." && $file != "..") { $arrFile[] = $file; } }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง