Viewing file: InsertTraining.php (4.44 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;
/** Receive values */
$Period_code = trim( $_POST['Period_code'] ); // ระยะเวลา
$Training_name = htmlspecialchars( trim( $_POST['Training_name'] ) ); // เรื่อง
$Major = trim( $_POST['Major'] ); // สาขาวิชา
$Training_type = $_POST['Training_type']; // ประเภท
$Level = trim( $_POST['Level'] ); // ระดับการศึกษาต่อ
$Year_std = $_POST['Year_std']; // ปี พ.ศ.
$Place = trim( $_POST['Place'] ); // สถานที่
$Place_des = trim( $_POST['Place_des'] ); // ระบุสถานที่
$Date_start = trim( $_POST['Date_start'] ); // วันที่เริ่ม
$Date_finish = trim( $_POST['Date_finish'] ); // วันที่สิ้นสุด
$Total_hour = trim( $_POST['Total_hour'] ); // จำนวนชั่วโมง
$Fund = trim( $_POST['Fund'] ); // เงินสนับสนุน
$Fund_resource = trim( $_POST['Fund_resource'] ); // แหล่งเงินสนับสนุน
$Organiz = trim( $_POST['Organiz'] ); // หน่วยงานที่จัด
$CNEU = trim( $_POST['CNEU'] ); // สถานที่จัด
$Apply = htmlspecialchars( trim( $_POST['Apply'] ) ); // การประยุกต์นำไปใช้งาน
//--- Table --> 'training_tb'
InsertTraining( $Teacher_code , $Training_name , $Period_code , $Training_type , $Training_std,$Level , $Major , $Year_std , $Place , $Place_des , $Date_start , $Date_finish , $CNEU , $Total_hour , $Fund , $Fund_resource , $Organiz , $Date_sent , $Period_prop , $Apply );
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร - เพิ่มข้อมูลประวัติการพัฒนาตนเอง
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |