%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/contacts/ |
Upload File : |
<?
session_start();
Header("Content-Type: text/html; charset=UTF-8");
if($_SESSION[user]=="")
{
session_destroy();
$message = "กรุณา Login ก่อน.";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
}
if($_GET['chk_p']){
$chk_p = $_GET['chk_p'];
}else{
$chk_p = $_POST['chk_p'];
}
if(empty($chk_p) || ($chk_p==0)){
echo "..Error..";die;
}
if($_GET['chk_del']){
$chk_del = $_GET['chk_del'];
}else{
$chk_del = $_POST['chk_del'];
}
if($_GET['code_id']){
$code_id = $_GET['code_id'];
}else{
$code_id = $_POST['code_id'];
}
if($_GET['code_1']){
$code_1 = $_GET['code_1'];
}else{
$code_1 = $_POST['code_1'];
}
$code_1 = htmlspecialchars($code_1);
if($_GET['c_id']){
$c_id = $_GET['c_id'];
}else{
$c_id = $_POST['c_id'];
}
if($_GET['c_thumb']){
$c_thumb = $_GET['c_thumb'];
}else{
$c_thumb = $_POST['c_thumb'];
}
if($chk_del==1){
include("../include/config_db.php");
$f_name = "";
switch ($chk_p) {
case 1: $sql = "delete from `contact_admin_detail` where (`id`='$c_id') LIMIT 1";
$f_name = "contact_admin_detail";
break;
}
$dbquery = mysql_query($sql) or die("Can't send query !");
include("../include/close_db.php");
echo "<br>";
echo "<h3><p align=\"center\"><font color='#0000BB'>ลบข้อมูลเรียบร้อยแล้ว</font></p></h3><br>";
switch ($chk_p) {
case 1: $url = "admin.php?#top_page";
header ("Location: ".$url);
break;
}
}else
{
$s_name_1 = '';
$s_caption_1 = '';
switch ($chk_p) {
case 1: $s_caption_1 = 'ติดต่อสอบถาม';
$s_name_1 = 'ลบข้อมูล';
break;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<link href="svstyles.css?v=<?php echo filemtime('svstyles.css');?>" rel="stylesheet" type="text/css" />
<link href="Hoverable.css" rel="stylesheet" type="text/css" />
<link href="../css/Hover Buttons.css" rel="stylesheet" type="text/css"/><!--css เมนูหัวเว็บ -->
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
<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;
}
.style6 {color: #000000}
.style7 {
color: #FFFFFF;
font-size: 18px;
font-weight: bold;
}
.style8 {font-size: 18px}
-->
</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"> <br > </a>
<a href="http://new.huayyai.go.th/news.php?cat_id=1" id="blog"> <br > </a>
<a href="http://new.huayyai.go.th/news.php?cat_id=4" id="projects"> <br > </a>
<a href="http://new.huayyai.go.th/albums/index.php" id="contact"> <br > </a>
</div> -->
<!-- content -->
<div align="center">
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="650" align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="1000" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<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="top">
<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="top">
<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="top">
<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="hover13 column">
<div></div> </td>
</tr>
</table>
</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"></th>
</tr>
<tr>
<td valign="top">
<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/contacts.png" width="640" height="78"></div></td>
</tr>
<tr><td height="10" valign="top"> </td></tr>
<tr>
<td>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#669999">
<tr>
<td>
<?
switch ($chk_p) {
case 1:echo " <a href=\"admin.php?#top_page\" class='hmenu'><< กลับไปหน้า $s_caption_1</a>";
break;
}
?> </td>
</tr>
</table>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#669999">
<form name="form1" enctype="multipart/form-data" method="post" action="del_data.php">
<tr bgcolor="#FF0000">
<td align="center"><font color="#FFFFFF"><b>ลบข้อมูล <?=$s_caption_1; ?></b></font></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td width="50%" align="right"><?=$s_name_1; ?> :: </td>
<td>
<?
switch ($chk_p) {
case 1:
if(!empty($c_id) and ($c_id>0))
{
echo "ID ".$c_id." ".$code_1 ;
}else
{
echo "ID ".$code_id." ".$code_1 ;
}
break;
}
?> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="hidden" name="code_id" value="<?echo $code_id;?>">
<input type="hidden" name="code_1" value="<?echo $code_1;?>">
<input type="hidden" name="c_id" value="<?echo $c_id;?>">
<input type="hidden" name="c_thumb" value="<?echo $c_thumb;?>">
<input type="hidden" name="s_caption_1" value="<?echo $s_caption_1;?>">
<input type="hidden" name="chk_del" value="1">
<input type="hidden" name="chk_p" value="<?echo $chk_p;?>">
<input type="submit" name="Submit" value=" Yes "> </td>
</tr>
<tr>
<td> </td>
</tr>
</table> </td>
</tr>
</form>
</table> </td>
</tr>
<tr><td> </td></tr>
</table>
</div> </td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table> </td>
</tr>
</table> </th>
</tr>
</table></th>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" style="background-repeat:no-repeat"><div align="right"><span class="title2 style14 style6"><br>
<br>
<br>
<br>
<br />
<br />
<br />
<br />
</span></div></td>
</tr>
</table></td>
</tr>
</table>
</th>
</tr>
</table>
<a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><span style="background-repeat:no-repeat"><img src="../images/foot.png" border="0"></span></a></div>
<!-- end_content -->
<tr><td align="left" valign="top"><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>
<?
}
include("../include/close_db.php");
?>