Viewing file: 2551-03-10-1.0.01-processCourseTable.php (1.3 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/clsHoldCourse.php";
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$oHC = new HoldCourse($oCA);
/*echo "<br> method = ".$method;
echo "<br> defineid = ".$defineid;
echo "<br> acadYear = ".$acadYear;
echo "<br> semester = ".$semester;
echo "<br> startDate = ".$startDate;
echo "<br> endDate = ".$endDate;
echo "<br> noAss = ".$noAss;
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]) {
$oHC->AddNew();
$oHC->holdid=$holdid;
$oHC->defineid=$defineid;
$oHC->classId=$classId[$i];
$oHC->Save();
}
}
?>
<script language="javascript1.2">
window.opener.location.href="editDefineSomeCourse.php?defineid=<?php echo $defineid ?>&assid=<?php echo $assid;?>&acadYear=<?php echo $acadYear;?>&semester=<?php echo $semester;?>&startDate=<?php echo $startDate;?>&endDate=<?php echo $endDate;?>&closeDate=<?php echo $closeDate;?>&noAss=<?php echo $noAss;?>";
//window.opener.location.reload();
window.close();
</script>
<? } //end if method ?>
|