<? session_start(); if ($_SESSION[sess_userid]<>session_id()) { header( "Location: admin.php"); exit(); } //include "function.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <style type="text/css"> <!-- .center { text-align: center; } body { background-color: #676464; } .www { color: #FFF; } --> </style> <title>ระบบแจ้งโอนเงิน</title><body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <font face="MS Sans Serif" size="2"> </font> <table width="950" border="1" align="center" cellspacing="0" cellpadding="0" height="23"> <tr> <td width="5%" bgcolor="#53A9EF"> <div align="center">ลำดับ</div> </td> <td width="15%" bgcolor="#53A9EF"> <div align="center">ประเภทโอนเงิน</div> </td> <td width="25%" bgcolor="#53A9EF"> <div align="center">ชื่อ-นามสกุล</div> </td> <td width="13%" bgcolor="#53A9EF"> <div align="center">จำนวนเงิน</div> </td> <td width="12%" bgcolor="#53A9EF"> <div align="center">ปีที่โอน</div> </td> <td width="12%" bgcolor="#53A9EF">เวลา</td> <td width="7%" bgcolor="#53A9EF">สถานนะ</td> <td width="7%" bgcolor="#53A9EF">ดูข้อมูล</td> <td width="4%" bgcolor="#53A9EF">ลบ</td> </tr> </table> <font face="MS Sans Serif" size="2"> <? include("connect.php"); mysql_query("SET NAMES TIS620"); mysql_connect( $host,$user,$pw) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ "); mysql_select_db($dbname) or die("เลือกฐานข้อมูลไม่ได้"); $sql = "select * From transfer"; /* ตั้งค่า แสดงผลต่อหน้า $Per_Page */ $Per_Page =100; if(!$Page) $Page=1; $Prev_Page = $Page-1; $Next_Page = $Page+1; $result = mysql_query($sql); $Page_start = ($Per_Page*$Page)-$Per_Page; $Num_Rows = mysql_num_rows($result); 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; if(($Page>$Num_Pages) || ($Page<0)) print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>"; $sql .= " Where 1 Order by Id_new ASC LIMIT $Page_start , $Per_Page"; //ส่วนแสดงผล $result = mysql_query($sql); While($row= mysql_fetch_array($result)){ $Id_new = $row["Id_new"]; $Type = $row["Type"]; $Fname = $row["Fname"]; $Year = $row["Year"]; $Amount= $row["Amount"]; $status= $row["status"]; $date_new=$row["date_new"]; //$tel = $row["tel"]; ?> </font> <table width="950" border="1" align="center" cellspacing="0" cellpadding="0" height="23"> <tr> <td width="5%" bgcolor="#D8DAE3"> <div align="center"> <?= $Id_new;?> </div> </td> <td width="15%" bgcolor="#D8DAE3"> <?= $Type;?> </td> <td width="25%" bgcolor="#D8DAE3"> <?= $Fname;?> </td> <td width="13%" bgcolor="#D8DAE3"> <?= $Amount;?> </td> <td width="12%" bgcolor="#D8DAE3"><?= $Year;?></td> <td width="12%" bgcolor="#D8DAE3"><?= $date_new;?></td> <td width="7%" align="center" bgcolor="#D8DAE3"><?php if ($status =='1') { echo "<img src='2.gif'>"; } else { echo "<img src='1.gif'>";} ?></td> <td width="7%" bgcolor="#D8DAE3" style="color: #0F0F0F"><div align="center"><a href="view2.php?Id_new=<?echo"$Id_new"; ?>">View</a></div> </td> <td align="center" bgcolor="#D8DAE3"><a href="JavaScript:if(confirm('Confirm Delete?')==true){window.location='delete.php?Id_new=<?php echo $row["Id_new"];?>';}">ลบ</a></td> </tr> </table> <?}?> <div align="center"><br> <span class="www">มีจำนวน Recored ทั้งหมด <?= $Num_Rows;?> รวมทั้งหมด : <b> <?=$Num_Pages;?> </b> หน้า :</span> <?/* สร้างปุ่มย้อนกลับ */ if($Prev_Page) echo " <a href='$PHP_SELF?Page=$Prev_Page'><< ย้อนกลับ </a>"; for($i=1; $i<$Num_Pages; $i++){ if($i != $Page) echo "[<a href='$PHP_SELF?Page=$i'>$i</a>]"; else echo "<b> $i </b>"; } /*สร้างปุ่มเดินหน้า */ if($Page!=$Num_Pages) echo "<a href ='$PHP_SELF?Page=$Next_Page'> หน้าถัดไป>> </a>"; ?> </div> <p><a href="logout.php">Logout>></a></p> </body> </html>
<? session_start(); if ($_SESSION[sess_userid]<>session_id()) { header( "Location: admin.php"); exit(); } //include "function.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <style type="text/css"> <!-- .center { text-align: center; } body { background-color: #676464; } .www { color: #FFF; } --> </style> <title>ระบบแจ้งโอนเงิน</title><body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <font face="MS Sans Serif" size="2"> </font> <table width="950" border="1" align="center" cellspacing="0" cellpadding="0" height="23"> <tr> <td width="5%" bgcolor="#53A9EF"> <div align="center">ลำดับ</div> </td> <td width="15%" bgcolor="#53A9EF"> <div align="center">ประเภทโอนเงิน</div> </td> <td width="25%" bgcolor="#53A9EF"> <div align="center">ชื่อ-นามสกุล</div> </td> <td width="13%" bgcolor="#53A9EF"> <div align="center">จำนวนเงิน</div> </td> <td width="12%" bgcolor="#53A9EF"> <div align="center">ปีที่โอน</div> </td> <td width="12%" bgcolor="#53A9EF">เวลา</td> <td width="7%" bgcolor="#53A9EF">สถานนะ</td> <td width="7%" bgcolor="#53A9EF">ดูข้อมูล</td> <td width="4%" bgcolor="#53A9EF">ลบ</td> </tr> </table> <font face="MS Sans Serif" size="2"> <? include("connect.php"); mysql_query("SET NAMES TIS620"); mysql_connect( $host,$user,$pw) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ "); mysql_select_db($dbname) or die("เลือกฐานข้อมูลไม่ได้"); $sql = "select * From transfer"; /* ตั้งค่า แสดงผลต่อหน้า $Per_Page */ $Per_Page =100; if(!$Page) $Page=1; $Prev_Page = $Page-1; $Next_Page = $Page+1; $result = mysql_query($sql); $Page_start = ($Per_Page*$Page)-$Per_Page; $Num_Rows = mysql_num_rows($result); 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; if(($Page>$Num_Pages) || ($Page<0)) print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>"; $sql .= " Where 1 Order by Id_new ASC LIMIT $Page_start , $Per_Page"; //ส่วนแสดงผล $result = mysql_query($sql); $n=0; While($row= mysql_fetch_array($result)){ $n=++$n; $Id_new = $row["Id_new"]; $Type = $row["Type"]; $Fname = $row["Fname"]; $Year = $row["Year"]; $Amount= $row["Amount"]; $status= $row["status"]; $date_new=$row["date_new"]; //$tel = $row["tel"]; ?> </font> <table width="950" border="1" align="center" cellspacing="0" cellpadding="0" height="23"> <tr> <td width="5%" bgcolor="#D8DAE3"> <div align="center"> <?= $n;?> </div> </td> <td width="15%" bgcolor="#D8DAE3"> <?= $Type;?> </td> <td width="25%" bgcolor="#D8DAE3"> <?= $Fname;?> </td> <td width="13%" bgcolor="#D8DAE3"> <?= $Amount;?> </td> <td width="12%" bgcolor="#D8DAE3"><?= $Year;?></td> <td width="12%" bgcolor="#D8DAE3"><?= $date_new;?></td> <td width="7%" align="center" bgcolor="#D8DAE3"><?php if ($status =='1') { echo "<img src='2.gif'>"; } else { echo "<img src='1.gif'>";} ?></td> <td width="7%" bgcolor="#D8DAE3" style="color: #0F0F0F"><div align="center"><a href="view2.php?Id_new=<?echo"$Id_new"; ?>">View</a></div> </td> <td align="center" bgcolor="#D8DAE3"><a href="JavaScript:if(confirm('Confirm Delete?')==true){window.location='delete.php?Id_new=<?php echo $row["Id_new"];?>';}">ลบ</a></td> </tr> </table> <?}?> <div align="center"><br> <span class="www">มีจำนวน Recored ทั้งหมด <?= $Num_Rows;?> รวมทั้งหมด : <b> <?=$Num_Pages;?> </b> หน้า :</span> <?/* สร้างปุ่มย้อนกลับ */ if($Prev_Page) echo " <a href='$PHP_SELF?Page=$Prev_Page'><< ย้อนกลับ </a>"; for($i=1; $i<$Num_Pages; $i++){ if($i != $Page) echo "[<a href='$PHP_SELF?Page=$i'>$i</a>]"; else echo "<b> $i </b>"; } /*สร้างปุ่มเดินหน้า */ if($Page!=$Num_Pages) echo "<a href ='$PHP_SELF?Page=$Next_Page'> หน้าถัดไป>> </a>"; ?> </div> <p><a href="logout.php">Logout>></a></p> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง