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> <title>Tabbed Content</title> <script src="tabcontent.js" type="text/javascript"></script> <link href="template1/tabcontent.css" rel="stylesheet" type="text/css" /> <meta charset="utf-8"> </head> <body style="background:#F6F9FC; font-family:Arial;"> <div style="width: 300px; margin: 0 auto; padding: 0px 0 40px;"> <ul class="tabs" data-persist="true"> <li><a href="#view1">หนังสือ</a></li> <li><a href="#view2">วารสาร</a></li> <li><a href="#view3">สื่อโสต</a></li> </ul> <? $DirThum='../arc/intro/titlepic/'; include "connect.php"; $sql="select * from intro_resource where resource_type_code=1 order by title_code desc limit 0,2" ; $query=mysql_query($sql); $row=mysql_num_rows($query); ?> <div class="tabcontents"> <div id="view1"> <h3>บรรณารักษ์แนะนำหนังสือ</h3> <? while ($row>=1) { $arr=mysql_fetch_array($query); $title_code =$arr[title_code]; $title =$arr[title]; $author =$arr[author]; $publisher =$arr[publisher]; $publish_year =$arr[publish_year]; $callnumber=$arr[callnumber]; $attribute=$arr[attribute]; $links=$arr[links]; $picture =$arr[picture]; $detail =$arr[detail]; $max=100; $detail=iconv_substr($detail, 0,$max, "UTF-8")."...» อ่านต่อ"; ?> <p><? echo "<a href='IntroDetail.php?title_code=$title_code'><img src='$DirThum$picture' width='120' style='margin: 0px 10px 0px 0px; width: 100px; float: left; ' ></a> <b>$title</b>"; ?> </p> <p><? echo"ผู้เขียน : $author";?></p> <p><? echo"รายละเอียด : $detail";?></p> <? $row=$row-1; }?> <p align="right"><a href="IntroAll.php"> ดูทั้งหมด</a></p> </div> <div id="view2"> <h3>วารสารมาใหม่</h3> <? $sql="select * from drives_magazine order by id_magazine desc limit 0,2"; $query=mysql_query($sql); $row=mysql_num_rows($query); while ($row>=1) { $arr=mysql_fetch_array($query); //mysql_query("SET NAMES 'tis620' COLLATE 'tis620_thai_ci';"); $id_magazine2=$arr[id_magazine]; $name_magazine2 =$arr[name_magazine]; $issue2 =$arr[issue]; $year2 =$arr[year]; $mag_year2 =$arr[mag_year]; $pic_home2 =$arr[pic_home]; $mount2 =$arr[mount]; $max=250; if ($pic_home2 =="") { $pic_home2="../arc/intro/mag_home/noimage.jpg"; } else { $pic_home2="../arc/intro/mag_home/$id_magazine2.jpeg"; } ?> <p><br/><? echo "<a href='Mag_detail_User.php?id_magazine=$id_magazine2'><img src='$pic_home2' width='110' style='margin: 0px 10px 0px 0px; width: 100px; float: left; ' > <b>$name_magazine2</b>"; ?><br><? echo"ปีที่ $mag_year2 ฉบับที่ $issue2 <br>$mount $year2" ; ?> </p> <p>...» ดูสารบัญ</a></p> <br><br> <? $row=$row-1; }?> <p align="right"><a href="Mag_All_User.php"> ดูทั้งหมด</a></p> </div> <div id="view3"> <b>แนะนำสื่อโสต</b> </div> </div> </div> </body> </html>