Viewing file: showFormByCourse.php (27.94 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
showHeader();
include_once "../class/clsReg_Acad.php";
include_once "../class/clsReg_SysSemesterDes.php";
include_once "../link/function.php";
include_once "../class/clsCourseAssess.php";
include_once "../class/clsHoldCourse.php";
include_once "../class/clsRegistration.php";
include_once "../class/clsClassAssess.php";
include_once "../class/clsClassInStructorAssess.php";
include_once "../class/clsOfficerAssess.php";
include_once "../class/clsDefineAssessment.php";
include_once "../class/clsAssessForm.php";
include_once "../class/clsDoAssessment.php";
include_once "../class/clsSysStudyTypeAssess.php";
include_once "../class/clsReg_Day.php";
include_once "../class/clsReg_Period.php";
include_once "../class/clsTimeTableAssess.php";
include_once "../class/clsWeekDateAssess.php";
include_once "../class/clsMainExternalPlace.php";
include_once "../class/clsSubExternalPlace.php";
sendRequest();
$oCR = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_REG'], $GLOBALS['USER_REG'], $GLOBALS['PASSWORD_REG']);
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$oReg = new Registration($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oDA2 = new DefineAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oAF = new AssessForm($oCA);
$oDo = new DoAssessment($oCA);
$oSST = new SysStudyTypeAssess($oCA);
$orDy=new Day($oCR);
$orPr = new Period($oCR);
$oAc = new Acad($oCR);
$oTTA = new TimeTableAssess($oCA);
$oTTA2 = new TimeTableAssess($oCA);
$oWDA = new WeekDateAssess($oCA);
$oAc->RSAcad();
$oAc->GetRecord();
$oMep = new MainExternalPlace($oCA);
$oSep = new SubExternalPlace($oCA);
//$oAc->forceAssess = 'N';
$oClass = new ClassAssess($oCA);
$oClass->SearchByKey($classId);
$oClass->GetRecord();
$oCourse = new CourseAssess($oCA);
$oCourse->SearchByKey($courseId);
$oCourse->GetRecord();
$oReg->RSRegisByStdIdAndClassId($studentId, $classId);
$oReg->GetRecord();
$now = GetNowDate(); // y-m-d
$now2 = GetNowDateFw(); // d-m-y
$nowDate=GetNowDateTh(); // y-m-d
if(!$acadYear)
$acadYear = $GLOBALS["ACADYEAR_R"];
if(!$semester)
$semester = $GLOBALS["SEMESTER_R"];
$oSse = new SysSemesterDes($oCR);
$oSse->SearchByKey($semester);
$oSse->GetRecord();
?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="startPageAss.php">เริ่มการประเมิน </a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">ประเมินรายวิชาที่ลงทะเบียนเรียน</font></legend>
</legend>
<div align="center">
<form name="pc" method="post" action="<?php echo $PHP_SELF;?>"><br>
<table width="668" align="center" border="0">
<tr>
<td width="662" height="60">
<table width="664" border="0" align="center">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>">
<td width="96" height="24"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><img src="../picture/bullet1.gif" border ="0"> รหัสรายวิชา</b></font></td>
<td colspan="3"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>
<?php echo $oCourse->courseCode?> (<?php echo $oCourse->courseCodeEng?>)</font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>
</b></font></td>
</tr>
<tr>
<td height="20"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><img src="../picture/bullet1.gif" border ="0"> ชื่อรายวิชา
</b></font></td>
<td colspan="3"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b></font> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<?php echo $oCourse->courseName?></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
(<?php echo $oCourse->courseNameEng?>)</font></td>
</tr>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>">
<td height="20"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><img src="../picture/bullet1.gif" border ="0"> หน่วยกิต
</b></font></td>
<td width="126"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:
</b> <?php echo $oCourse->courseUnit;?></font></td>
<td width="45"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><img src="../picture/bullet1.gif" border ="0"> กลุ่ม</b></font></td>
<td width="379"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b> <?php echo $oClass->section?></font></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td><br>
<table width="671" height="28" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" align="center">
<tr >
<td width="5%"> </td>
<td width="55%"> </td>
<td width="40%"> </td>
</tr>
<?php
if ($flag5_mustDo>0 || $flag6_mustDo>0){ ?>
<tr>
<td height="20" colspan="2"><font size="2"> <img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินภาพรวมรายวิชา </b></font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<?php
// case 5
$oDA->RSByFlagAndBetweenSCDate(5,$nowDate);
while($oDA->GetRecord()){
//---------- ข้ามเทอม
if($oDA->acadYear==$oClass->acadYear && $oDA->semester==$oClass->semester ){
//-------------------
$oDA2->SearchByDefineid($oDA->defineid);
$oDA2->GetRecord();
$oAF->SearchByKey($oDA2->assid);
$oAF->GetRecord();
$chAssHold = $oDo->CountCheckAssessment3($oDA2->defineid,$studentId,$classId,$oClass->section);
//if($chAssHold ==0){
if(true){
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="2"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?></td>
<?php if($chAssHold ==0){ ?>
<td align="left" colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA2->defineid ?>&assid=<? echo $oDA2->assid ?>&studentId=<? echo $studentId ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>§ion=<? echo $oClass->section ?>&officerId=<?=$Class->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a></td>
<?php }else{ ?>
<td align="left" colspan="1" ><img src="../picture/apply.gif" border ="0" height="13" width="13" /> ประเมินแล้ว </td>
<?php } ?>
<? } ?>
</tr>
<?php
}// ข้ามเทอม
}// loop oDA
// case 6
// $oDA->RSByFlagAndBetweenSCDate(6,$nowDate);
$oDA->RSDefineidByFlagBetweenSCDateClId(6,$nowDate,$oReg->classId);
$run=0;
while($oDA->GetRecord()){
$oDA2->SearchByDefineid($oDA->defineid);
$oDA2->GetRecord();
$oAF->SearchByKey($oDA2->assid);
$oAF->GetRecord();
$chAssHold = $oDo->CountCheckAssessment3($oDA2->defineid,$studentId,$classId,$oClass->section);
// if($chAssHold ==0){
$run++;
if(true){
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="2"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?>*</td>
<?php
if(strcmp($chAssHold,'0')==0){ ?>
<td align="left" colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA2->defineid ?>&assid=<? echo $oDA2->assid ?>&studentId=<? echo $studentId ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>§ion=<? echo $oClass->section ?>&officerId=<?=$Class->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a></td>
<?php }else{ ?>
<td align="left" colspan="1" ><img src="../picture/apply.gif" border ="0" height="13" width="13" /> ประเมินแล้ว </td>
<?php } ?>
<? } ?>
</tr>
<?
}// loop oDA
}// if flag6_mustDo
if($flag8_mustDo!=0 || $flag0_mustDo!=0 || $flag1_mustDo!=0 ){ ?>
<tr>
<td colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="20" colspan="2"><font size="2" > <img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินรายอาจารย์ผู้สอน</b></font></td>
<td colspan="1" bgcolor="#FFFFFF"></td>
</tr>
<?php
// case 0
$oDA->RSByFlagAndBetweenSCDate(0, $nowDate);
while($oDA->GetRecord()){
$i =1;
$oCIS->SearchByClassIdGroupClassIdOfficerId($classId);
while($oCIS->GetRecord()) {
//---------- ข้ามเทอม
if($oDA->acadYear==$oClass->acadYear && $oDA->semester==$oClass->semester ){
//-------------------
$oOFA->SearchByKey($oCIS->officerId);
$oOFA->GetRecord();
$chAssHold = $oDo->CountCheckAssessment($oDA->defineid,$studentId,$oCIS->officerId,$classId,$oClass->section);
//if($chAssHold == 0) {
if(true) {
if($i==1){
$oAF->SearchByKey($oDA->assid);
$oAF->GetRecord();
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="3"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss;?></td>
</tr>
<?php
}
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_7"].'">';
else
echo '<tr bgcolor="#FFFFFF">';
?>
<td colspan="1" ></td>
<td align="left" colspan="1"><?=" อ.".$oOFA->officerName." ".$oOFA->officerSurname;?> </td>
<?php if($chAssHold == 0) { ?>
<td colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA->defineid ?>&assid=<?=$oDA->assid ?>&studentId=<?= $studentId ?>&classId=<?=$classId ?>&courseId=<?=$courseId ?>§ion=<?=$oClass->section ?>&officerId=<?=$oOFA->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a> </td>
<?php }else{ ?>
<td colspan="1" ><img src="../picture/apply.gif" border ="0" height="13" width="13" /> ประเมินแล้ว</td>
<?php } ?>
</tr>
<?php
$i++;
}// end if show
}// ข้ามปี
}// loop CIS
echo '<tr><td colspan="6"> </td></tr>';
}// loop oDA
// case 1
$oDA->RSDefineidByFlagBetweenSCDateClId(1,$nowDate,$oReg->classId);
while($oDA->GetRecord()){
$i =1;
$oCIS->SearchByClassIdGroupClassIdOfficerId($classId);
while($oCIS->GetRecord()) {
$oOFA->SearchByKey($oCIS->officerId);
$oOFA->GetRecord();
$chAssHold = $oDo->CountCheckAssessment($oDA->defineid,$studentId,$oCIS->officerId,$classId,$oClass->section);
//if($chAssHold == 0) {
if(true) {
if($i==1){
$oDA2->SearchByDefineid($oDA->defineid);
$oDA2->GetRecord();
$oAF->SearchByKey($oDA2->assid);
$oAF->GetRecord();
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="3"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?>*</td>
</tr>
<?php
}
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_7"].'">';
else
echo '<tr bgcolor="#FFFFFF">';
?>
<td colspan="1" width="5%"></td>
<td align="left" colspan="1"><?=" อ.".$oOFA->officerName." ".$oOFA->officerSurname;?> </td>
<?php if($chAssHold == 0) { ?>
<td colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA->defineid ?>&assid=<?=$oDA2->assid ?>&studentId=<?= $studentId ?>&classId=<?=$classId ?>&courseId=<?=$courseId ?>§ion=<?=$oClass->section ?>&officerId=<?=$oOFA->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a> </td>
<?php }else{ ?>
<td colspan="1" ><img src="../picture/apply.gif" border ="0" height="13" width="13" /> ประเมินแล้ว</td>
<?php } ?>
</tr>
<?php
$i++;
}// end if show
}// loop CIS
echo '<tr><td colspan="6"> </td></tr>';
}// loop oDA
// case 8
$oDA->RSAssidByFlagBetweenSCDateClId(8,$nowDate,$classId);
while($oDA->GetRecord()){
$i =1;
$oHC->RSAssessFlag8ByAssidSCDateClId($oDA->assid,$nowDate,$classId);
while($oHC->GetRecord()){
$oDA2->SearchByDefineid($oHC->defineid);
$oDA2->GetRecord();
$oOFA->SearchByKey($oHC->officerId);
$oOFA->GetRecord();
$show=1;
$showWDA=1;
$chAssHold = $oDo->CountCheckAssessment($oHC->defineid,$studentId,$oHC->officerId,$classId,$oClass->section);
if($chAssHold != 0){
$show=0;
}elseif($oDA2->isPreAssess==0 && $acadYear <= $oDA2->acadYear){
$oTTA->SearchMaxWeekByClIdOfId($classId,$oHC->officerId);
$oTTA->GetRecord();
$oTTA2->SearchByClassIdWeekNoOrderMaxDyId($classId,$oTTA->ttWdAcYWeekNo);
$oTTA2->GetRecord();
$today=getWeekDay($now2);
$curTime = date("H:i:s");
$orPr->SearchBetweenTime($curTime);
$orPr->GetRecord();
$oWDA->searchWeekByScDate($now);
if( $oWDA->GetRecord()){
if(($oWDA->wdAcYWeekNo < $oTTA->ttWdAcYWeekNo ) || ($oWDA->wdAcYWeekNo==$oTTA->ttWdAcYWeekNo && $today <= $oTTA2->ttDyId && $orPr->period <= $oTTA2->ttToPr) )
$showWDA=0;
}
}
if(true){
//if($show){
if($i==1){
$oAF->SearchByKey($oDA->assid);
$oAF->GetRecord();
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="3"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?>*</td>
</tr>
<?php
}
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_7"].'">';
else
echo '<tr bgcolor="#FFFFFF">';
list($yy, $mm, $dd) = split('[-]',$oDA2->startDate);
$start=convertDayNumberToString($dd)." ".convertMonthNumberToString2($mm)." ".substr($yy,2,2);
list($yy, $mm, $dd) = split('[-]',$oDA2->endDate);
$end=convertDayNumberToString($dd)." ".convertMonthNumberToString2($mm)." ".substr($yy,2,2);
?>
<td colspan="1" width="5%"></td>
<td align="left" colspan="1"><?='['.$start.' - '.$end.']'?>
<? if($oDA2->isPreAssess==1) {?>
<img src="../picture/book1.gif" width="18" height="22" border="0" />
<? } else{?>
<img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
<? }?>
<?=" อ.".$oOFA->officerName." ".$oOFA->officerSurname;?> </td>
<?php if($show){ ?>
<?php //if($showWDA){ ?>
<td colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA2->defineid ?>&assid=<?=$oDA2->assid ?>&studentId=<?= $studentId ?>&classId=<?=$classId ?>&courseId=<?=$courseId ?>§ion=<?=$oClass->section ?>&officerId=<?=$oOFA->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;"> เข้าประเมิน</a> </td>
<?php //}else{ ?>
<?php //} ?>
<?php }else{ ?>
<td colspan="1" ><img src="../picture/apply.gif" border ="0" height="13" width="13" /> ประเมินแล้ว</td>
<?php } ?>
</tr>
<?php
$i++;
}// end if show
}// loop oHC
echo '<tr><td colspan="6"> </td></tr>';
}// loop oDA
}// if mustDo8
if($flag7_mustDo!=0){ ?>
<tr>
<td height="20" colspan="3"><font size="2" > <img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินรายสัปดาห์</b></font></td>
</tr>
<?php
$oDA->RSAssidByFlagBetweenSCDateClId(7,$nowDate,$classId);
while($oDA->GetRecord()){
$oHC->RSAssessFlag7ByAssid($oDA->assid,$nowDate,$classId);
$i =1;
while($oHC->GetRecord()){
$oDA2->SearchByDefineid($oHC->defineid);
$oDA2->GetRecord();
$oTTA->SearchTimeTableByttId($oHC->ttId);
$oTTA->GetRecord();
$oOFA->SearchByKey($oTTA->ttOfId);
$oOFA->GetRecord();
$chAssHold = $oDo->CountCheckAssessment2($oDA2->defineid,$studentId,$oTTA->ttOfId,$oTTA->ttId,$oClass->section);
$oMep->SearchById($oTTA->ttEpMepId);
$oMep->GetRecord();
$oSep->SearchByKey($oTTA->ttEpSepId);
$oSep->GetRecord();
$show=1;
$today=getWeekDay($now2);
$oWDA->searchWeekByScDate($now);
$oWDA->GetRecord();
if($chAssHold != 0){
$show=0;
}elseif($oDA2->isPreAssess==0 && $acadYear <= $oDA2->acadYear){
$curTime = date("H:i:s");
$orPr->SearchBetweenTime($curTime);
$orPr->GetRecord();
if(($oWDA->wdAcYWeekNo < $oTTA->ttWdAcYWeekNo ) || ($oWDA->wdAcYWeekNo==$oTTA->ttWdAcYWeekNo && $today <= $oTTA->ttDyId && $orPr->period <= $oTTA->ttToPr) )
$show=0;
}
if($show){
if($i==1){
$oAF->SearchByKey($oDA->assid);
$oAF->GetRecord();
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="3"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?></td>
</tr>
<?php
}
$oSST->SearchByKey($oTTA->ttSstId);
$oSST->GetRecord();
$orDy->SearchByKey($oTTA->ttDyId);
$orDy->GetRecord();
$orPr->SearchByKey($oTTA>ttFrPr);
$orPr->GetRecord();
$orPr->SearchByKey($oTTA->ttToPr);
$orPr->GetRecord();
$ClassTime= $orDy->dayAbbrEng.' '.substr($orPr->startTime,0,5).'-'.substr($orPr->endTime,0,5);
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_7"].'">';
else
echo '<tr bgcolor="#FFFFFF">';
list($yy, $mm, $dd) = split('[-]',$oDA2->startDate);
$start=convertDayNumberToString($dd);
list($yy, $mm, $dd) = split('[-]',$oDA2->endDate);
$end=convertDayNumberToString($dd)." ".convertMonthNumberToString2($mm)." ".substr($yy,2,2);
?>
<td colspan="1" width="5%"></td>
<td align="left" colspan="1"><?='['.$start.' - '.$end.']'?>
<? if($oDA2->flag==7){
if($oDA2->isPreAssess==1) {?>
<img src="../picture/book1.gif" width="18" height="22" border="0" />
<? } else{?>
<img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
<? } }?>
<?=" สัปดาห์ที่ ".$oTTA->ttWdAcYWeekNo;?>
<? //=" ".$oTTA->ttMainPlace. ' - '.$oTTA->ttSubPlace;?>
<?=" ห้อง ".$oSep->sepName;?>
<br />
<?=" อ.".$oOFA->officerName." ".$oOFA->officerSurname;?>
<?=" ".$ClassTime;?>
<?=' เนื้อหา ('.$oSST->sstAbbrEng.') '.$oTTA->ttTitle;?> </td>
<td width="15%" colspan="1"><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA2->defineid ?>&assid=<? echo $oDA2->assid ?>&studentId=<? echo $studentId ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>§ion=<? echo $oClass->section ?>&officerId=<?=$oOFA->officerId?>&ttId=<?=$oTTA->ttId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a> </td>
</tr>
<?php
$i++;
}// end if show
}// loop oHC
echo '<tr><td colspan="6"> </td></tr>';
}// loop oDA
}// if mustDo
?>
<? //case 9
if ($flag9_mustDo>0 ){
?>
<tr>
<td height="20" colspan="2"><font size="2"> <img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินแหล่งฝึก</b></font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<?
$oDA->RSDefineidHPByFlagBetweenSCDateClId(9,$nowDate,$oReg->classId);
while($oDA->GetRecord()){
//-------- ข้ามเทอม
$oDA2->SearchByDefineid($oDA->defineid);
$oDA2->GetRecord();
if($oDA2->acadYear==$oClass->acadYear && $oDA2->semester==$oClass->semester ){
$oAF->SearchByKey($oDA2->assid);
$oAF->GetRecord();
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="2"><img src="../picture/blank1.gif" border="0" /><img src="../picture/linesub.gif" border="0" /><img src="../picture/ball_yellow.gif" border ="0" height="13" width="13" /> <? echo ' '.$oAF->nameAss ?>*</td>
</tr>
<?php
// หาแหล่งฝึก
$oTTA->RSMepSepByClassId($classId);
while($oTTA->GetRecord()){
$oMep->SearchById($oTTA->ttEpMepId);
$oMep->GetRecord();
$oSep->SearchByKey($oTTA->ttEpSepId);
$oSep->GetRecord();
$chAssHold = $oDo->CountCheckAssessmentHP($oDA2->defineid,$studentId,$classId,$oClass->section,$oMep->mepId,$oSep->sepId);
if($chAssHold ==0){
?>
<tr bgcolor="#FFFFFF" >
<td height="22" align="left" valign="top" colspan="2">
<img src="../picture/blank1.gif" border="0" />
<img src="../picture/linesub.gif" border="0" />
<img src="../picture/assEp.jpg" border="0"height="18" width="22" ><? echo ' '.$oSep->sepName.' '.$oMep->mepName;?>
</td>
<td align="left" colspan="1" ><img src="../picture/arrow.gif" border ="0" height="13" width="13" /><a href = "assessFormHCourse.php?defineid=<? echo $oDA2->defineid ?>&assid=<? echo $oDA2->assid ?>&studentId=<? echo $studentId ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>§ion=<? echo $oClass->section ?>&officerId=<?=$Class->officerId?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>&flag9_mustDo=<?=$flag9_mustDo;?>&mepId=<?=$oMep->mepId;?>&sepId=<?=$oSep->sepId;?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;">เข้าประเมิน</a>
</td>
</tr>
<? }// end if
}//end loop oTTA
}// ข้ามเทอม
}// loop oDA
}// if flag6_mustDo
// END case 9
?>
</table>
<br>
<table width="100%" border="0" align="center">
<tr><td> </td></tr>
<tr><td height="26"><input type="button" name="back2" value="กลับสู่หน้าหลัก" onClick=" location.href = 'startPageAss.php'"></td></tr>
</table></td>
</tr>
</table>
<br>
</form></div></label>
</fieldset><br>
<table width="89%" border="0">
<tr>
<td width="11%" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ
: </strong></font></td>
<td width="178%" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">คลิกที่แบบประเมินหรือคลิกที่สถานะของการประเมิน
เพื่อทำการประเมินรายวิชาโดยแยกตามอาจารย์ผู้สอน</font></td>
</tr>
<tr>
<td height="27"> </td>
<td colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">*
หมายถึง แบบประเมินเฉพาะรายวิชา</font></td>
</tr>
<tr>
<td height="27"> </td>
<td colspan="2"><img src="../picture/book1.gif" width="18" height="22" border="0">
<font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">หมายถึง แบบประเมินก่อนเรียน</font>
</td>
</tr>
<tr>
<td height="27"> </td>
<td colspan="2"><img src="../picture/open_book1.jpg" width="22" height="18" border="0">
<font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">หมายถึง แบบประเมินหลังเรียน</font></td>
</tr>
</table></td>
</tr>
</table>
<form name="silent" id="silent" style="margin:0px; padding: 0px;" method="post"></form>
<?php
showFooter();
?>
|