Viewing file: editCopyTimeTable.php (18.93 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../global0.php";
include_once "../link/function.php";
include_once "../class/clsrg_CopyTimeTable.php";
include_once "../class/clsClass.php";
include_once "../class/clsCourse.php";
include_once "../class/clsProgram.php";
include_once "../class/clsRoom.php";
include_once "../class/clsrg_MainExternalPlace.php";
include_once "../class/clsrg_SubExternalPlace.php";
include_once "../class/clsrg_WeekDate.php";
include_once "../class/clsDay.php";
include_once "../class/clsPeriod.php";
include_once "../class/clsOfficer.php";
include_once "../class/clsrg_SysStudyType.php";
include_once "../class/clsrg_OFSetTT.php";
include_once "../class/clsrg_NoStudyDate.php";
openWindow();
checkWeekDayJS();
isvaliddate();
futureDayJS();
doCheckAll();
$conn = new Connection();
$oCt1 = new rg_CopyTimeTable();
$oCt2 = new rg_CopyTimeTable();
$oCl = new Class1();
$oCo = new Course();
$oPg = new Program();
$oRm = new Room();
$oMep = new rg_MainExternalPlace();
$oSep = new rg_SubExternalPlace();
$oWd = new rg_WeekDate();
$oDy = new Day();
$oPr = new Period();
$oOf = new Officer();
$oSt = new rg_SysStudyType();
$oOst = new rg_OFSetTT();
$oNsd = new rg_NoStudyDate();
?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../source/calendarDateInput.js"></script>
<script language="javascript">
function checkFormat() {
f = document.pc;
if(f.ctRmId.value=="") {
alert('กรุณาเลือก ห้อง');
f.ctRmId.focus();
return false;
}
if(f.ctEpMepId.disabled==false && f.ctEpMepId.value=="") {
alert('กรุณาเลือก สถานที่ฝึกงาน');
return false;
}
if(f.ctDyId.value=="") {
alert('กรุณาเลือก วัน');
f.ctDyId.focus();
return false;
}
if(f.ctFrPr.value=="") {
alert('กรุณาเลือก จากคาบ');
f.ctFrPr.focus();
return false;
}
if(f.ctToPr.value=="") {
alert('กรุณาเลือก ถึงคาบ');
f.ctToPr.focus();
return false;
}
if(parseInt(f.ctFrPr.value) > parseInt(f.ctToPr.value)) {
alert('จากคาบ ต้อง <= ถึงคาบ');
f.ctToPr.focus();
return false;
}
if(f.ctOfId.value=="") {
alert('กรุณาเลือก ชื่ออาจารย์ผู้สอน');
f.ctOfId.focus();
return false;
}
if(f.ctSstId.value=="") {
alert('กรุณาเลือก ประเภทการสอน');
f.ctSstId.focus();
return false;
}
return true;
}
function ChangeEp() {
f = document.pc;
s = document.getElementById("search");
if(f.ctRmId.value=="NULL") {
f.mepName.disabled = "";
f.sepName.disabled = "";
f.ctEpMepId.disabled = "";
f.ctEpSepId.disabled = "";
s.style.display = "";
}
else {
f.mepName.disabled = "none";
f.sepName.disabled = "none";
f.ctEpMepId.disabled = "none";
f.ctEpSepId.disabled = "none";
s.style.display = "none";
}
}
function ChangeMethodEdit() {
f = document.pc;
f.method.value = "edit";
f.submit();
}
function ChangeMethodDelete() {
f = document.pc;
f.method.value = "delete";
f.submit();
}
</script>
<form name="pc" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="hidden" name="view" value="<?=$view?>">
<input type="hidden" name="officerCode" value="<?=$officerCode?>">
<input type="hidden" name="ctId" value="<?php echo $ctId;?>">
<table width="100%" align="center" cellpadding="3" cellspacing="0" border="1">
<tr>
<td colspan="3" align="center"><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><b>แก้ไขตารางสอน</b></font></td>
</tr>
<tr bgcolor="#ABCDEF">
<td width="18%" align="center"><font size="2"><b>#</b></font></td>
<td width="41%" align="center"><font size="2"><b>เดิม</b></font></td>
<td width="41%" align="center"><font size="2"><b>เปลี่ยนเป็น</b></font></td>
</tr>
<?php
$oCt1->SearchByKey($ctId);
$oCt1->GetRecord();
$oCl->SearchByKey($oCt1->ctClId);
$oCl->GetRecord();
$oCo->SearchByKey($oCl->courseId);
$oCo->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>รายวิชา</b></font></td>
<td><font size="2"><?php echo $oCo->courseCode.' '.$oCo->courseName;?></font></td>
<td><font size="2"><?php echo $oCo->courseCode.' '.$oCo->courseName;?></font>
<input type="hidden" name="coId" value="<?php echo $oCl->courseId;?>">
<input type="hidden" name="ctClId" value="<?php echo $oCt1->ctClId;?>"></td>
</tr>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>กลุ่ม</b></font></td>
<td><font size="2"><?php echo $oCl->section;?></font></td>
<td><font size="2"><?php echo $oCl->section;?></font></td>
</tr>
<?php
if(!is_null($oCl->programId)) {
$oPg->SearchByKey($oCl->programId);
$oPg->GetRecord();
}
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>หลักสูตร</b></font></td>
<td><font size="2"><?php echo is_null($oCl->programId) ? 'เรียนรวมหลายหลักสูตร' : $oPg->programName;?></font></td>
<td><font size="2"><?php echo is_null($oCl->programId) ? 'เรียนรวมหลายหลักสูตร' : $oPg->programName;?></font>
<input type="hidden" name="programId" value="<?php echo is_null($oCl->programId) ? 'NULL' : $oCl->programId;?>"></td>
</tr>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ชั้นปี</b></font></td>
<td><font size="2"><?php echo $oCl->studentYear;?></font></td>
<td><font size="2"><?php echo $oCl->studentYear;?></font>
<input type="hidden" name="studentYear" value="<?php echo $oCl->studentYear;?>"></td>
</tr>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ภาค/ปีการศึกษา</b></font></td>
<td><font size="2"><?php echo $oCl->semester.'/'.$oCl->acadYear;?></font></td>
<td><font size="2"><?php echo $oCl->semester.'/'.$oCl->acadYear;?></font>
<input type="hidden" name="semester" value="<?php echo $oCl->semester;?>">
<input type="hidden" name="acadYear" value="<?php echo $oCl->acadYear;?>"></td>
</tr>
<?php
if(!is_null($oCt1->ctRmId)) {
$oRm->SearchByKey($oCt1->ctRmId);
$oRm->GetRecord();
}
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ห้อง</b></font></td>
<td><font size="2"><?php echo is_null($oCt1->ctRmId) ? 'สถานที่ฝึกงาน' : $oRm->roomNo;?></font></td>
<td><select name="ctRmId" onChange="ChangeEp()">
<option value="">--เลือก--</option>
<option value="NULL" <?php echo is_null($oCt1->ctRmId) ? 'selected' : '';?>>สถานที่ฝึกงาน</option>
<?php
$oRm->RSRoom();
while($oRm->GetRecord()) {
?>
<option value="<?php echo $oRm->roomId;?>" <?php echo ($oRm->roomId==$oCt1->ctRmId) ? 'selected' : '';?>><?php echo $oRm->roomNo;?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
if(!is_null($oCt1->ctEpMepId) && !is_null($oCt1->ctEpSepId)) {
$oMep->SearchByKey($oCt1->ctEpMepId);
$oMep->GetRecord();
$oSep->SearchByKey($oCt1->ctEpSepId);
$oSep->GetRecord();
}
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>สถานที่ฝึกงาน</b></font></td>
<td><font size="2"><?php echo is_null($oCt1->ctEpMepId) ? '-' : $oMep->mepName.' : '.$oSep->sepName;?></font></td>
<td><input type="text" name="mepName" value="<?php echo is_null($oCt1->ctEpMepId) ? '' : $oMep->mepName;?>" size="18" class="input1" readonly>
:
<input type="text" name="sepName" value="<?php echo is_null($oCt1->ctEpSepId) ? '' : $oSep->sepName;?>" size="11" class="input1" readonly>
<img src="../picture/search.gif" width="15" height="19" border="0" align="absmiddle" id="search" style="CURSOR: hand; display: <?php echo is_null($oCt1->ctEpMepId) ? 'none' : '';?>;" onclick='OpenWindow("epTableCT.php",500,400)'>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
<input type="hidden" name="ctEpMepId" value="<?php echo is_null($oCt1->ctEpMepId) ? '' : $oCt1->ctEpMepId;?>" <?php echo is_null($oCt1->ctEpMepId) ? 'disabled' : '';?>>
<input type="hidden" name="ctEpSepId" value="<?php echo is_null($oCt1->ctEpSepId) ? '' : $oCt1->ctEpSepId;?>"></td>
</tr>
<?php
$oWd->SearchByKey($oCl->acadYear, $oCt1->ctWdAcYWeekNo);
$oWd->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>สัปดาห์ที่</b></font></td>
<td><font size="2"><?php echo $oCt1->ctWdAcYWeekNo.': '.abbreDate(splitDateDb2($oWd->wdFrDate)).' - '.abbreDate(splitDateDb2($oWd->wdToDate));?></font></td>
<td><select name="ctWdAcYWeekNo">
<?php
$oWd->RSrg_WeekDateByAcY($oCl->acadYear);
while($oWd->GetRecord()) {
?>
<option value="<?php echo $oWd->wdAcYWeekNo;?>" <?php echo ($oWd->wdAcYWeekNo==$oCt1->ctWdAcYWeekNo) ? 'selected' : '';?>><?php echo $oWd->wdAcYWeekNo.': '.abbreDate(splitDateDb2($oWd->wdFrDate)).' - '.abbreDate(splitDateDb2($oWd->wdToDate));?></option>
<?php
}
?>
</select></td>
</tr>
<?php
$oDy->SearchByKey($oCt1->ctDyId);
$oDy->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>วัน</b></font></td>
<td><font size="2"><?php echo $oDy->dayName;?></font></td>
<td><select name="ctDyId">
<option value="">--เลือก--</option>
<?php
$oDy->RSDay();
while($oDy->GetRecord()) {
?>
<option value="<?php echo $oDy->dayId;?>" <?php echo ($oDy->dayId==$oCt1->ctDyId) ? 'selected' : '';?>><?php echo $oDy->dayName;?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
$oPr->SearchByKey($oCt1->ctFrPr);
$oPr->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>จากคาบ</b></font></td>
<td><font size="2"><?php echo substr($oPr->startTime, 0, 5).'-'.substr($oPr->endTime, 0, 5);?></font></td>
<td><select name="ctFrPr">
<option value="">--เลือก--</option>
<?php
$oPr->RSPeriod();
while($oPr->GetRecord()) {
?>
<option value="<?php echo $oPr->period;?>" <?php echo ($oPr->period==$oCt1->ctFrPr) ? 'selected' : '';?>><?php echo substr($oPr->startTime, 0, 5).'-'.substr($oPr->endTime, 0, 5);?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
$oPr->SearchByKey($oCt1->ctToPr);
$oPr->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ถึงคาบ</b></font></td>
<td><font size="2"><?php echo substr($oPr->startTime, 0, 5).'-'.substr($oPr->endTime, 0, 5);?></font></td>
<td><select name="ctToPr">
<option value="">--เลือก--</option>
<?php
$oPr->RSPeriod();
while($oPr->GetRecord()) {
?>
<option value="<?php echo $oPr->period;?>" <?php echo ($oPr->period==$oCt1->ctToPr) ? 'selected' : '';?>><?php echo substr($oPr->startTime, 0, 5).'-'.substr($oPr->endTime, 0, 5);?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
$oOf->SearchByKey($oCt1->ctOfId);
$oOf->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ชื่ออาจารย์ผู้สอน</b></font></td>
<td><font size="2"><?php echo $oOf->officerName.' '.$oOf->officerSurname;?></font></td>
<td><select name="ctOfId">
<option value="">--เลือก--</option>
<?php
$oOf->RSOfficerOrderNmAndSn();
while($oOf->GetRecord()) {
?>
<option value="<?php echo $oOf->officerId;?>" <?php echo ($oOf->officerId==$oCt1->ctOfId) ? 'selected' : '';?>><?php echo $oOf->officerName.' '.$oOf->officerSurname;?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
$oSt->SearchByKey($oCt1->ctSstId);
$oSt->GetRecord();
?>
<tr>
<td bgcolor="#FEDCBA"><font size="2"><b>ประเภทการสอน</b></font></td>
<td><font size="2"><?php echo $oSt->sstName;?></font></td>
<td><select name="ctSstId">
<option value="">--เลือก--</option>
<?php
$oSt->RSrg_SysStudyType();
while($oSt->GetRecord()) {
?>
<option value="<?php echo $oSt->sstId;?>" <?php echo ($oSt->sstId==$oCt1->ctSstId) ? 'selected' : '';?>><?php echo $oSt->sstName;?></option>
<?php
}
?>
</select>
<font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
</tr>
<?php
$oCt2->RSrg_CopyTimeTableByAcYAndSeAndConfirmIsY($oCl->acadYear, $oCl->semester);
$oOf->SearchByOfficerCode($officerCode);
$oOf->GetRecord();
$ostPgId = (is_null($oCl->programId)) ? 0 : $oCl->programId;
$oOst->SearchByKeyAndWLIsY($oOf->officerId, $oCl->acadYear, $oCl->semester, $ostPgId);
?>
<tr align=center>
<td colspan="3"><input type="button" name="edit" value="แก้ไข" onClick="if(checkFormat()) ChangeMethodEdit(); else return false;" <?php echo (!$oCt2->GetRecord() && $oOst->GetRecord()) ? '' : 'disabled';?>>
<input type="button" name="cancel" value="ย้อนกลับ" onClick="location.href = 'showCopyTimeTable.php?programId=<?php echo $oCl->programId;?>&studentYear=<?php echo $oCl->studentYear;?>&acadYear=<?php echo $oCl->acadYear;?>&semester=<?php echo $oCl->semester;?>&coId=<?php echo $oCl->courseId;?>&ctClId=<?php echo $oCt1->ctClId;?>&ctRmId=<?php echo $oCt1->ctRmId;?>&ctEpMepId=<?php echo $oCt1->ctEpMepId;?>&ctEpSepId=<?php echo $oCt1->ctEpSepId;?>&ctWdAcYWeekNo=<?php echo $oCt1->ctWdAcYWeekNo;?>&ctDyId[<?php echo $oCt1->ctDyId;?>]=<?php echo $oCt1->ctDyId;?>&ctFrPr=<?php echo $oCt1->ctFrPr;?>&ctToPr=<?php echo $oCt1->ctToPr;?>&ctOfId=<?php echo $oCt1->ctOfId;?>&ctSstId=<?php echo $oCt1->ctSstId;?>&view=<?php echo $view;?>&officerCode=<?php echo $officerCode;?>'">
<input type="hidden" name="method" value="edit"></td>
</tr>
</table>
<?php
if($method=="delete") {
for($i=0; $i<count($ctIdDel); $i++) {
$oCt2->SearchByKey($ctIdDel[$i]);
$oCt2->GetRecord();
$oCt2->Delete();
}
}
?>
<table width="100%" align="center">
<tr>
<td colspan="5" align="center"><br><br><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><b>ลบตารางสอน</b></font></td>
</tr>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
<td width="5%" height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>เลือก</b></font></td>
<td width="25%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>สัปดาห์ที่</b></font></td>
<td width="20%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>วัน เวลา</b></font></td>
<td width="30%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ห้อง/สถานที่ฝึกงาน</b></font></td>
<td width="20%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ชื่ออาจารย์ผู้สอน</b></font></td>
</tr>
<?php
$i = 0;
$oCt2->RSrg_CopyTimeTableByClIdOrderAcYWeekNoDyIdFrPr($oCl->classId);
while($oCt2->GetRecord()) {
$oWd->SearchByKey($oCl->acadYear, $oCt2->ctWdAcYWeekNo);
$oWd->GetRecord();
$oDy->SearchByKey($oCt2->ctDyId);
$oDy->GetRecord();
$oPr->SearchByKey($oCt2->ctFrPr);
$oPr->GetRecord();
$prStr = substr($oPr->startTime, 0, 5).'-';
$oPr->SearchByKey($oCt2->ctToPr);
$oPr->GetRecord();
$prStr .= substr($oPr->endTime, 0, 5);
$oSt->SearchByKey($oCt2->ctSstId);
$oSt->GetRecord();
$oRm->SearchByKey($oCt2->ctRmId);
$oRm->GetRecord();
$oMep->SearchByKey($oCt2->ctEpMepId);
$oMep->GetRecord();
$oSep->SearchByKey($oCt2->ctEpSepId);
$oSep->GetRecord();
$oOf->SearchByKey($oCt2->ctOfId);
$oOf->GetRecord();
if(($i%2) == 0)
echo "<tr>";
else
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>
<td align="center"><input type="checkbox" name="ctIdDel[]" value="<?php echo $oCt2->ctId;?>"></td>
<td><font size="2"><?php echo $oCt2->ctWdAcYWeekNo.' : '.abbreDate(splitDateDb2($oWd->wdFrDate)).' - '.abbreDate(splitDateDb2($oWd->wdToDate));?></font></td>
<td><font size="2"><?php echo $oDy->dayAbbrEng.' '.$prStr.' ('.$oSt->sstAbbrEng.')';?></font></td>
<td><font size="2"><?php echo is_null($oCt2->ctRmId) ? $oMep->mepName.' : '.$oSep->sepName : $oRm->roomNo;?></font></td>
<td><font size="2"><?php echo $oOf->officerName.' '.$oOf->officerSurname;?></font></td>
</tr>
<?php
$i++;
}
?>
<tr>
<td colspan="5"><input type="button" name="chkAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true)" <?php echo ($i==0) ? 'disabled' : '';?>>
<input type="button" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false)" <?php echo ($i==0) ? 'disabled' : '';?>></td>
</tr>
<?php
$oCt2->RSrg_CopyTimeTableByAcYAndSeAndConfirmIsY($oCl->acadYear, $oCl->semester);
$oOf->SearchByOfficerCode($officerCode);
$oOf->GetRecord();
$ostPgId = (is_null($oCl->programId)) ? 0 : $oCl->programId;
$oOst->SearchByKeyAndWLIsY($oOf->officerId, $oCl->acadYear, $oCl->semester, $ostPgId);
?>
<tr>
<td colspan="5" align="center"><input type="button" name="delete" value="บันทึก" onClick="ChangeMethodDelete()" <?php echo (!$oCt2->GetRecord() && $oOst->GetRecord() && $i>0) ? '' : 'disabled';?>>
<input type="button" name="cancelDel" value="ย้อนกลับ" onClick="location.href = 'showCopyTimeTable.php?programId=<?php echo $oCl->programId;?>&studentYear=<?php echo $oCl->studentYear;?>&acadYear=<?php echo $oCl->acadYear;?>&semester=<?php echo $oCl->semester;?>&coId=<?php echo $oCl->courseId;?>&ctClId=<?php echo $oCt1->ctClId;?>&ctRmId=<?php echo $oCt1->ctRmId;?>&ctEpMepId=<?php echo $oCt1->ctEpMepId;?>&ctEpSepId=<?php echo $oCt1->ctEpSepId;?>&ctWdAcYWeekNo=<?php echo $oCt1->ctWdAcYWeekNo;?>&ctDyId[<?php echo $oCt1->ctDyId;?>]=<?php echo $oCt1->ctDyId;?>&ctFrPr=<?php echo $oCt1->ctFrPr;?>&ctToPr=<?php echo $oCt1->ctToPr;?>&ctOfId=<?php echo $oCt1->ctOfId;?>&ctSstId=<?php echo $oCt1->ctSstId;?>&view=<?php echo $view;?>&officerCode=<?php echo $officerCode;?>'"></td>
</tr>
</table>
</form>
<?php
if($method=="edit") {
$oWd->SearchByKey($acadYear, $ctWdAcYWeekNo);
$oWd->GetRecord();
$oNsd->RSrg_NoStudyDateByDateAndFrPrAndToPr(futureDay($oWd->wdFrDate, $ctDyId-1), $ctFrPr, $ctToPr);
if(!$oNsd->GetRecord()) {
$oCt1->SearchByAllAndNotId($ctClId, $ctRmId, $ctEpMepId, $ctEpSepId, $ctWdAcYWeekNo, $ctDyId, $ctFrPr, $ctToPr, $ctOfId, $ctSstId, $ctId);
if(!$oCt1->GetRecord()) {
$oCt1->SearchByKey($ctId);
$oCt1->GetRecord();
$oCt1->Edit();
$oCt1->ctRmId = ($ctRmId=='NULL') ? 'NULL' : $ctRmId;
$oCt1->ctEpMepId = ($ctEpMepId=='') ? 'NULL' : $ctEpMepId;
$oCt1->ctEpSepId = ($ctEpSepId=='') ? 'NULL' : $ctEpSepId;
$oCt1->ctWdAcYWeekNo = $ctWdAcYWeekNo;
$oCt1->ctDyId = $ctDyId;
$oCt1->ctFrPr = $ctFrPr;
$oCt1->ctToPr = $ctToPr;
$oCt1->ctOfId = $ctOfId;
if(is_null($oCt1->ctLtId) || (!is_null($oCt1->ctLtId) && $oCt1->ctSstId!=$ctSstId))
$oCt1->ctLtId = 'NULL';
$oCt1->ctSstId = $ctSstId;
if(is_null($oCt1->ctTtId))
$oCt1->ctTtId = 'NULL';
$oCt1->ctUpdateUserId=$officerCode;
$oCt1->ctUpdateDateTime=date('Y-m-d H:i:s');
$oCt1->Save();
}
}
echo "<meta http-equiv=\"refresh\" content=\"0;url=showCopyTimeTable.php?programId=$programId&studentYear=$studentYear&acadYear=$acadYear&semester=$semester&coId=$coId&ctClId=$ctClId&ctRmId=$ctRmId&mepName=$mepName&sepName=$sepName&ctEpMepId=$ctEpMepId&ctEpSepId=$ctEpSepId&ctWdAcYWeekNo=$ctWdAcYWeekNo&numWeek=$numWeek&ctDyId[".$ctDyId."]=$ctDyId&ctFrPr=$ctFrPr&ctToPr=$ctToPr&ctOfId=$ctOfId&ctSstId=$ctSstId&view=$view&officerCode=$officerCode\">" ;
}
?>
|