Viewing file: InsertFormA.php (4.2 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;
$Teacher_code = $_POST['Teacher_code'];
$code = $_POST['code'];
$ProjectId = $_POST['ProjectId'];
$No_in = trim( $_POST['No_in'] );
$Detail = trim( $_POST['Detail'] );
$Date = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate'];
$Date_start = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1'];
$Date_finish = $_POST['mYear2']."-".$_POST['mMonth2']."-".$_POST['mDate2'];
$Training_name = $_POST['Training_name'];
$Training_type = $_POST['Training_type'];
$Day = trim( $_POST['Day'] );
$Year_std = trim( $_POST['Year_std'] );
$TeacherId = $_POST['TeacherId'];
$Flag1 = $_POST['Flag1'];
$Flag2 = $_POST['Flag2'];
$Budget_use = trim( $_POST['Budget_use'] );
InsertTraining( $Teacher_code, $Training_name, $Period_code, $Training_type, $Level, $Major, $Year_std, $Place, $Place_des, $Date_start, $Date_finish, $CNEU, $Total_hour, $Fund, $Fund_resource, $Organiz, $Date_sent, $Period_prop, $Apply );
$Training_code = mysql_insert_id();
InsertFormA( $Training_code, $Teacher_code, $code, $ProjectId, $No_in, $Detail, $Date, $Date_start, $Date_finish, $Training_name, $Training_type, $Day, $Year_std, $TeacherId, $Flag1, $Falg2, $Budget_use );
InsertProject( $Training_code, $Project_code, $ProjectId, $MoneyId, $MoneyS_C, $Faculty_code, $Teacher_code, $Ind, $Orderlist, $Project_plan, $Training_name, $Date, $Budget_use, $programId, $Budget_Year, $Year );
} # else
?>
MIS -- Teacher
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|