| Server IP : 103.233.193.20 / Your IP : 216.73.216.169 Web Server : Apache/2 System : Linux host1.itclever.com 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 17:47:08 UTC 2024 x86_64 User : oriscomadm ( 1120) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,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/oriscomadm/domains/oriscom.com/private_html/admin/ |
Upload File : |
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ระบบหลังร้าน</title>
<link type="text/css" rel="stylesheet" href="css/common.css">
<link type="text/css" rel="stylesheet" href="css/style.css">
<!-- Check Form -->
<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/checkform/jquery.validate.js"></script>
<script type="text/javascript" src="js/checkform/jquery.start.js"></script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="js/tiny-mce/jquery.tinymce.js"></script>
<script language="javascript" type="text/javascript" src="js/tiny-mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="js/tiny-mce/general.js"></script>
<script type="text/javascript">
$(document).ready(function () {
//setupTinyMCE();
setupProgressbar('progress-bar');
setDatePicker('date-picker');
setupDialogBox('dialog', 'opener');
$('input[type="checkbox"]').fancybutton();
$('input[type="radio"]').fancybutton();
});
</script>
<!-- /TinyMCE -->
<script language="javascript">
function Confirm(object){
if(confirm('You are Sure DELETE')==true){
return true;
}
return false;
}
</script>
</head>
<body id="admin">
<div id="wrapper_admin">
<?php
require_once("include/header.php");
$table = "general";
$sql = "SELECT * FROM $table WHERE id='1'";
$rs = mysql_query($sql);
$arr = mysql_fetch_array($rs);
if($_GET['ac']=='del'){
@unlink(PATH.'/'.$_GET['img']);
mysql_query("UPDATE general SET banner='' WHERE id='1'") or die (mysql_error());
header("location:general.php");
}
?>
<div id="wrapper_centent">
<form action="function.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="general_edit" />
<input type="hidden" name="table" value="<?php echo $table?>" />
<input type="hidden" name="id" value="<?php echo $arr['id']?>" />
<input type="hidden" name="oldpic1" value="<?php echo $arr['logo']?>" />
<input type="hidden" name="oldpic2" value="<?php echo $arr['banner']?>" />
<input type="hidden" name="back" value="general" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl">
<tr class="head_tbl">
<td colspan="2"><h2><div>ตั้งค่าทั่วไป</div></h2></td>
</tr>
<tr>
<td width="19%">โลโก้</td>
<td width="81%" style="text-align:left;"> <input type="file" name="FileUpload1" title="กรุณาใส่รูป" /></td>
</tr>
<tr>
<td> </td>
<td style="text-align:left;"> <img src="<?php echo PATH?>/<?php echo $arr['logo']?>" /></td>
</tr>
<tr>
<td width="19%">แบนเนอร์</td>
<td width="81%" style="text-align:left;"> <input type="file" name="FileUpload2" title="กรุณาใส่รูป" /></td>
</tr>
<?php if(!empty($arr['banner'])){?>
<tr>
<td> </td>
<td style="text-align:left;"> <img src="<?php echo PATH?>/<?php echo $arr['banner']?>" style="max-width:50%;" /> <a href="?ac=del&img=<?php echo $arr['banner']?>"><img src="images/delete.png" /></a> 1400 x 604 pixel</td>
</tr>
<?php }?>
<tr>
<td width="19%">Email</td>
<td width="81%" style="text-align:left;"> <input type="text" name="email" class="input_text medium" value="<?php echo $arr['email']?>" /></td>
</tr>
<tr>
<td width="19%">Tel</td>
<td width="81%" style="text-align:left;"> <input type="text" name="tel" class="input_text medium" value="<?php echo $arr['tel']?>" /></td>
</tr>
<tr>
<td width="19%">Fax</td>
<td width="81%" style="text-align:left;"> <input type="text" name="fax" class="input_text medium" value="<?php echo $arr['fax']?>" /></td>
</tr>
<tr>
<td width="19%">Keyword</td>
<td width="81%" style="text-align:left;"> <input type="text" name="facebook" class="input_text Large" value="<?php echo $arr['facebook']?>" /></td>
</tr>
<!--
<tr>
<td width="19%">Twister</td>
<td width="81%" style="text-align:left;"> <input type="text" name="twister" class="input_text medium" value="<?=$arr['twister']?>" /></td>
</tr>
<tr>
<td> </td>
<td style="text-align:left;"> </td>
</tr>
-->
<tr>
<td width="19%">Wellcome <img src="images/flag_th.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="wellcome" id="detail6" cols="60" rows="7" class="tinymce"><?php echo $arr['wellcome']?></textarea></td>
</tr>
<tr>
<td width="19%">Wellcome <img src="images/flag_en.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="wellcomeEN" id="detail7" cols="60" rows="7" class="tinymce"><?php echo $arr['wellcome_en']?></textarea></td>
</tr>
<tr>
<td width="19%">About <img src="images/flag_th.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="about" id="detail" cols="60" rows="7" class="tinymce"><?php echo $arr['about']?></textarea></td>
</tr>
<tr>
<td width="19%">About <img src="images/flag_en.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="aboutEN" id="detail1" cols="60" rows="7" class="tinymce"><?php echo $arr['about_en']?></textarea></td>
</tr>
<tr>
<td width="19%">Careers <img src="images/flag_th.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="careers" id="detail2" cols="60" rows="7" class="tinymce"><?php echo $arr['careers']?></textarea></td>
</tr>
<tr>
<td width="19%">Careers <img src="images/flag_en.png" /></td>
<td colspan="2" style="text-align:left; padding:0 0 8px 8px;"> <textarea name="careersEN" id="detail3" cols="60" rows="7" class="tinymce"><?php echo $arr['careers_en']?></textarea></td>
</tr>
<tr>
<td width="19%">Address <img src="images/flag_th.png" /></td>
<td width="81%" style="text-align:left;"> <textarea name="address" id="detail4" cols="60" rows="7" class="tinymce"><?php echo $arr['address']?></textarea></td>
</tr>
<tr>
<td width="19%">Address <img src="images/flag_en.png" /></td>
<td width="81%" style="text-align:left;"> <textarea name="addressEN" id="detail5" cols="60" rows="7" class="tinymce"><?php echo $arr['address_en']?></textarea></td>
</tr>
<!--
<tr>
<td width="19%">แผนที่</td>
<td width="81%" style="text-align:left;">
<!--div id="mappp" style="width:100%; height:200px;"></div--
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><div style="overflow:hidden;height:300px;width:100%;"><div id="gmap_canvas" style="height:300px;width:100%;"></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style><a class="google-map-code" href="http://www.trivoo.net/gutscheine/deichmann/" id="get-map-data">deichmann</a></div><script type="text/javascript"> function init_map(){var myOptions = {zoom:15,center:new google.maps.LatLng(13.730397351343207,100.53751358740237),mapTypeId: google.maps.MapTypeId.ROADMAP};map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions);marker = new GGM.Marker({position:my,map:map,title:'เลื่อนหาตำแหน่ง',draggable:true});
GGM.event.addListener(marker,'dragend',function(){p = marker.getPosition();map.panTo(p);$('#lat').val(p.lat());$('#lng').val(p.lng())});infowindow = new google.maps.InfoWindow({content:"<b>The Breslin</b><br/>Ramintra<br/> bangkok" });google.maps.event.addListener(marker, "click", function(){infowindow.open(map,marker);});}google.maps.event.addDomListener(window, 'load', init_map);</script>
</td>
</tr>
<tr>
<td width="19%">แผนที่</td>
<td width="81%" style="text-align:left;">ละติจูด
<input type="text" name="lat" id="lat" value="<?=$arr['lat']?>"/>
ลองติจูด
<input type="text" name="lng" id="lng" value="<?=$arr['lng']?>" />
<div class="coordinate">ลาก <img src="images/marker.png" width="12" height="19"> เพื่อหาพิกัดของท่าน</div></td>
</tr>
-->
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="19%"> </td>
<td width="81%"><div style="float:left;"> <input type="submit" class="btn_medium" value="Submit" /></div></td>
</tr>
</table>
</form>
<!--
<script src="http://parttimejobmix.com/js/jquery-latest.min.js"></script>
<script>
function initialize()
{
GGM = new Object(google.maps)
my = new GGM.LatLng(13.730397351343207,100.53751358740237)
obj = $('#mappp')[0]
Options = {zoom:12,center:my,mapTypeId:GGM.MapTypeId.ROADMAP}
map = new GGM.Map(obj,Options)
marker = new GGM.Marker({position:my,map:map,title:'เลื่อนหาตำแหน่ง',draggable:true});
GGM.event.addListener(marker,'dragend',function(){
p = marker.getPosition()
map.panTo(p)
$('#lat').val(p.lat())
$('#lng').val(p.lng())
});
}
$(function(){
$('<script/>',{
src:'http://maps.google.com/maps/api/js?v=3.2&sensor=false&language=th&callback=initialize'
}).appendTo('body')
});
</script>
-->
</div>
</div>
</body>
</html>