<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <div id="Layer3"> <form id="form1" name="form1" method="post" action=""> <span class="style17"> <? include ("connect.php"); $SQL = "SELECT * FROM member WHERE user_id = '".$_SESSION['user_id']."' "; $Query = mysql_query($SQL); $Result = mysql_fetch_array($Query); ?> </span> <div align="center" class="style18">ยินดีต้อนรับ <?=$Result["username"];?> เข้าสู่ระบบค่ะ</div> </form> </div> <div id="Layer4"> <div id="Layer5"> <? include ("connect.php"); $strSQL = "select * from member where status='1'"; $objQuery = mysql_db_query($db,$strSQL); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 10; $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; } $sqlC = "select * from member where status='1' order by user_id asc LIMIT $Page_Start , $Per_Page"; $queryC = mysql_db_query($db,$sqlC); //$strSQL .= "order by user_id asc LIMIT $Page_Start , $Per_Page"; //$objQuery = mysql_query($strSQL); ?> <form id="form1" name="form1" method="post" action=""> <table width="744" height="85" border="1" class="style9" cellpadding="0" cellspacing="0" bordercolor="#FFFF66" > <tr> <td height="26" colspan="6" class="style31" bgcolor="#FF6600" ><div align="center"><strong> :: </strong>MEMBER<strong> :: </strong></div></td> </tr> <tr> <td height="26" colspan="2" class="style31" bgcolor="#FF6600" ><div align="center"> username</div></td> <td width="136" class="style31" bgcolor="#FF6600" "><div align="center">name</div></td> <td width="142" class="style31" bgcolor="#FF6600" "><div align="center">lastname</div></td> <td width="227" bgcolor="#FF6600" class="style31" "><div align="center">email</div> <div align="center"></div></td> <td width="44" class="style31" bgcolor="#FF6600" "><div align="center">ลบ</div></td> </tr> <tr> <? // include ("connect.php"); $i=1; if($Page>1) { $i = ($Per_Page*($Page-1)) + 1 ; } // $sqlC = "select * from member where status='1' order by user_id asc LIMIT $Page_Start , $Per_Page"; // $queryC = mysql_db_query($db,$sqlC); while($ObjArray=mysql_fetch_array($queryC)) { ?> <td width="54" height="29" bgcolor="#FF9900" b><center class="style17"> <img src="image/DookDik/402.gif" width="22" height="22" /><span class="style32"> <?= $i; ?> </span> </center></td> <td width="127" bgcolor="#FF9900"> <span class="style32"> <? echo $ObjArray['username'] ?> </span></td> <td width="136" bgcolor="#FF9900"><span class="style32"> <? echo $ObjArray['name'] ?></span></td> <td width="142" bgcolor="#FF9900"><span class="style32"> <? echo $ObjArray['lastname'] ?></span></td> <td bgcolor="#FF9900"><span class="style32"> <? echo $ObjArray['email'] ?></span></td> <td width="44" bgcolor="#FF9900"><div align="center" class="style17"><a href="delmember.php?user_id=<? echo $ObjArray['user_id']?>">ลบ</a></div></td> </tr> <? $i++ ; } ?> </table> <p class="style33"> Total <?= $Num_Rows;?> 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> "; } ?> </p> </form> </div> </div> <div id="Layer6"> <div align="center"><span class="style30"><img src="image/DookDik/402.gif" width="50" height="50" /> ::: MEMBER :::</span> <img src="image/DookDik/402.gif" width="50" height="50" /></div> </div> <p> </p> <? include ("HD_ADMIN.php"); ?> </center> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง