Server IP : 10.254.12.21 / Your IP : 10.254.12.21 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/arit/ |
Upload File : |
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" href="images/logotab.ico"></head> <link href="structer.css" rel="stylesheet" type="text/css"> <title>ระเบียบการใช้ห้องสมุด</title> </head> <body> <!--start logo --> <div id="logo"> <? include "logo.php";?> </div> <!--end logo --> <!-- start nav --> <nav> <div id="nav"> <div id="content-nav"> <? include "navigator.php";?> </div> </div> </nav> <!-- start article --> <article> <div id="content"> <!-- start content --> <div class="content-title"> รายละเอียดทรัพยากร <img src="images/dot21.jpg" width="12px;"> <div class="content-line"></div> </div> <div class="content-text"> <? $DirThum='../arc/intro/mag_home/'; //$dir=opendir($DirThum); //$file=readdir($dir); //$size=round(fiesize($DirThum.$file)/1024.1); $pagelen=20; $page=$_GET['page']; if(empty($page)) { $page=1; } include "connect.php"; $sql="select * from drives_magazine order by id_magazine desc " ; $query=mysql_query($sql); $nums=mysql_num_rows($query); $totalpage=ceil($nums/$pagelen); $goto =($page-1)*$pagelen; echo"<table class='table' width='100%'>"; echo " <tr><td> Goto ::"; for($i=1;$i<=$totalpage;$i++) { if($i==$page) echo"<b>$i</b>"; else echo " <a href=Mag_All_User.php?page=$i> $i </a>"; } echo"<br><br></td></tr></table>"; echo"<table></tr>"; include "connect.php"; $sql="select * from drives_magazine order by id_magazine desc limit $goto,$pagelen" ; $query=mysql_query($sql); $num=mysql_num_rows($query); $col=3; $i=1; $c=0; while($c < $num) { $arr=mysql_fetch_array($query); $id_magazine=$arr[id_magazine ]; $name_magazine =$arr[name_magazine]; $issue =$arr[issue]; $year =$arr[year]; $mag_year =$arr[mag_year]; $mount =$arr[mount]; $pic_home=$arr[pic_home]; if ($pic_home=="") $pic_home="noimage.jpg "; $max=400; $message_group=substr($message_group,0,$max)."..."; echo "<td class='TableLine'> </td>"; echo "<td valign='top' align='center'><a href='Mag_Detail_User.php?id_magazine=$id_magazine'><img src='$DirThum$pic_home' width='130' height='175'><br>ชื่อวารสาร : <b>$name_magazine </a></b>"; echo "<br>ปีที่ $mag_year ฉบับที่ $issue <br> เดือน $mount $year "; //echo "<br> <a href='Mag_Delete.php?Delete=$id_magazine' onClick='return Conf(this)'>[ ลบ ] </a> <a href='Mag_AddEdit.php?Edit=$id_magazine' > [ แก้ไข ]</a> <a href='Mag_ContentsAdd.php?Add=$id_magazine' >[ เพิ่มสารบัญ ]</a> "; echo "</td>"; if($col==0) { echo "</tr><tr><td height='10' colspan='8'><hr></td></tr><tr>"; $col=4; } $c++; $col--; //echo"<td> </td>"; } echo"</tr></table>"; echo " <table><tr><td> Goto ::"; for($i=1;$i<=$totalpage;$i++) { if($i==$page) echo"<b>$i</b>"; else echo " <a href=Mag_All_User.php?page=$i> $i </a>"; } echo"<br><br></td></tr>"; echo"</table>" ?> </div> </div> <!-- end content --> </article> <footer> <? include "footer.php";?> </footer> </body> </html>