|
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/ |
Upload File : |
<?
$bypass=1;
include ("../../config/conndb.qpass.php") ;
$sql = " SELECT officer.ID, officer.title, officer.th_name, officer.th_sname, officer.position, office_detail.th_name, office_detail.tel1, ";
$sql = $sql ." office_detail.tel2, office_detail.tel3 FROM office_detail ";
$sql = $sql ." INNER JOIN officer ON (office_detail.office_id = officer.office_id) ORDER BY officer.ID; ";
echo $sql;
$query_result=mysql_db_query($db_dataentry,$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>POC MyAdmin</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script src="inc/functions.js" type="text/javascript" language="javascript"></script>
<link href="basiccss.css" rel="stylesheet" type="text/css">
</head><body>
<form action="officer_add.php" method="post" name="form2"><br>
<table width="685" align="center" border="0" cellspacing="1">
<tr>
<td bgcolor="#a3b2cc"> คำนำหน้า : </td>
<td><input name="title" type="text" id="title"></td>
</tr>
<tr>
<td width="154" bgcolor="#a3b2cc"><div align="left"> ชื่อ :</div></td>
<td width="524"><input name="th_name" type="text" id="th_name"></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"> นามสกุล : </td>
<td><input name="th_sname" type="text" id="th_sname"></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"><div align="left"> ตำแหน่ง :</div></td>
<td><input name="position" type="text" id="position"></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"> ชื่อหน่วยงาน : </td>
<td><select name="office_id" id="office_id">
<?
$sql2 = " SELECT * FROM office_detail; ";
$query_result2 = mysql_db_query($db_dataentry,$sql2);
while ($result2 = mysql_fetch_array($query_result2)) {
?>
<option value="<?=$result2[office_id]?>" <? if($result2[office_id] == $result2[office_id]) { echo "selected"; } ?> ><?=$result2[th_name]?></option>
<? } ?>
</select></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"> E-mail :</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"> เบอร์โทรศัพท์ (ที่พัก) :</td>
<td><input name="home_tel" type="text" id="home_tel"></td>
</tr>
<tr>
<td bgcolor="#a3b2cc"> มือถือ : </td>
<td><input name="mobile" type="text" id="mobile"></td>
</tr>
<tr>
<td align="right"> </td><td> </td>
</tr>
<tr>
<td align="right"><input type="Submit" name="Submit" value="Send"></td>
<td> <input type="reset" name="Submit2" value="Clear" onclick ="history.back;">
<input name="id" type="hidden" value="<?=$id?>"></td>
</tr>
</table>
<br>
</form>
</body>
</html>