0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
news
/
[
Home
]
File: detail_old.php
<?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 news_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"]; /*$query_Recordset2 = "SELECT * FROM news_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 --> <?php require_once('../admin/Connections/conndb.php'); mysql_select_db($database_conndb, $conndb); ?> <title>องค์การบริหารส่วนตำบลบางเตย ที่อยู่ 8/8 หมู่2 ตำบลบางเตย อำเภอเมืองฉะเชิงเทรา จังหวัดฉะเชิงเทรา 24000 ::www.bangtoey.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 --> <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 --> <!--menutop hover --> <link href="../imagehover.css-master/css/demo-page.css" rel="stylesheet" media="all"> <link href="../imagehover.css-master/css/imagehover.min.css" rel="stylesheet" media="all"> <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' /> <!--end --> <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.png" style="background-repeat:no-repeat; background-position:top"> <!--<div id="mySidenav" class="sidenav"> <a href="http://new.huayyai.go.th/index.php" id="about"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=1" id="blog"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=4" id="projects"> </a> <a href="http://new.huayyai.go.th/albums/index.php" id="contact"> </a> </div> --> <!-- content --> <div align="center"> <table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"><tr> <td height="650" align="center" valign="top" background="../images/head-1.png" style="background-repeat:no-repeat"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="515" align="center" valign="top"> </td> </tr> <tr> <td height="364" align="center" valign="top"><iframe src="/title_head.html" width="980" height="335" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td align="center" valign="top"><iframe src="/menu-top.html" width="980" height="53" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td height="150" align="center" valign="top"> </td> </tr> </table></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"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="95%" border="0" cellspacing="1" cellpadding="1"> <tr> <td colspan="3" class="under"><div align="center"><a href="../news_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 news_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%" rowspan="2"> </td> <td width="93%" rowspan="2" class="styles1"><div align="left"> <? if($pic!=""){ ?> <img src="photo/<? echo "$pic";?>" hspace="10" vspace="0" align="left"> <? } ?> <?php echo $news; ?></div></td> <td width="5%"> </td> </tr> <tr> <td 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"></a><br> <?php } $other_file="SELECT * FROM news_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"></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 --></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" 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> <?php mysql_free_result($Recordset1); if($conndb) { mysql_close($conndb); unset($conndb); } ?>
©
2018.