Viewing file: InsertTraining.php (5.14 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;
//=== SESSION
$Username = $Username;
/** Table --> personal_tb */
/** Receive values */
$Period_code = trim( $_POST['Period_code'] ); // ระยะเวลา
$Training_name = htmlspecialchars( trim( $_POST['Training_name'] ) ); // เรื่อง
$Major = trim( $_POST['Major'] ); // สาขาวิชา
$Training_type = $_POST['Training_type']; // ประเภท
$Day = trim( $_POST['Day'] ); // ระดับการศึกษาต่อ
$Year_std = $_POST['Year_std']; // ปี พ.ศ.
$Place = trim( $_POST['Place'] ); // สถานที่
$Place_des = trim( $_POST['Place_des'] ); // ระบุสถานที่
//$Date_start = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate'];
//$Date_finish = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1'];
$Date = dmyE2ymdT($_REQUEST["mDate"]);
$Date_start = dmyE2ymdT($_REQUEST["mDate1"]);
$Date_finish = dmyE2ymdT($_REQUEST["mDate2"]);
$Total_hour = trim( $_POST['Total_hour'] ); // จำนวนชั่วโมง
//$Budget_use = trim( $_POST['Budget_use'] ); // เงินสนับสนุน
$Fund_resource = trim( $_POST['Fund_resource'] ); // แหล่งเงินสนับสนุน
$Organiz = trim( $_POST['Organiz'] ); // หน่วยงานที่จัด
$CNEU = trim( $_POST['CNEU'] ); // สถานที่จัด
$Apply = htmlspecialchars( trim( $_POST['Apply'] ) ); // การประยุกต์นำไปใช้งาน
$Sources = ($_POST['Sources'] == "เงินสนับสนุนอื่นๆ")?trim($_POST['SourcesOut']):trim($_POST['Sources']); // แหล่งเงินสนับสนุน
//--- Table --> 'training_tb'
InsertTraining( $Teacher_code , $maNo, $codeId,$No_in, $Dated, $provinceId, $Training_name, $Period_code, $Training_type, $Training_std, $Objective, $Content, $Benefits,$Day, $Capability_1,$Capability_2, $Performance_1,$Performance_2,$Performance_3,$Performance_4,$Performance_5,$PerformanceYear_1,$PerformanceYear_2,$PerformanceYear_3,$PerformanceYear_4, $Skills_1 , $Skills_2, $Skills_3,$Skills_4, $Sources, $Major, $Year_std, $Place, $Place_des, $Date, $Date_start, $Date_finish, $CNEU, $Cradit, $Total_hour, $Budget_use, $Fund, $Fund_resource, $Organiz, $Apply );
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร - เพิ่มข้อมูลประวัติการพัฒนาตนเอง
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|