Viewing file: Edit_Work_History.php (12.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password"))
{
include("../../../include/FunctionDB.php");
ConnectDB();
$Username = $valid_user;
$Password = $password;
$sql = "Select * From personal_tb Where Username='$Username' ";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>History Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="css/style1.css" type="text/css">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC">
<tr>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="../Menu_History.php" class="d">ข้อมูลประวัติ</a></font></strong></div></td>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font color="#003399" size="2" face="Tahoma"><a href="../Menu_History.php" class="d">กลับ</a></font></strong></div></td>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font color="#003366" size="2" face="Tahoma"><a href="Show_Work_History.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="d">แสดงประวัติการทำงาน</a></font></strong></div></td>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="../../../logout.php" class="d">Logout</a></font></strong></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>ขณะนี้
อ.</strong></font> <font color="#993333" size="2" face="Tahoma"><strong><?php echo $rs[Teacher_name]?>
<?php echo $rs[Teacher_lastname]?> </strong></font><font color="#000000" size="2" face="Tahoma"><strong>กำลังใช้งานระบบ</strong></font></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA" style="border:1px solid gray">
<!--DWLayoutTable-->
<form action="Edit1.php" method="POST">
<tr bordercolor="#E7FAFE" bgcolor="#ECF5FF">
<td height="20" colspan="3" nowrap bordercolor="#FFFFFF"><div align="center"><font color="#003366" size="4" face="Tahoma"><strong><font color="#FF0000">แก้ไข</font>
ประวัติการทำงาน</strong></font></div></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#000000" size="2" face="Tahoma">ประเภทบุคลากร</font></div></td>
<td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma">
</font><font size="2" face="Tahoma">
<input type="radio" name="Person_type" <?php if (!(strcmp("$rs[Person_type]","1"))){echo "checked";} ?> value="1" onKeyPress="return handleEnter(this, event)">
ข้าราชการ
<input type="radio" name="Person_type" <?php if (!(strcmp("$rs[Person_type]","2"))){echo "checked";} ?> value="2" onKeyPress="return handleEnter(this, event)">
พนักงานของรัฐ
<input type="radio" name="Person_type" <?php if (!(strcmp("$rs[Person_type]","3"))){echo "checked";} ?> value="3" onKeyPress="return handleEnter(this, event)">
ลูกจ้างประจำ
<input type="radio" name="Person_type" <?php if (!(strcmp("$rs[Person_type]","4"))){echo "checked";} ?> value="4" onKeyPress="return handleEnter(this, event)">
ลูกจ้างชั่วคราว</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#000000" size="2" face="Tahoma">ประเภทอาจารย์</font></div></td>
<td nowrap bgcolor="#F9F9F9"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#F9F9F9"><font color="#003366" size="2" face="Tahoma">
</font><font size="2" face="Tahoma">
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","1"))){echo "checked";} ?> value="1" onKeyPress="return handleEnter(this, event)">
อาจารย์ทันตแพทย์
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","2"))){echo "checked";} ?> value="2" onKeyPress="return handleEnter(this, event)">
วิทยาจารย์
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","3"))){echo "checked";} ?> value="3" onKeyPress="return handleEnter(this, event)">
อาจารย์พิเศษ
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","4"))){echo "checked";} ?> value="4" onKeyPress="return handleEnter(this, event)">
อาจารย์เภสัช
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","5"))){echo "checked";} ?> value="5" onKeyPress="return handleEnter(this, event)">
อาจารย์พยาบาล
<input type="radio" name="Teacher_type" <?php if (!(strcmp("$rs[Teacher_type]","6"))){echo "checked";} ?> value="6" onKeyPress="return handleEnter(this, event)">
อาจารย์</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#000000" size="2" face="Tahoma">สถานะตำแหน่ง</font></div></td>
<td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#EEEEEE"><font size="2" face="Tahoma">
<input type="radio" name="Dentis_code" <?php if (!(strcmp("$rs[Dentis_code]","01"))){echo "checked";} ?> value="01" onKeyPress="return handleEnter(this, event)" >
ทันตแพทย์
<input type="radio" name="Dentis_code" <?php if (!(strcmp("$rs[Dentis_code]","02"))){echo "checked";} ?> value="02" onKeyPress="return handleEnter(this, event)" >
เภสัชกร</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td width="260" height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF">
<div align="center"><font color="#000000" size="2" face="Tahoma">ความเชี่ยวชาญ</font></div></td>
<td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
<textarea name="Skill" cols="40" rows="5" id="Skill"><? echo $rs[Skill] ;?></textarea>
</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">เลขที่ใบประกอบวิชาชีพ</font></div></td>
<td width="18" nowrap bgcolor="#F9F9F9"><!--DWLayoutEmptyCell--> </td>
<td width="704" nowrap bgcolor="#F9F9F9"> <font color="#003366" size="2" face="Tahoma">
<input name="Gover_id" type="text" id="Gover_id" value="<? echo $rs[Gover_id] ;?>">
</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">เลขที่สมาชิกสภาการพยาบาล</font></div></td>
<td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
<input name="Forum_nid" type="text" id="Forum_nid" value="<? echo $rs[Forum_nid] ;?>">
<font color="#000000">เลขที่สมาชิกสมาคมพยาบาล</font>
<input name="Club_nid" type="text" id="Club_nid" value="<? echo $rs[Club_nid];?>">
</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">ปีที่เริ่มรับราชการ</font></div></td>
<td width="18" nowrap bgcolor="#F9F9F9"><!--DWLayoutEmptyCell--> </td>
<td width="704" nowrap bgcolor="#F9F9F9"><font color="#003366" size="2" face="Tahoma">
พ.ศ.
<input name="Year_gov" type="text" id="Year_gov" value="<? echo $rs[Year_gov];?>" size="10">
เงินเดือน
<input name="Salary_1" type="text" id="Salary_1" value="<? echo $rs[Salary_1];?>">
</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">ปีที่เริ่มทำงานในวิทยาลัย</font></div></td>
<td width="18" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td width="704" nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
พ.ศ.
<input name="Year_coll" type="text" id="Year_coll" value="<? echo $rs[Year_coll];?>" size="10">
เงินค่า ตอบแทนวิชาชีพ
<input name="Salary_2" type="text" id="Salary_2" value="<? echo $rs[Salary_2];?>">
</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">ปีที่เริ่มทำงานในภาค</font></div></td>
<td width="18" nowrap bgcolor="#F9F9F9"><!--DWLayoutEmptyCell--> </td>
<td width="704" nowrap bgcolor="#F9F9F9"><font color="#003366" size="2" face="Tahoma">
พ.ศ.
<input name="Year_fac" type="text" id="Year_fac" value="<? echo $rs[Year_fac];?>" size="10">
เงินประจำตำแหน่ง
<input name="Salary_3" type="text" id="Salary_3" value="<? echo $rs[Salary_3];?>">
</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">ตำแหน่งทางราชการ</font></div></td>
<td nowrap bordercolor="#E7FAFE" bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bordercolor="#E7FAFE" bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
<input name="Gover_pos" type="text" id="Gover_pos" value="<? echo $rs[Gover_pos];?>" size="30">
</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">ตำแหน่งการบริหาร</font></div></td>
<td nowrap bgcolor="#F9F9F9"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#F9F9F9"><font color="#003366" size="2" face="Tahoma">
<input name="Manage_pos" type="text" id="Manage_pos" value="<? echo $rs[Manage_pos];?>" size="30">
</font></td>
</tr>
<tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
<td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#000000" size="2" face="Tahoma">สังกัดภาควิชา
</font> </div></td>
<td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell--> </td>
<td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"><strong><font size="2" face="MS Sans Serif, Tahoma, sans-serif">
<select name="Faculty_code" class="input1" id="Faculty_code">
<?php
$Faculty_code= $rs[Faculty_code];
$strSQL1 = "SELECT * FROM faculty_tb Where Faculty_code='$Faculty_code' ";
$result1 = mysql_query($strSQL1);
$strSQL2 = "SELECT * FROM faculty_tb Order By Faculty_name ";
$result2 = mysql_query($strSQL2);
while( $rs1 = mysql_fetch_array($result1))
{
echo"<option value=\"$rs1[Faculty_code]\" ><b>$rs1[Faculty_name]</b></option>\n";
while( $rs2 = mysql_fetch_array($result2))
{
echo"<option value=\"$rs2[Faculty_code]\" ><b>$rs2[Faculty_name]</b></option>\n";
}
}
CloseDB();
?>
</select>
</font></strong></font></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="20" colspan="3"> <div align="center">
<input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>">
<input type="submit" name="Submit" value="บันทึก">
</div></td>
</tr>
</form>
</table>
<p> </p>
</body>
</html>
<?php
}
else
{
echo"<meta http-equiv=\"refresh\" content=\"3;URL=../../login.php\">\n";
echo"Please Login ";
}
?>
|