Viewing file: 2554-11-04-2.0.02-searchCourseTeach.php (11.74 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once "../class/clsReg_Program.php";
include_once "../class/clsReg_SysSemesterDes.php";
include_once "../link/function.php";
include_once "../class/clsStudentAssess.php";
include_once "../class/clsRegistration.php";
include_once "../class/clsClassAssess.php";
include_once "../class/clsClassOpenForAssess.php";
include_once "../class/clsCourseAssess.php";
include_once "../class/clsOfficerAssess.php";
include_once "../class/clsDefineAssessment.php";
include_once "../class/clsHoldCourse.php";
include_once "../class/clsDoAssessment.php";
include_once "../class/clsAssessForm.php";
include_once "../class/clsHoldStudent.php";
include_once "../class/clsTimeTableAssess.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']);
$oProg = new Program($oCR);
$oStd = new StudentAssess($oCA);
$oReg = new Registration($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oClsOpen = new ClassOpenForAssess($oCA);
$oDo = new DoAssessment($oCA);
$oAF = new AssessForm($oCA);
$oHStd = new HoldStudent($oCA);
$oTTA = new TimeTableAssess($oCA);
/*if(!$acadYear)
$acadYear = $GLOBALS["ACADYEAR"];
if(!$semester)
$semester = $GLOBALS["SEMESTER"];
*/
?>
<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="searchTeachCourse.php">ผลการประเมิน</a><img src="../picture/ico3.gif" align="absmiddle" border="0">รายวิชาที่ส่งเกรด</font></legend>
<?php
//$officerCode=$oU->userPsCode;
$officerCode=$oU->userPsCodeReg;
$oOFA->SearchByOfCode($officerCode);
$oOFA->GetRecord();
if(!isset($acadYearSearch)&&(!isset($semesterSearch))){
$acadYearSearch = $acadYear;
$semesterSearch = $semester;
}
$oSse = new SysSemesterDes($oCR);
$oSse->SearchByKey($semesterSearch);
$oSse->GetRecord();
?>
<div align="center">
<form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
<table width="674" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="672" height="2"></td>
</tr>
<tr>
<td height="19" align="center"> <table width="614" >
<tr>
<td width="380" height="22" valign="bottom"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href="showFormTeachCourseSumRe.php?officerId=<? echo $oOFA->officerId ?>&acad_=<? echo $acadYearSearch ?>&sem_=<? echo $semesterSearch ?>" onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;"><img src="../picture/select.gif" width="16" height="16" border="0">สรุปผลการประเมินจำแนกตามรายวิชาที่ส่งเกรด</a></font></td>
<td height="22" align="center" > </td>
</tr>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_6"];?>">
<td height="22" colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><b>รายชื่ออาจารย์ที่สอนในปีการศึกษา
: <? echo $acadYearSearch ?> /
<? $oSse->SearchByKey($semesterSearch);
$oSse->GetRecord();
echo $oSse->semesterName;?>
</b></font></td>
</tr>
<tr>
<td height="21" colspan="2" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> <b>รหัสประจำตัว
: </b><?php echo $oOFA->officerCode;?></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b> ผู้ส่งเกรด
: </b><?php echo $oOFA->prefixName.$oOFA->officerName.' '.$oOFA->officerSurname;?></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> </font></td>
</tr>
</table>
<table width="610" cellpadding="1" cellspacing="1" bgcolor="silver">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_3"];?>">
<td width="77" height="22" align="center"><strong><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2">ชื่อย่อหลักสูตร</font></strong></td>
<td width="71" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><strong>รหัสรายวิชา</strong></font></td>
<td width="281" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><strong>ชื่อรายวิชา</strong></font></td>
<td width="44" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><strong>ชั้นปี</strong></font></td>
<td width="78" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"> <strong>หน่วยกิต</strong></font></td>
<td width="38" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><strong>กลุ่ม</strong></font></td>
</tr>
<?php
$oClass = new ClassAssess($oCA);
$i=0;
$oClass->SearchByKey($classId);
while($oClass->GetRecord()){
$oCourse = new CourseAssess($oCA);
$oCourse->SearchByKey($oClass->courseId);
$oCourse->GetRecord();
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
else
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
<td height="22" align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">
<? if(($oClass->programId == 0) || ($oClass->programId == "")){
$z = 0;
$oClsOpen->SearchByClassId($oClass->classId);
while($oClsOpen->GetRecord()){
$oProg->SearchByKey($oClsOpen->programId);
$oProg->GetRecord();
if($oProg->programAbbr != ""){
$arrCls[$z] = $oProg->programAbbr;
}else{
$arrCls[$z] = "<img src = \"../picture/warn.png\" border = \"0\">";
}
$z++;
} // end while oClsOpen
for($a=0;$a<=$z;$a++){
echo $arrCls[$a];
if($a < $z-1) echo ",<br>";
}
}else{
$oProg->SearchByKey($oClass->programId);
if($oProg->GetRecord()){
if($oProg->programAbbr != ""){
echo $oProg->programAbbr;
}else{
echo "<img src = \"../picture/warn.png\" border = \"0\">";
}
}
//echo $oClassA->programId;
}
?>
</font></td>
<td height="22" align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oCourse->courseCode;?></font></td>
<td ><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oCourse->courseName;?></font> </td>
<td align="center"><? echo $oClass->studentYear ?></td>
<td align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oCourse->courseUnit;?></font></td>
<td align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oClass->section;?></font></td>
</tr>
<?php
$i++;
$flag=1;
} // end while oClass
if($flag == 0) {
?>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_5"];?>">
<td colspan="6" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">**
ไม่ปรากฏรายวิชาที่สอน **</font></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr><td>
<br>
<table width="376" height="87" align="center" cellpadding="1" cellspacing="1" bgcolor="silver">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_3"];?>">
<td width="88" height="28" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><strong>รหัสอาจารย์</strong></font></td>
<td width="279" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><b>ชื่อ-นามสกุล</b></font></td>
</tr>
<?php
$i=0;
$oTTA ->RSDistinctOfId($classId);
while($oTTA->GetRecord()){
$oOFA->SearchByKey($oTTA->ttOfId);
$oOFA->GetRecord();
$oCourse = new CourseAssess($oCA);
$oCourse->SearchByKey($oTTA->ttOfId);
$oCourse->GetRecord();
if(($i%2) == 0)
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
else
echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
<td height="22" align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><a href = "showFormTeachCourse.php?officerId=<? echo $oOFA->officerId?>&officerCode=<? echo $officerCode ?>&classId=<? echo $classId ?>&courseId=<? echo $oClass->courseId ?>&acadYear=<? echo $acadYear ?>&semester=<? echo $semesterSearch ?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;"><?php echo $oOFA->officerCode;?></a></font></td>
<td ><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><img src="../picture/user.gif" width="16" height="16" border="0"> <a href = "showFormTeachCourse.php?officerId=<? echo $oOFA->officerId?>&officerCode=<? echo $officerCode ?>&classId=<? echo $classId ?>&courseId=<? echo $oClass->courseId ?>&acadYear=<? echo $acadYear ?>&semester=<? echo $semesterSearch ?>" onclick="return sendRequest(this);" onmouseover="window.status=''; return true;"><?php echo $oOFA->prefixName.$oOFA->officerName." ".$oOFA->officerSurname;?></a></font> </td>
</tr>
<?php
$i++;
$flag=1;
} // end while oClass
if($flag == 0) {
?>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_5"];?>">
<td colspan="6" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">**
ไม่ปรากฏรายชื่ออาจารย์ที่สอน **</font></td>
</tr>
<?php
}
?>
</table>
</td></tr>
</table>
<br>
</form>
</div>
</fieldset><br>
<table width="742" border="0">
<tr>
<td width="72" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ
: </strong></font></td>
<td width="660"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">คลิกที่รหัสอาจารย์
หรือชื่อ-นามสกุลอาจารย์ที่สอนเพื่อดูผลการประเมิน</font></td>
</tr>
</table>
<table width="742" border="0">
<tr>
<td width="72" height="18"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"> </font></td>
<td width="660"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><u>ชื่อย่อหลักสูตรที่แสดงอยู่ในตาราง
หมายถึง </u></font></td>
</tr>
<? $oProg->SearchByProgramStatusY();
while($oProg->GetRecord()){
?>
<tr>
<td> </td>
<td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">
<? if($oProg->programAbbr != ""){
echo $oProg->programAbbr." = ".$oProg->programName;
}else{
echo "<img src = \"../picture/warn.png\" border = \"0\"> = ".$oProg->programName;
}
?>
<? //echo $oProg->programId." = ".$oProg->programName; ?>
</font></td>
</tr>
<? } ?>
</table></td>
</tr>
</table>
<form name="silent" id="silent" style="margin:0px; padding: 0px;" method="post"></form>
<?php
showFooter();
?>
|