<? include ("connect.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } --> </style><head> <meta http-equiv=Content-Type content="text/html; charset=windows-874"> <title>:: ข่าวทั่วไป ::</title> <link href="css/home_style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #D8D8D8; color: #000; } .style1 {font-size: x-small} --> </style></head> <body> <table width="600" border="1" align="center"bgcolor="#FFFFFF"> <tr > <td width="5%"><? //include ("left_menu.php");?></td> <td width="75%" valign="top" ><img src="Images/bar/tt.gif" width="623" height="35"><br><font size="2"> </font> <br><font size="2"><? $sql=mysql_query("select * from pic")or die(mysql_error()); $yea=mysql_query("select DISTINCT year_pic from pic order by year_pic desc")or die (mysql_error()); $num=mysql_num_rows($sql); ?></font> <? while($y=mysql_fetch_array($yea)){ ?> <img src="Images/yellow.gif" width="7" height="11" border="0"> <font size="2"><a href="/teacher/files_all2.php?id=<? echo $y[year_pic];?>">ภาพกิจกรรมประจำปี พ.ศ. <? echo $y["year_pic"] ."<BR>"; } ?> </a></font></td> </tr> </table> </body> </html>
<? include ("connect.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv=Content-Type content="text/html; charset=tis-620"> <title>:: ข่าวทั่วไป ::</title> <link href="css/home_style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #D8D8D8; color: #000; } .style1 {font-size: x-small} --> </style></head> <body> <table width="600" border="1" align="center"bgcolor="#FFFFFF"> <tr > <td width="5%"><? //include ("left_menu.php");?></td> <td width="75%" valign="top" ><img src="Images/bar/tt.gif" width="623" height="35"><br><font size="2"> </font> <br><font size="2"> <? $sql1=mysql_query("select * from pic")or die(mysql_error()); $yea=mysql_query("select DISTINCT name_pic from pic WHERE year_pic = '".$_GET['id']."' order by name_pic desc")or die (mysql_error()); $num=mysql_num_rows($sql1); while($y=mysql_fetch_array($yea)){ ?> <img src="Images/yellow.gif" width="7" height="11" border="0"> <font size="2"><a href="/teacher/pic_all.php?id=<? echo $y[id_pic];?>"> <? echo $y["name_pic"] ."<BR>"; } ?> </a></font></td> </tr> </table> </body> </html> ส่วนอันนี้เพจ pic_all.php
<head> <? include('connect.php'); ?> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head> <? $sql1=mysql_query("select id_pic from pic where id_pic='$_GET[id_pic]' ")or die(mysql_error()); $yea=mysql_query("select DISTINCT year_pic from pic WHERE year_pic = '".$_GET['id']."' order by id_pic desc")or die (mysql_error()); $num=mysql_num_rows($sql1); ?> <? if(isset($_GET[n])){$en=9*$_GET[n]; $st=$en-9;}else{$st=0;$en=9;} $sql=mysql_query("select * from pic ")or die(mysql_error()); $num=mysql_num_rows($sql); ?> <body> <? while($y=mysql_fetch_array($yea)){ ?> <table width="782" border="0"> <tr> <td> รวมภาพกิจกรรมประจำปีพ.ศ. <? echo $y[year_pic];//echo $_POST[id_pic];?></td> </tr> </table> <br> <table width="782" border="0" align="center" cellpadding="0" cellspacing="0" arlign="center"> <tr> <td width="61" valign="top"> </td> <? for($i=1;$i<4;$i++){?> <tr> <? $sql=mysql_query("select * from pic order by id_pic desc limit $st,3"); while($a=mysql_fetch_array($sql)){ ?> <td><center> <table width="143" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="139"> <table width="151" border="0" cellspacing="1" cellpadding="1"> <tr> <td> ชื่อภาพ <? echo $a[name_pic];?></td> </tr> <tr> <td width="150" rowspan="4"><img src="Images/activity/<? echo str_pad($a[id_pic], 3, "0", STR_PAD_LEFT) ."<BR>"; } ?>.jpg" width="145" height="159" border="0"></a></td> </tr> <tr> </tr> <tr> </tr> <tr> </tr> </table></td> </tr> </table></center> </td> <? }?> </tr><tr> <td align="center"> <? $p=$num/9; settype($p,'INT'); if($p>=1){ $s=$num%9; if($s>0){ $p=$p+1;} for($i=1;$i<=$p;$i++){ echo '| <a href=auction.php?n='.$i.'>'.$i.' </a>|'; } } ?></td></tr><? $st=$st+3;}?> </table></td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง