Viewing file: processHoldCourseTmp.php (1.35 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../global1.php";
include_once "../../class/clsConnection.php";
include_once "../../class/clsDB.php";
include_once "../class/clsHoldCourseTmp.php";
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$obj = new HoldCourseTmp($oCA);
if($method=="add"){
$obj->AddNew();
$obj->holdid=$holdid;
$obj->ttId=$ttId;
$obj->Save();
}else if($method=="edit"){
$obj->SearchByKey($holdid);
$obj->GetRecord();
$obj->Edit();
$obj->holdid=$holdid;
$obj->ttId=$ttId;
$obj->Save();
}else if($method=="delete"){
if ($flag!=0){
$obj->SearchByClassIdFlag1($classId);
}else{
$obj->SearchByClassIdFlag6($classId);
}
while($obj->GetRecord()){
$obj->Delete();
}
echo "<meta http-equiv='refresh' content='0; URL=addDefineSomeCourse.php?assid=$assid;&acadYear=$acadYear&semester=$semester&startDate=$startDate&endDate= $endDate&closeDate=$closeDate&selectFlag=$selectFlag&isPreAssess=$isPreAssess'>";
}
echo "<meta http-equiv='refresh' content='0; URL=courseInProgramTableTmp.php?assid=<?php echo $assid;?>&acadYear=<?php echo $acadYear;?>&semester=<?php echo $semester;?>&startDate=<?php echo $startDate;?>&endDate=<?php echo $endDate;?>&closeDate=<?php echo $closeDate;?>&selectFlag=<?php echo $selectFlag;?>;'>";
//$obj->Close();
//$oCA->Disconnect();
?>
|