Viewing file: EditCorseMethod.php (4.62 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( "../includes/Function.php" );
require_once( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
//$Date_start = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate'];
//$Date_finish = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1'];
$Date_start = dmyE2ymdT($_REQUEST['mDate']);
$Date_finish = dmyE2ymdT($_REQUEST['mDate1']);
/*
$sql = "SELECT * FROM tech_corseplan_tb where courseId='$courseId' and acadYear='$acadYear' ";
$result1 = mysql_query($sql);
$num_rows = mysql_num_rows($result1);
if($num_rows){
*/
$query1 = " UPDATE tech_corseplan_tb SET programId='$programId' , semester='$semester' , acadYear='$acadYear' , TotalStudent='$TotalStudent', studentYear='$studentYear' , dayId='$dayId' ,startTime='$startTime' , endTime='$endTime', TotalWeek='$TotalWeek', Method_code='$Method_code', Place='$Place', courseCode='$courseCode', courseId='$courseId' , conditionId='$conditionId', Date_start='$Date_start', Date_finish='$Date_finish', Res_unit ='$Res_unit' WHERE corsett='$corsett' ";
$result1 = $dbObj->runQuery($query1);
$dbObj->freeresult($result1);
$sql =" UPDATE tech_courseteacher SET programId = '$programId' , corsett='$corsett' , courseId = '$courseId', acadYear = '$acadYear' WHERE corsett='$corsett' ";
$result2 = $dbObj->runQuery($sql);
$dbObj->freeresult($result2);
// }
/*
else{
InsertCorseMethod( $programId, $semester, $acadYear, $TotalStudent, $studentYear, $dayId , $startTime, $endTime ,$TotalWeek , $Method_code,$Place, $courseCode,$courseId,$conditionId, $Date_start,$Date_finish, $Res_unit ) ;
}
$dbObj->disconn();
unset($dbObj);
*/
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลงานวิจัย - เพิ่มประวัติผลงานวิจัย
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |