|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_vc/report/pdir/admin/ |
Upload File : |
<?
if ($type1 == "banner" ) {
$image_banner = " banner= '' , banner_type='' ";
}
if ( $type1 == "map" ) {
$image_map = " map= '' , map_type='' ";
}
include ("../../../inc/conndb.inc.php");
$sql = " UPDATE office_detail SET ";
$sql = $sql . " $image_banner $image_map ";
$sql = $sql . " WHERE id = '$id' " ;
if (!($query_result = mysql_db_query($dbname,$sql))){
echo mysql_error();
}
//================================================
//echo "$sql"; die;
if ($apply !==""){
$url_back="officer_edit_form_admin.php?id=$id";
$office_name = $th_name ;
?>
<script language="javascript">
function previous_view(url_back){
alert(" źÃÙ»àÊÃç¨ÊÔé¹ ");
document.location.href = url_back ;
}
</script>
<script language="javascript">
previous_view("<?=$url_back?>");
</script>
<?
die;
}
?>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script language="javascript">
//function updateManiPage(){
opener.document.location.reload();
window.close();
//}
</script>
</head>
<body>
</body>
</html>