Viewing file: 2551-03-10-1.0.01-processCourseTableTmp.php (1.2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
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']);
$oHCT = new HoldCourseTmp($oCA);
/*echo "<br> method = ".$method;
echo "<br> acadYear = ".$acadYear;
echo "<br> semester = ".$semester;
echo "<br> startDate = ".$startDate;
echo "<br> endDate = ".$endDate;
echo "<br> cnt = ".$cnt;
for($i=0; $i<$cnt; $i++){
echo "<br> classId[$i] = ".$classId[$i];
}*/
if($method=="add"){
for($i=0; $i<$cnt; $i++){
if($classId[$i]) {
$oHCT->AddNew();
$oHCT->holdid=$holdid;
$oHCT->classId=$classId[$i];
$oHCT->Save();
}
}
?>
<script language="javascript1.2">
window.opener.location.href="addDefineSomeCourse.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;?>";
//window.opener.location.reload();
window.close();
</script>
<? } //end if method ?>
|