Viewing file: Edit_Update_Work.php (5.04 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'] ); // เลขที่สมาชิกสมาคมพยาบาล
//$Date_gover = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1'];
$Date_gover = dmyE2ymdT($_REQUEST["mDate1"]);
//$Year_gov = $_POST['mYear2']."-".$_POST['mMonth2']."-".$_POST['mDate2'];
$Year_gov = dmyE2ymdT($_REQUEST["mDate2"]);
//$Year_coll = $_POST['mYear3']."-".$_POST['mMonth3']."-".$_POST['mDate3'];
$Year_coll = dmyE2ymdT($_REQUEST["mDate3"]);
//$Year_fac = $_POST['mYear4']."-".$_POST['mMonth4']."-".$_POST['mDate4'];
$Year_fac = dmyE2ymdT($_REQUEST["mDate4"]);
$Salary_2 = trim( $_POST['Salary_2'] );
$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' , Date_gover='$Date_gover', Forum_nid='$Forum_nid' , Club_nid='$Club_nid' , Club_no='$Club_no' , Salary_1='$Salary_1' , Salary_2='$Salary_2' , Salary_3='$Salary_3' , Year_gov='$Year_gov' ,Year_coll='$Year_coll', Year_fac='$Year_fac' , Gover_pos='$Gover_pos' , Manage_pos='$Manage_pos' , Faculty_code='$Faculty_code' , conId='$conId', PositionId='$PositionId' WHERE Teacher_code='$Teacher_code' ";
$result = $dbObj->runQuery($strSQL);
$dbObj->freeresult($result);
} # else
?>
ข้อมูลประวัติส่วนตัว - แก้ไขข้อมูลประวัติการทำงาน
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|