|
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/eoffice/application/document/ |
Upload File : |
<?
session_start();
header("Last-Modified: ".gmdate( "D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("content-type: application/x-javascript; charset=TIS-620");
include("../../config/config.inc.php");
include("../../common/function.php");
include("../../common/eoffice.inc.php");
$sex = array("M"=>"ชาย","F"=>"หญิง");
$sql = " select * from epm_staff where staffid='".$_SESSION[session_staffid]."'; ";
$result = mysql_query($sql)or die("Query Error line : " . __LINE__ . "<hr>".mysql_error());
$rs = mysql_fetch_assoc($result);
?>
<style type="text/css">
<!--
.p_border{
border-bottom:2 solid #DADCED;
}
-->
</style>
<form name="profile" style="width:100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#F2F4F7">
<tr>
<td align="left" bgcolor="#DADCED"><span style="font-size:11pt; font-weight:bold">ข้อมูลส่วนตัว <?=$report_title?></span>
</td>
</tr>
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr align="center">
<td colspan="2"><div id="Status"></div></td>
</tr>
<tr>
<td height="20" align="left" ><strong>ตำแหน่ง</strong></td>
<td><span class="p_border">
<input type="text" name="title" maxlength="200" style="width:200px;" value="<?=$rs[title]?>" />
</span></td>
</tr>
<tr>
<td height="20" align="left" ><strong>คำนำหน้า (ไทย) </strong></td>
<td width="766"><input type="text" name="prename" maxlength="50" style="width:200px;" value="<?=$rs[prename]?>" /></td>
</tr>
<tr>
<td height="20" align="left" ><strong> ชื่อ (ไทย)<font color="#FF0000">*</font></strong></td>
<td ><input type="text" name="staffname" maxlength="200" style="width:200px;" value="<?=$rs[staffname]?>" /></td>
</tr>
<tr>
<td width="171" height="20" align="left" class="p_border"><strong>นามสกุล (ไทย)<font color="#FF0000">*</font></strong> </td>
<td class="p_border"><input type="text" name="staffsurname" maxlength="200" style="width:200px;" value="<?=$rs[staffsurname]?>" /></td>
</tr>
<tr>
<td height="20" align="left"><strong>คำนำหน้า (อังกฤษ)</strong></td>
<td><input type="text" name="engprename" maxlength="200" style="width:200px;" value="<?=$rs[engprename]?>" /></td>
</tr>
<tr>
<td height="20" align="left"><strong>ชื่อ (อังกฤษ)<font color="#FF0000">*</font></strong></td>
<td><input type="text" name="engname" maxlength="200" style="width:200px;" value="<?=$rs[engname]?>" /></td>
</tr>
<tr>
<td height="20" align="left" class="p_border"><strong>นามสกุล (อังกฤษ)<font color="#FF0000">*</font></strong></td>
<td class="p_border"><input type="text" name="engsurname" maxlength="200" style="width:200px;" value="<?=$rs[engsurname]?>" /></td>
</tr>
<tr>
<td height="20" align="left" class="p_border"><strong>Email Address</strong></td>
<td class="p_border"><input type="text" name="email" maxlength="200" style="width:200px;" value="<?=$rs[email]?>" /></td>
</tr>
<tr>
<td height="20" align="left" class="p_border"><strong>เพศ</strong></td>
<td class="p_border"><select name="sex" style="width:100px;">
<?
foreach ($sex as $sex=>$caption){
$sel = ($rs[sex] == $sex) ? " selected " : "" ;
echo "<option value='$sex' $sel>$caption";
}
?>
</select> </td>
</tr>
<tr>
<td height="20" align="left" class="p_border"><strong>โทรศัพท์</strong></td>
<td class="p_border"><input type="text" name="telno" maxlength="100" style="width:200px;" value="<?=$rs[telno]?>" /></td>
</tr>
<!--<tr>
<td height="20" align="left" valign="top" class="p_border"><strong>ที่อยู่</strong></td>
<td class="p_border"><textarea name="address" style="width:100%; height:50px;"><?//=$rs[address]?></textarea></td>
</tr>-->
<!--<tr>
<td height="20" align="left" valign="middle" class="p_border"><strong>รหัสหน่วยงาน</strong></td>
<td class="p_border"><table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="26%" align="center" valign="middle"><input name="refid_info" type="text" id="refid_info"style="width:200px;" value="<?=$rs[refid_info]?>
" /></td>
<td width="1%" align="left" valign="top"> </td>
<td width="74%" align="left" valign="middle">รหัสประจำหน่วยงาน คือ รหัสที่หน่วยงานลงทะเบียนไว้กับสารบรรณกลางของสำนักงานจังหวัด ที่ขึ้นต้นด้วย ลป เว้นวรรค และตามด้วยเลขรหัสประจำหน่วยงาน เช่นสำนักงานจังหวัดได้แก่ "ลป 0016"</td>
</tr>
</table></td>
</tr>-->
<tr>
<td height="20" align="left" valign="top" class="p_border"><strong>หมายเหตุ</strong></td>
<td class="p_border"><textarea name="comment" style="width:100%; height:50px;"><?=$rs[comment]?></textarea></td>
</tr>
<!--<tr>
<td height="20" align="left"><strong>ภาพ</strong></td>
<td><a href="#" onclick="uplImage();">>>เปลี่ยนข้อมูลภาพประจำตัว<<</a></td>
</tr>-->
</table>
</td>
</tr>
<tr>
<td align="left" bgcolor="#DADCED">
<button style="width:60px;font-weight:bold" onclick="UpdateProfile();">OK</button>
<button style="width:60px;" onclick="document.profile.reset();">Cancel</button>
</td>
</tr>
</table>
</form>