Viewing file: 2552-12-09-1.0.02-msgFormHCourseComplete.php (8.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once "../class/clsAssessForm.php";
include_once "../class/clsCourseAssess.php";
include_once "../class/clsOfficerAssess.php";
include_once "../class/clsDefineAssessment.php";
include_once "../class/clsClassInStructorAssess.php";
include_once "../class/clsMainExternalPlace.php";
include_once "../class/clsSubExternalPlace.php";
sendRequest();
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$oAF = new AssessForm($oCA);
$oAF->RSAssessFormByAssid($assid);
$oAF->GetRecord();
$oCourse = new CourseAssess($oCA);
$oCourse->SearchByKey($courseId);
$oCourse->GetRecord();
$oOFA = new OfficerAssess($oCA);
$oOFA->SearchByKey($officerId);
$oOFA->GetRecord();
$oDA = new DefineAssessment($oCA);
$oDA->SearchByDefineid($defineid);
$oDA->GetRecord();
$oCIS = new ClassInStructorAssess($oCA);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../../source/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript">
function backPageVal(){
document.MsgForm.submit();
}
</script><br>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="724">
<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"><a href="showFormByCourse.php?studentId=<? echo $studentId ?>&courseId=<? echo $courseId ?>&classId=<? echo $classId ?>&ttId=<? echo $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><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">
ทำแบบประเมิน </font> </legend>
<br>
<form name="MsgForm" method="post" action = "showFormByCourse.php">
<table border="0" align="center" width="648">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"><div align="center"><span class = "fontMark5"> <? echo $oAF->nameAss; ?>
</span></div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="164" rowspan="5"><div align="center"><img src="../picture/assess.jpg" align="absmiddle"></div></td>
<td width="2" height="22"> </td>
<td width="468" class="fontMark4"><img src="../picture/bullet.gif"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong>
รหัสวิชา : </strong></font><?php echo $oCourse->courseCode?>
(<?php echo $oCourse->courseCodeEng?>)</td>
</tr>
<tr>
<td><div align="left"></div></td>
<td class="fontMark4"><img src="../picture/bullet.gif">
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong>รายวิชา
: </strong></font><?php echo $oCourse->courseName?> (<?php echo $oCourse->courseNameEng?>)</td>
</tr>
<tr>
<td height="22" align="center" class="fontMark4"> </td>
<td height="22" class="fontMark4"><font size="2"><b><img src="../picture/bullet.gif"></b></font>
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong>กลุ่ม
: </strong></font><?php echo $section?></td>
</tr>
<tr>
<td height="22" align="center" class="fontMark4"></td>
<td height="22" class="fontMark4">
<? if($oDA->flag == 5 || $oDA->flag == 6){ ?>
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<? echo "<img src=\"../picture/users.gif\" border =\"0\"> <strong>ประเมินภาพรวมรายวิชาโดยมีอาจารย์ผู้สอน :</strong>"; ?> </font>
<? $t=0;
$oCIS->SearchByClassIdGroupOfficerId($classId);
while($oCIS->GetRecord()){
$oOFA->SearchByKey($oCIS->officerId);
$oOFA->GetRecord();
$tab = "\t";
$Teachers[$t] = "อ.".$oOFA->officerName." ".$oOFA->officerSurname;
$t++;
}
for($s=0;$s<$t;$s++){
echo $Teachers[$s];
if($s<$t-1){
echo ", ";
}
}
if($oDA->flag == 6)
$flag6_mustDo=$flag6_mustDo-1;
else
$flag5_mustDo=$flag5_mustDo-1;
}elseif($oDA->flag == 0 || $oDA->flag == 1 || $oDA->flag == 7 || $oDA->flag == 8){ ?>
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<? echo "<img src=\"../picture/user.gif\" border =\"0\" width=\"13\" height=\"13\"> <strong>ประเมินอาจารย์ผู้สอน :</strong>"; ?>
</font>
<? $oOFA->SearchByKey($officerId);
$oOFA->GetRecord();
echo " อ.".$oOFA->officerName." ".$oOFA->officerSurname;
if($oDA->flag == 0)
$flag0_mustDo = $flag0_mustDo-1;
elseif($oDA->flag == 1)
$flag1_mustDo = $flag1_mustDo-1;
elseif($oDA->flag == 7)
$flag7_mustDo = $flag7_mustDo-1;
else
$flag8_mustDo = $flag8_mustDo-1;
}elseif($oDA->flag == 9){ ?>
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<? echo "<img src=\"../picture/assEp.jpg\" border =\"0\" width=\"13\" height=\"13\"> <strong>ประเมินแหล่งฝึก :</strong>"; ?>
</font>
<?
$oMep = new MainExternalPlace($oCA);
$oMep->SearchById($mepId);
$oMep->GetRecord();
$oSep = new SubExternalPlace($oCA);
$oSep->SearchByKey($sepId);
$oSep->GetRecord();
echo $oSep->sepName.' '.$oMep->mepName;
$flag9_mustDo = $flag9_mustDo-1;
}
?>
</td>
</tr>
<tr>
<td colspan="3" align = "center"> </td>
</tr>
<tr>
<td colspan="3" align = "center"> </td>
</tr>
<tr>
<td colspan="3" align = "center"><b><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_7'];?>">!
บันทึกการประเมินเรียบร้อยแล้ว ! </font> </b></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input type="button" name="button" value="ตกลง" onClick="backPageVal();">
</div></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input type="hidden" name="studentId" value="<? echo $studentId ?>">
<input type="hidden" name="classId" value="<? echo $classId ?>">
<input type="hidden" name="courseId" value="<? echo $courseId ?>">
<input type="hidden" name="ttId" value="<? echo $ttId ?>">
<input type="hidden" name="flag6_mustDo" value="<?=$flag6_mustDo ?>">
<input type="hidden" name="flag7_mustDo" value="<?=$flag7_mustDo?>">
<input type="hidden" name="flag8_mustDo" value="<?=$flag8_mustDo ?>">
<input type="hidden" name="flag0_mustDo" value="<?=$flag0_mustDo?>">
<input type="hidden" name="flag1_mustDo" value="<?=$flag1_mustDo?>">
<input type="hidden" name="flag5_mustDo" value="<?=$flag5_mustDo ?>">
<input type="hidden" name="flag9_mustDo" value="<?=$flag9_mustDo ?>">
</div></td>
</tr>
<tr>
<td colspan="3"><div align="center"></div></td>
</tr>
</table>
</form>
<br>
</fieldset>
</td>
</tr>
</table>
<p><br>
</p>
</table>
<?php
showFooter();
?>
|