%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY
| Server IP : 122.155.17.190 / Your IP : 216.73.216.89 Web Server : Apache/2 System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 User : bungkla ( 1054) PHP Version : 5.6.40 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 MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/bungkla/domains/bungkla.go.th/private_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 rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<!--font -->
<link href="../fonts/styles.css" rel="stylesheet" type="text/css" />
<link href="../fonts/stylesheet.css" rel="stylesheet" type="text/css"/>
<!--font -->
<!--font-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="specimen_files/easytabs.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="specimen_files/specimen_stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />
<!--font-->
<!--cssbutton-->
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
}
.button1 {
background-color: white;
color: black;
border: 2px solid #4CAF50;
}
.button1:hover {
background-color: #4CAF50;
color: white;
}
.button2 {
background-color: white;
color: black;
border: 2px solid #008CBA;
}
.button2:hover {
background-color: #008CBA;
color: white;
}
.button3 {
background-color: white;
color: black;
border: 2px solid #f44336;
}
.button3:hover {
background-color: #f44336;
color: white;
}
.button4 {
background-color: white;
color: black;
border: 2px solid #e7e7e7;
}
.button4:hover {background-color: #e7e7e7;}
.button5 {
background-color: white;
color: black;
border: 2px solid #555555;
}
.button5:hover {
background-color: #555555;
color: white;
}
.button1 {width: 250px;}
.button2 {width: 50%;}
.button3 {width: 100%;}
</style>
<!--cssbutton-->
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-repeat: no-repeat; background-position:top;
background-size: 100%;
}}
-->
</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;
}
.style5 {color: #000000; font-weight: bold; }
.style6 {color: #000000}
-->
</style></head>
<body style="background-repeat:no-repeat; background-position:top">
<!-- content -->
<div align="center">
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><a href="/index.php"><img src="../images/bn_home.png" width="150" height="53" border="0" /></a></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<th valign="top" scope="col"><div align="center"></div></th>
</tr>
<tr>
<th height="50" valign="top" scope="col"><div align="center">
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<th valign="top" scope="col"><div align="center"></div></th>
</tr>
<tr>
<td valign="top" background="../images/bg/images/bg_02.png"><div align="center">
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<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"></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>
</div></td>
</tr>
<tr>
<td width="1000" height="250" valign="top" background="../images/bg/images/bg_04.png" style="background-repeat:no-repeat ; background-position:top"><div align="center">
</div></td>
</tr>
</table>
</div></th>
</tr>
</table></td>
</tr>
</table>
</th>
</tr>
</table>
</div>
<!-- end_content -->
</body>
</html>
<?
}
include("../include/close_db.php");
?>