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 href="structer.css" rel="stylesheet" type="text/css"> <title>กระดานข่าว</title> </head> <style type="text/css"> .news_content { width:750px; float:right; } .news_menu { width:200px; float:left; height:500px; } .sidebar_menu { list-style: none; margin: 0 0 30px; padding: 0; } .sidebar_menu li { margin: 0; padding: 2px 0 3px 16px; background: url(./images/templatemo_list_01.png) no-repeat scroll 0 8px; border-bottom: 1px dotted #ccc } .sidebar_menu li a { font-size: 14px; } #sidebar h3 { font-size: 16px; padding: 0 0 15px 0; margin: 0 0 15px 0; background: url(./images/sidebar_header_bg.png) left bottom no-repeat } h1 { margin: 0 0 5px 0; padding: 10px 0 10px 10px; font-size: 24px; font-weight: normal; color: #ffffff; background: #26405b; } h2 { margin: 0 0 10px 0; padding: 5px 0 5px 10px; font-size: 16px; } h4 { margin: 0; padding: 3px 0 3px 10px; font-size: 14px; font-weight: bold; color: #03F; background: #EEE; } .section_02_box { float: left; width: 350px; border: 1px solid #CCCCCC; margin: 0 20px 0 0px; } .section_02_box .section_02_box_content{ float: left; padding: 15px; } .section_02_box_content .section_02_box_content_title { font-weight: bold; } .section_02_box_content ul{ clear: both; list-style: none; margin: 0; padding: 0; } .section_02_box_content ul li{ padding: 0 0 5px 15px; margin: 0; background: url(images/templatemo_listicon.gif) top left no-repeat; } .section_02_box img { float: left; margin: 3px 15px 0 0; } .cleaner_with_height { clear: both; width: 100%; height: 20px; } </style> </style> <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"> <div class="news_menu"> <ul class="sidebar_menu"> <? include "connect.php"; $sql="select * from onlinelessontype order by TypeId desc "; $query=mysql_query($sql); $num=mysql_num_rows($query); $i=0; //echo"<br><br>"; while($i < $num) { $arr=mysql_fetch_array($query); $TypeId =$arr[TypeId]; $TypeName =$arr[TypeName]; $max=400; $NewsTile=substr($NewsTile,0,$max)."..."; echo "<li><a href='LessonOnlineAll.php?TypeId=$TypeId' >$TypeName </li>"; $i++; } ?> </ul> </div> <div class="news_content"> <? $TypeId=$_GET['TypeId']; if ($TypeId=="") $TypeId=1; $sql="select TypeName from onlinelessontype where TypeId='$TypeId' "; $query=mysql_query($sql); $arr=mysql_fetch_array($query); $TypeName =$arr[TypeName]; $pagelen=15; $page=$_GET['page']; if(empty($page)) { $page=1; } include "connect.php"; $sql="select * from onlinelessondetail where TypeId='$TypeId' order by LessonId desc "; $query=mysql_query($sql); $nums=mysql_num_rows($query); //echo "$nums ---- $TypeId"; $totalpage=ceil($nums/$pagelen); $goto =($page-1)*$pagelen; echo " <p> หน้าที่ ::"; for($i=1;$i<=$totalpage;$i++) { if($i==$page) echo"<b> $i</b>"; else echo " <a href=LessonOnlineAll.php?page=$i&TypeId=$TypeId> $i </a>"; } echo"<br><br></p>"; $sql="select * from onlinelessondetail where TypeId='$TypeId' order by LessonId desc limit $goto,$pagelen"; $query=mysql_query($sql); $num=mysql_num_rows($query); $i=0; //echo"<br><br>"; while($i < $num) { $arr=mysql_fetch_array($query); $SubId =$arr[SubId]; $LessonName =$arr[LessonName]; $LessonBy =$arr[LessonBy]; $LessonLink =$arr[LessonLink]; $LessonPic =$arr[LessonPic]; if ($LessonPic=='0') { $LessonPic=100; } ?> <div class="section_02_box"> <h4><? echo "$LessonName";?></h4> <div class="section_02_box_content"> <a href="<? echo $LessonLink?>" target="_blank"><? echo "<img src='./images/LessonOnline/$LessonPic' width='60' heigh='60'>" ?></a> <a href="<? echo $LessonLink?>" target="_blank"><? echo "รหัสวิชา $SubId <br> โดย $LessonBy"; ?></a> </div> </div> <? $i++; if ($i%2==0) echo" <div class='cleaner_with_height'> </div>"; } ?> <div class="cleaner_with_height"> </div> <? echo " <p> Goto ::"; for($i=1;$i<=$totalpage;$i++) { if($i==$page) echo"<b> $i</b>"; else echo " <a href=LessonOnlineAll.php?page=$i&TypeId=$TypeId> $i </a>"; } echo"<br><br></p>"; ?> <br/> <div class="cleaner_with_height"> </div> </div> </div> <!-- end content-text --> </div> <!-- end content --> </article> <footer> <? include "footer.php";?> </footer> </body> </html>