Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nayongnua
/
domains
/
nayongnua.go.th
/
public_html
/
calendar
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nayongnua/domains/nayongnua.go.th/public_html/calendar/detail.php
<?php require_once('../admin/Connections/conndb.php'); ?> <?php $colname_Recordset1 = "-1"; if (isset($_GET['news_id'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['news_id'] : addslashes($_GET['news_id']); } mysql_select_db($database_conndb, $conndb); $query_Recordset1 = sprintf("SELECT * FROM news WHERE news_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); $detail=$row_Recordset1["story_text"]; ?> <!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 --> <title>องค์การบริหารส่วนตำบลนาโยงเหนือ หมู่ที่ 4 ถนนนาโยง - ย่านตาขาว ตำบลนาโยงเหนือ อำเภอนาโยง จังหวัดตรัง 92170 : www.nayongnue.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: #0099FF; } .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="50" valign="top"> </td> </tr> <tr> <td height="1500" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="title2"><div align="center"><img src="../images/17.png" width="600" height="53"></div></td> </tr> <tr> <td class="title2"><div align="center"> <? mysql_query("update news set click=click+1 where news_id =$news_id"); if($row_Recordset1['news_type']== "information"){ echo "<img src='../images/information.gif'>"; } else if($row_Recordset1['news_type']== "procedure"){ echo "<img src='../images/price.gif'>"; } else if($row_Recordset1['news_type']== "book"){ echo "<img src='../images/book.gif'>"; } else if($row_Recordset1['news_type']== "report"){ echo "<img src='../images/report.gif'>"; } else if($row_Recordset1['news_type']== "statement"){ echo "<img src='../images/statement.gif'>"; } else if($row_Recordset1['news_type']== "plan_4"){ echo "<img src='../images/plan_4.gif'>"; } else if($row_Recordset1['news_type']== "danger"){ echo "<img src='../images/danger.gif'>"; } else if($row_Recordset1['news_type']== "load_1"){ echo "<img src='../images/load_1.gif'>"; } else if($row_Recordset1['news_type']== "load_2"){ echo "<img src='../images/load_2.gif'>"; } else if($row_Recordset1['news_type']== "load_3"){ echo "<img src='../images/load_3.gif'>" ; } else if($row_Recordset1['news_type']== "load_4"){ echo "<img src='../images/load_4.gif'>"; } else if($row_Recordset1['news_type']== "load_5"){ echo "<img src='../images/load_5.gif'>"; } else if($row_Recordset1['news_type']== "load_6"){ echo "<img src='../images/load_6.gif'>"; } else if($row_Recordset1['news_type']== "load_7"){ echo "<img src='../images/load_7.gif'>"; } else if($row_Recordset1['news_type']== "load_8"){ echo "<img src='../images/load_8.gif'>ี"; } else{ echo "<img src='../images/job.gif'>"; } ?> </div></td> </tr> <tr> <td><div align="center"> <table width="700" border="0" cellpadding="2" cellspacing="1" class="box-center"> <tr> <td height="25" bgcolor="#FF9900" class="styles"> <div align="center">เรื่อง : <span class="detail"><?php echo $row_Recordset1['headline']; ?></span></div></td> </tr> <tr> <td valign="top" class="styles1"> <span class="styles4">รายละเอียด :</span> <span class="detail"><?php echo nl2br($detail); ?></span></td> </tr> <?php if ($row_Recordset1['filename'] <> "") {?> <tr> <td height="25" valign="top" class="styles1"> <span class="styles4">รายละเอียดเพิ่มเติม :</span> <a href="doc_download/<?php echo $row_Recordset1['filename']; ?>" target="_blank" class="styles2"><img src="images/download.gif" alt="ดาวน์โหลดเอกสาร" width="20" height="22" border="0" align="absmiddle" /></a> <a href="doc_download/<?php echo $row_Recordset1['filename']; ?>" target="_blank" class="styles2">ดาวน์โหลดเอกสาร </a></td> </tr> <?php } ?> <tr> <td> </td> </tr> <tr> <td><div align="right"><span class="styles1">ประกาศเมื่อ :</span> <span class="styles2"><? $d=explode("-",$row_Recordset1['created']); $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> </tr> </table> </div></td> </tr> <tr> <td> </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/foot1.png" width="980" height="675" border="0" usemap="#Map6"> <map name="Map3"> <area shape="rect" coords="561,157,826,175" href="http://main.pasworld.co.th/" target="_blank"> </map> </p> <p> </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="569,179,832,202" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map5"><area shape="rect" coords="335,199,642,224" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map6"><area shape="rect" coords="333,628,642,647" href="http://main.pasworld.co.th/" target="_blank"> </map></body> <!-- InstanceEnd --></html> <?php mysql_free_result($Recordset1); if($conndb) { mysql_close($conndb); unset($conndb); } ?>