0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
itas
/
[
Home
]
File: detail.php.bak
<?php if (isset( $_FILES )) { $HTTP_POST_FILES = $_FILES; } session_start(); require_once('../admin/Connections/conndb.php'); ?> <?php $colname_Recordset1 = "-1"; if (isset($_GET['id'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']); } mysql_select_db($database_conndb, $conndb); $query_Recordset1 = sprintf("SELECT * FROM ita_detail WHERE id = %s", $colname_Recordset1); $Recordset1 = mysql_query($query_Recordset1, $conndb) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); $id=$row_Recordset1["id"]; $news=$row_Recordset1["detail"]; $pic=$row_Recordset1["pic"]; $filename=$row_Recordset1["filename"]; $cat_id=$row_Recordset1["cat_id"]; $pic2=$row_Recordset1["pic2"]; $pic3=$row_Recordset1["pic3"]; $pic4=$row_Recordset1["pic4"]; $pic5=$row_Recordset1["pic5"]; $pic6=$row_Recordset1["pic6"]; $pic7=$row_Recordset1["pic7"]; $pic8=$row_Recordset1["pic8"]; /*$query_Recordset2 = "SELECT * FROM ita_comment WHERE id ='$id' ORDER BY comment_id"; $Recordset2 = mysql_query($query_Recordset2, $conndb) or die(mysql_error()); $totalRows_Recordset2 = mysql_num_rows($Recordset2);*/ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <script> function confirmDelete(delUrl) { if (confirm("ยืนยันการลบข้อมูล")) { document.location = delUrl; } } </script> <!-- InstanceEndEditable --> <title>องค์การบริหารส่วนตำบลนาสัก ตำบลนาสัก อำเภอสวี จังหวัดชุมพร 86130 : www.nasak.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" --><!-- InstanceEndEditable --> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> <script type="text/javascript" language="JavaScript1.2" src="../Templates/stm31.js"></script> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #AA08BD; } .style2 {color: #CC6633} --> </style></head> <body background="../images/tem_b1.jpg" style="background-repeat:no-repeat; background-position:top"> <div align="center" > <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><div align="center"> <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="980" height="650"> <param name="movie" value="../images/head.swf"> <param name="quality" value="high"> <embed src="../images/head.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="980" height="650"></embed> </object> </div></td> </tr> </table> </div></td> </tr> <tr> <td> <tr> <td valign="top"><div align="center"> <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="150" valign="top"> </td> </tr> <tr> <td height="2300" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="95%" border="0" cellspacing="1" cellpadding="1"> <tr> <td colspan="3" class="under"><div align="center"><a href="../ita_news.php?cat_id=<? echo "$cat_id";?>" class="title2" > <?php mysql_query("update news_news set click=click+1 where id =$id"); if ($cat_id!=""){ $query_CatS = "SELECT * FROM ita_category where cat_id =$cat_id"; $CatS = mysql_query($query_CatS, $conndb) or die(mysql_error()); $row_CatS = mysql_fetch_assoc($CatS); echo $row_CatS['cat_name']; }else{ echo "ข้อมูลข่าวสาร เชาว์ เต็มรักษ์"; } ?> </a></div></td> </tr> <tr> <td> </td> <td colspan="2"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%"> </td> <td width="5%"> </td> </tr> <tr> <td colspan="3" class="title-c"><div align="left"><img src="../images/e01.gif" width="16" height="16"> <a href="admin.php?cat_id=<? echo "$cat_id";?>" class="styles" > <? echo $row_CatS['cat_name']; ?> </a> <img src="../images/icon_7.gif" width="15" height="7"> <span class="styles"><?php echo $row_Recordset1['name']; ?></span> </div></td> </tr> <tr> <td> </td> <td class="styles1" colspan="2"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%"> <? if($pic!=""){ ?><div><img src="photo/<? echo "$pic";?>" hspace="10" vspace="0" align="left" /></div><? } ?> <? if($pic2!=""){ ?><div><img src="photo/<? echo "$pic2";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic3!=""){ ?><div><img src="photo/<? echo "$pic3";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic4!=""){ ?><div><img src="photo/<? echo "$pic4";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic5!=""){ ?><div><img src="photo/<? echo "$pic5";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic6!=""){ ?><div><img src="photo/<? echo "$pic6";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic7!=""){ ?><div><img src="photo/<? echo "$pic7";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> <? if($pic8!=""){ ?><div><img src="photo/<? echo "$pic8";?>" hspace="10" vspace="0" align="left" /></div> <? } ?> </td> <td width="5%"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%"><div style="padding-left:10px;"><?php echo $news; ?></div></td> <td width="5%"> </td> </tr> <tr> <td colspan="3" width="5%"> </td> </tr> <tr> <td> </td> <td width="93%" class="styles1"> </td> <td width="5%"> </td> </tr> <tr> <td> </td> <td width="93%" class="styles1"> <?php if($filename!=""){ ?> <a href="doc_download/<?php echo "$filename";?>" class="styles2" target="_blank">ดาวน์โหลดเอกสาร <img src="images/download.gif" width="20" height="22" border="0"> <?echo $filename;?></a><br> <?php } $other_file="SELECT * FROM ita_detail_file WHERE id=".$id; $res_file=mysql_query($other_file) or die(mysql_error()); while($f=mysql_fetch_array($res_file)){ ?> <a href="doc_download/<?php echo $f[path];?>" class="styles2" target="_blank">ดาวน์โหลดเอกสาร <img src="images/download.gif" width="20" height="22" border="0"> <?echo $f[path];?></a><br> <?php } ?> </td> <td width="5%"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%" class="styles1"> </td> <td width="5%"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%" class="detail-s"><div align="right" class="styles2">ประกาศเมื่อ <span class="news-s"> <? $d=explode("-",$row_Recordset1['d_date']); $dd=$d[2]; $mm=$d[1]; switch($mm) { case "1": $printmonth = "ม.ค."; break; case "2": $printmonth = "ก.พ."; break; case "3": $printmonth = "มี.ค."; break; case "4": $printmonth = "เม.ย."; break; case "5": $printmonth = "พ.ค."; break; case "6": $printmonth = "มิ.ย."; break; case "7": $printmonth = "ก.ค."; break; case "8": $printmonth = "ส.ค."; break; case "9": $printmonth = "ก.ย."; break; case "10": $printmonth = "ต.ค."; break; case "11": $printmonth = "พ.ย."; break; case "12": $printmonth = "ธ.ค."; break; } $yyyy=$d[0]; $yy=$yyyy+543; echo $dd." ".$printmonth." ".$yy; ?> </span></div></td> <td width="5%" class="styles1"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td width="5%"> </td> <td width="93%" class="detail-s"> </td> <td class="styles1"> </td> </tr> </table> <!-- InstanceEndEditable --></div></td> </tr> </table> </div></td> </tr> <tr> <td height="200" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="100" valign="top" background="../images/foot.jpg"><div align="center" class="footer"> <p><img src="../images/foot.png" width="772" height="189" border="0" usemap="#Map4"> <map name="Map3"> <area shape="rect" coords="561,157,826,175" href="http://main.pasworld.co.th/" target="_blank"> </map> </p> </div></td> </tr> </table></td> </tr> </table> </div> <map name="Map"><area shape="rect" coords="464,116,966,154" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map2"><area shape="rect" coords="613,181,964,215" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map4"><area shape="rect" coords="456,140,740,158" href="http://main.pasworld.co.th/" target="_blank"> </map></body> <!-- InstanceEnd --></html> <?php mysql_free_result($Recordset1); if($conndb) { mysql_close($conndb); unset($conndb); } ?>
©
2018.