Viewing file: InsertBuilding.php (3.96 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( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/*----------*/
list($dStart,$mStart,$yStart) = split('/',$_REQUEST["dateStart"]);
$BuildD_ID= $_POST['BuildD_ID'];
$Build_name = $_POST['Build_name'];
$Short_name = $_POST['Short_name'];
$Class_unit = trim( $_POST['Class_unit'] );
$Room_unit = trim( $_POST['Room_unit'] );
$Area = trim( $_POST['Area'] );
$BuildD_Yr = ($yStart+543)."-".$mStart."-".$dStart;
//$Date_finish = ($yFinish+543)."-".$mFinish."-".$dFinish;
$Path = "../Man_pic";
//### Upload Image File
if( $_FILES['Img1']['name'] != "" ) {
$Img1 = $_FILES['Img1']['name'];
@copy( $_FILES['Img1']['tmp_name'] , $Path."/".$Img1 );
@unlink( $_FILES['Img1']['tmp_name'] );
}
/** Table --> */
InsertBuilding($Build_name, $BuildD_ID, $Build_type, $Short_name , $Class_unit, $Room_unit, $Area , $BuildD_Yr , $BuildD_Pr, $MoneyS_C, $Description,$Img1 );
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลงานวิจัย - เพิ่มประวัติผลงานวิจัย
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|