%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 : phunphin ( 1164) 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/phunphin/domains/phunphin.go.th/public_html/news/ |
Upload File : |
<?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"];
$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 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>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅ¾Ø¹¾Ô¹ µÓºÅ¾Ø¹¾Ô¹ ÍÓàÀ;ع¾Ô¹ ¨Ñ§ËÇÑ´ÊØÃÒÉ®Ãì¸Ò¹Õ : http://www.phunphin.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 -->
<!-- You can use Open Graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="https://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="https://www.your-domain.com/path/image.jpg" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color:#006cd8;
}
-->
</style>
<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<!--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;
}
.style1 {color: #000000}
-->
</style>
<!--font-->
<link href="https://fonts.googleapis.com/css?family=Chakra+Petch|Kanit|Pridi&display=swap" rel="stylesheet">
<!--font-->
<style type="text/css">
<!--
.style4 {font-family: 'Chakra Petch', sans-serif}
-->
</style>
</head>
<body background="../images/0bg1_edit01.png" style="background-repeat:no-repeat; background-position:top">
<!-- content -->
<div align="center">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="605" align="center" valign="top"> </td>
</tr>
<tr>
<td height="55" align="center" valign="top"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><a href="http://www.phunphin.go.th/index.php"><img src="../images/1menutop_01.png" alt=""/></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><img src="../images/bg_con2_01.png" width="100"></td>
</tr>
<tr>
<td align="center" valign="top" background="../images/bg_con2_02.png" style="background-repeat:repeat; background-position:top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
<table width="85%" 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/law-book.png" width="16" height="18"><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="s2">
<?php if($filename!=""){ ?>
<a href="doc_download/<?php echo "$filename";?>" class="s2" target="_blank">´ÒǹìâËÅ´àÍ¡ÊÒà <img src="images/download.gif" width="20" height="22" border="0"> <?echo $filename;?></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="s2" 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="s2"> </td>
<td width="5%"> </td>
</tr>
<tr>
<td width="5%"> </td>
<td width="93%" class="detail-s"><div align="right" class="s2">»ÃСÒÈàÁ×èÍ <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;
$shtml = $dd." ".$printmonth." ".$yy;
if(trim($row_Recordset1['update_time']) != ""){
$shtml .= " àÇÅÒ ".trim($row_Recordset1['update_time']);
}
if(trim($row_Recordset1['update_name']) != ""){
$shtml .= " ¼Ùéà¢Õ¹â´Â ".trim($row_Recordset1['update_name']);
}
echo $shtml;
//echo $dd." ".$printmonth." ".$yy." àÇÅÒ ".trim($row_Recordset1['update_time'])." ¼Ùéà¢Õ¹â´Â ".$row_Recordset1['update_name']; ?>
</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>
<tr>
<td align="center" valign="top"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><img src="../images/bg_con2_04.png" width="1000"></td>
</tr>
</table> </td>
</tr>
</table> </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>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($Recordset1);
if($conndb)
{
mysql_close($conndb);
unset($conndb);
}
?>