Viewing file: Edit_Update_Work.php (4.7 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | ";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../include/Function.php" );
require_once( "../include/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
/*
//--- Test value
echo $Teacher_code;
exit;
*/
$myCode = $Teacher_code;
/** Receive values */
$Person_type = $_POST['Person_type']; // ประเภทบุคลากร
$Teacher_type = $_POST['Teacher_type']; // ประเภทอาจารย์
$Dentis_code = $_POST['Dentis_code']; // สถานะตำแหน่ง
$Skill = htmlspecialchars( $_POST['Skill'] ); // ความเชี่ยวชาญ
$Gover_id = trim( $_POST['Gover_id'] ); // เลขที่ใบประกอบวิชาชีพ
$Forum_nid = trim( $_POST['Forum_nid'] ); // เลขที่สมาชิกสภาการพยาบาล
$Club_nid = trim( $_POST['Club_nid'] ); // เลขที่สมาชิกสมาคมพยาบาล
$Year_gov = trim( $_POST['Year_gov'] ); // ปีที่เริ่มรับราชการ
$Salary_1 = trim( $_POST['Salary_1'] );
$Year_coll = trim( $_POST['Year_coll'] ); // ปีที่เริ่มทำงานในวิทยาลัย
$Salary_2 = trim( $_POST['Salary_2'] );
$Year_fac = trim( $_POST['Year_fac'] ); // ปีที่เริ่มทำงานในภาค
$Salary_3 = trim( $_POST['Salary_3'] );
$Gover_pos = trim( $_POST['Gover_pos'] ); // ตำแหน่งทางราชการ
$Manage_pos = trim( $_POST['Manage_pos'] ); // ตำแหน่งการบริหาร
$Faculty_code = $_POST['Faculty_code']; // สังกัดภาควิชา
//--- Table --> 'personal_tb'
$strSQL= " UPDATE personal_tb SET Skill='$Skill' , Person_type='$Person_type' , Teacher_type='$Teacher_type' , Dentis_code='$Dentis_code' , Gover_id='$Gover_id' , Forum_nid='$Forum_nid' , Club_nid='$Club_nid' , Year_gov='$Year_gov' , Year_coll='$Year_coll' , Salary_1='$Salary_1' , Salary_2='$Salary_2' , Salary_3='$Salary_3' , Year_fac='$Year_fac' , Gover_pos='$Gover_pos' , Manage_pos='$Manage_pos' , Faculty_code='$Faculty_code'
WHERE Teacher_code='$Teacher_code' ";
$result = $dbObj->runQuery($strSQL);
$dbObj->freeresult($result);
} # else
?>
ข้อมูลประวัติส่วนตัว - แก้ไขข้อมูลประวัติการทำงาน
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |