!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.3 GB of 127.8 GB (40.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     resultRQHStd.php (31.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "../../class/clsDB.php";
include_once 
"../../class/clsConnection.php";
include_once 
"../global.php";
//showHeader();
include_once "../class/clsReg_Program.php";
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../link/function.php";
include_once 
"../class/clsStudentAssess.php";
include_once 
"../class/clsHoldStudent.php";
include_once 
"../class/clsHoldProgram.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsDoAssessmentHStd.php";
include_once 
"../class/clsResultRQHStd.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";
include_once 
"../class/clsCriterion.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']);

$oProg = new Program($oCR);

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

$oDA = new DefineAssessment($oCA);
$oDA->SearchByDefineid($defineid);
$oDA->GetRecord();
        
$numStdDoAss 0;
$oDoHStd = new DoAssessmentHStd($oCA);
//$oDoHStd->SearchByDefineid($defineid);
//while($oDoHStd->GetRecord()){
//    $numStdDoAss++;
//}
$numStdDoAss $oDoHStd->CountDoidByDefineid($defineid,$stdY);
$oAF = new AssessForm($oCA);
$oAF->RSAssessFormByAssid($assid);
$oAF->GetRecord();

$oHStd = new HoldStudent($oCA);
$oHPg = new HoldProgram($oCA);
$oHP1 = new HoldProgram($oCA);
$oHP2 = new HoldProgram($oCA);

//ค้นหาคำถามปลายเปิดในแบบประเมินนี้ sectionTQid = 1
$oSA = new SectionAll($oCA);
$CntSTQid $oSA->RSCountSectionTQid($assid);
//echo "sectionTQid = ".$CntSTQid;

$oRRQ = new ResultRQHStd($oCA);
?>
<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="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><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="resultTQHStd.php?defineid=<? echo $defineid ?>&acadYear=<? echo $oDA->acadYear ?>&semester=<? echo $oDA->semester ?>&assid=<? echo $oDA->assid ?>&stdY=<? echo $stdY?>"><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" height="179"> <table width="100%" border="0" align="center">
                        <tr>
                          <td height="10"></td>
                        </tr>
                      </table>
                      <table width="612" align="center"  cellpadding="1" cellspacing="1" bgcolor="<?php if($oDA->flag == 2){ echo "#FFDFDF"; }else if($oDA->flag == 3){ echo "#DAE6FC"; } ?>">
                        <tr> 
                          <td height="22" align="center"><font size="2"><span class = "fontMark5">รายงานทั่วไปของการประเมิน 
                            โดยจำแนกตามลักษณะคำถาม/ส่วน/หัวข้อการประเมิน</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="587" border="0" align="center">
                        <tr> 
                          <td><font size="2"><b><img src="../picture/bullet.gif"> 
                            ชื่อทางการแบบประเมิน </b></font></td>
                          <td colspan="2"><font size="2"><b>: </b><? if($oAF->maintopic == ""){ echo "-"; }else{ echo $oAF->maintopic; } ?>
                          </font></td>
                        </tr>
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                          <td><font size="2"><b><img src="../picture/bullet.gif"> 
                            ชื่อทั่วไปแบบประเมิน </b></font></td>
                          <td colspan="2"><font size="2"><b>: </b><? echo $oAF->nameAss ?></font></td>
                        </tr>
                        <tr> 
                          <td><font size="2"><b><img src="../picture/bullet.gif"> 
                            ปีการศึกษา</b></font></td>
                          <td colspan="2"><font size="2"><b> :</b></font><font size="2"><b> 
                            </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <?php echo $oSse->semesterName;?>/<?php echo $acadYear ?></font><font size="2">&nbsp;</font></td>
                        </tr>
                        <? if($oDA->flag == 2) { ?>
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                          <td width="159" height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ประเมินนักศึกษาชั้นปีที่ </b></font></td>
                          <td colspan="2"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <b>: </b> 
                        <?php
                            $x
=1;
                            
$numStdAll =0;
                            if(
$stdY=='%'){
                            
$oHStd->SearchByDefineid($defineid);
                            while(
$oHStd->GetRecord()){ 
                            
//    $oStd = new StudentAssess($oCA);
                            //    $numStdAll += $oStd->CountStdByAcYSePgIdStdY($acadYear, $semester, '%', $oHStd->stdYearAss);
                                
                                //$Tm1 = $oStd->CountStdBystdYearAss($oHStd->stdYearAss);
                                //$oStd = new StudentAssess($oCA);
                                //$Tm1 = $oStd->CountHstdRegis($oDA->acadYear, $oDA->semester, $oHStd->stdYearAss); //edit 08/2553
                                //$numStdAll = $Tm2+$Tm1;
                                //$Tm2 = $numStdAll;
                                
$stdYearAssTmp[$x] = $oHStd->stdYearAss;
                                
$x++;
                            }
                            }else{
                                
$stdYearAssTmp[$x] = $stdY;
                            }
                            
$round 0;                        
                            for(
$i=1;$i<=4;$i++){                            
                                if(
$stdYearAssTmp[$i] != ""){
                                    
$round ++;
                                }
                            }        
        
                            for(
$i=1;$i<=4;$i++){        
                                echo 
$stdYearAssTmp[$i];
                                if(
$i<=$round-1){
                                    echo 
",";
                                }
                            }
                            
$oStd = new StudentAssess($oCA);
                            
$numStdAll $oStd->CountHstdRegis($oDA->acadYear$oDA->semester$stdY);
                        
?>
                            </font></td>
                        </tr>
                        <? } else if($oDA->flag == 3){ ?>
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                          <td height="22" valign="baseline"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ประเภทหลักสูตรที่ประเมิน</b></font></td>
                          <td height="22" colspan="2" valign="baseline"><font size="2"><b>: 
                            </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <?php
                                
//หาจำนวนนักศึกษาที่มีสิทธิ์ประเมิน-หลักสุตร-ชั้นปี
                                
$oHPg->SearchByDefineid($defineid);
                                
$numStdAll 0;
                                while(
$oHPg->GetRecord()){ 
                                    
$oStd = new StudentAssess($oCA);
                                    
$numStdAll += $oStd->CountStdByAcYSePgIdStdY($acadYear$semester$oHPg->programId$oHPg->stdYearAss);
                                
/*    $oProg->SearchByKey($oHPg->programId);
                                    $oProg->GetRecord();
                                    //echo "<br> programId = ".$oHPg->programId."   stdYear = ".$oHPg->stdYearAss;
                                    $oStd = new StudentAssess($oCA);
                                    $Tm1 = $oStd->CountStdByProgramNameStdYearAss($oProg->programName,$oHPg->stdYearAss);
                                    //echo "   --> ".$Tm1;
                                    $numStdAll = $Tm2+$Tm1;
                                    $Tm2 = $numStdAll;
                                */
                                
}
                                
                                
//แสดงหลักสูตร-ชั้นปี ที่มีการกำหนดให้มีการประเมิน
                                
$x=1;
                                
$oHP1->SearchByDefineidGroupByProgramId($defineid);
                                while(
$oHP1->GetRecord()){ 
                                    
$oProg->SearchByKey($oHP1->programId);
                                    
$oProg->GetRecord();
                                    
$stdProgTmp[$x] = $oProg->programName;

                                    
$m=1;
                                    
$oHP2->SearchByProgramIdDefineid($oHP1->programId,$defineid);
                                    while(
$oHP2->GetRecord()){
                                        
$stdYearAssTmp[$x][$m] =  $oHP2->stdYearAss;
                                        
$m++;
                                    }
                                    
$indexStdYear[$x] = $m-1;    
                                    
$x++;
                                }  
// end while oHP1

                                
$round 0;                        
                                for(
$i=1;$i<=$x-1;$i++){                            
                                    if(
$stdProgTmp[$i] != ""){
                                        
$round ++;
                                    }
                                }        

                                for(
$i=1;$i<=$x-1;$i++){
                                    
$round_in 0;        
                                    echo 
$stdProgTmp[$i]." - ปี";
                                    for(
$j=1;$j<=$indexStdYear[$i];$j++){
                                        echo 
$stdYearAssTmp[$i][$j];
                                        if(
$stdYearAssTmp[$i][$j] != ""$round_in++;
                                        if(
$round_in $indexStdYear[$i]) echo ",";
                                    }
                                    if(
$i<=$round-1) echo "<br> &nbsp;";
                                }
                            
?>
                            </font></td>
                        </tr>
                        <? }  // end else?>
                        <tr> 
                          <td height="22"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ช่วงเวลาในการประเมิน </b></font></td>
                          <td width="178"><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>
                          <td width="236"><font size="2"><b><img src="../picture/bullet.gif"> 
                            จำนวนนักศึกษาที่มีสิทธิ์ประเมินผล : </b></font><font size="2"><? echo $numStdAll ?></font></td>
                        </tr>
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                          <td height="22" colspan="2"><font size="2"><b><img src="../picture/bullet.gif"> 
                            ร้อยละของนักศึกษาที่เข้าประเมิน : </b> 
                            <? $percentStdDo = ($numStdDoAss $numStdAll )*100;  printf ("%.2f",$percentStdDo);?>
                            </font></td>
                          <td><font size="2"><b><img src="../picture/bullet.gif"> 
                            จำนวนนักศึกษาที่เข้ามาประเมินผล : </b></font><font size="2"><? echo $numStdDoAss ?></font></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="35" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>ค่าเฉลี่ย</b></font></td>
                          <td width="30" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>ค่า S.D.</b></font></td>
                          <td width="50" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>แปลผล</b></font></td>
                          <td width="85" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>รายงานผล</b></font></td>
                          <td width="120" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>วิเคราะห์ผล</b></font></td>
                        </tr>
                        <?
                        
/*--------------------------------------------------------- คำนวนส่วนของคำถามข้อหลัก -------------------------------------------------------*/
                        
$index1 1$index2 1;
                        
$index_color1 1$index_color2 1;
                        
$CntSubQ 0;  $xbar 0;  $sd 0;
                        
$oRQ = new RadioQuestion($oCA);
                        
$oRQ->RSRadioQByKey($assid,$oSA->sectionRQid,1);
                        while(
$oRQ->GetRecord()){
                            
$oCntRQ = new RadioQuestion($oCA);
                            
$CntSubQ $oCntRQ->RSCountSubRQid($assid,$oRQ->RQid,'2');

                            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"].'">';
                                }
                            }

                            if(
$CntSubQ == 0){    
                                
//คิดค่าเฉลี่ยและค่า sd ของคำถามข้อหลัก 
                                
$oRRQ->SearchResultIXbarSDEachRQidByDefineidSectionRQid($defineid,$oSA->sectionRQid,$oRQ->RQid,$stdY);
                                if(
$oRRQ->GetRecord()){
                                    
$xbar $oRRQ->xbar;
                                    
$sd $oRRQ->sd;
                                }
                            }                                     
              
?>
                         <td height="22"> <b><? echo $index1."." ?><? echo $oRQ->nameRQ ?></b></td>
                              <td align="center">
                                  <? if($xbar != 0) echo number_format($xbar,2);?>
                                  <? if(($CntSubQ == 0)&&($numStdDoAss == 0)) echo "-"?>
                              </td>
                              
                          <td align="center"> 
                                  <? if($xbar != 0)  echo number_format($sd,2); ?>
                                  <? if(($CntSubQ == 0)&&($numStdDoAss == 0)) echo "-"?>
                          </td>
                             <?php
                                
// เงิ่อนไขการวิเคราะห์ค่าเฉลี่ย
                                
if(number_format($xbar,2)>=4.51){$convert4="<font color='green'><b>ดีมาก</b></font>";$masage4="<font color='green'><b>ส่งเสริมให้คงอยู่</b></font>";}
                                elseif(
number_format($xbar,2)>=3.51){$convert4="<font color='#228b22'><b>ดี</b></font>";$masage4="<font color='#228b22'><b>ส่งเสริม</b></font>";}
                                elseif(
number_format($xbar,2)>=2.51){$convert4="<font color='orange'><b>ปานกลาง</b></font>";$masage4="<font color='orange'><b>เฝ้าระวัง</b></font>";}
                                elseif(
number_format($xbar,2)>=1.51){$convert4="<font color='#ff4500'><b>น้อย</b></font>";$masage4="<font color='#ff4500'><b>เฝ้าระวังพิเศษ</b></font>";}
                                elseif(
number_format($xbar,2)>=0){$convert4="<font color='red'><b>น้อยที่สุด</b></font>";$masage4="<font color='red'><b>ปรับปรุงแก้ไข</b></font>";}
                               
//เงื่อนไขการวิเคราะห์ค่าส่วนเบี่ยงเบนมาตรฐาน
                                
if(number_format($sd,2)>=1.76){$analize1="<font color='red'>มีความเห็นแตกต่างกันมากมีความเชื่อมั่นน้อย</font>";}
                                if(
number_format($sd,2)>=1.25){$analize1="<font color='orange'>มีความเห็นแตกต่างกันค่อนข้างมากมีความเชื่อมั่นปานกลาง</font>";}
                                if(
number_format($sd,2)>0){$analize1="<font color='green'>มีความเห็นแตกต่างกันค่อนข้างน้อยมีความเชื่อมั่นมาก</font>";}
                                if(
number_format($sd,2)==0){$analize1="<font color='green'>มีความเห็นไม่แตกต่างกันมีความเชื่อมั่นที่สุด</font>";}
                                
//เงื่อนไขการแสดงข้อมูลหัวข้อใหญ่และหัวข้อย่อย
                                
if(number_format($xbar,2)==0){
                             
?>
                          <td align="center"></td>
                          <td align="center"></td>
                          <td align="center"></td>
                          <?
                          
}else{
                          
?>
                          <td align="center"><?=$convert4?></td>
                          <td align="center"><?=$masage4?></td>
                          <td align="center"><?=$analize1?></td>
                          <?
                          
}
                          
?>

                        </tr>
               <?   /*--------------------------------------------------------- คำนวนส่วนของคำถามข้อย่อย-------------------------------------------------------*/
                        
$xbarSub 0;  $sdSub 0;    $xbarSum=0$sdSum=0$nxbar=0$nsd=0$c=$sdSum/$nsd;
                        
$ocRQ = new RadioQuestion($oCA);
                        
$ocRQ->RSCheckLevel($assid,$oRQ->RQid);
                        while(
$ocRQ->GetRecord()){

                            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"].'">';
                                }
                            }

                            
//คิดค่าเฉลี่ยและค่า sd ขอคำถามข้อย่อย
                            
$oRRQ->SearchResultIXbarSDEachRQidByDefineidSectionRQid($defineid,$oSA->sectionRQid,$ocRQ->RQid,$stdY);
                            if(
$oRRQ->GetRecord()){
                                
$xbarSub $oRRQ->xbar;
                                
$sdSub $oRRQ->sd;

                            }                    
                     
?>
                        <td height="22"><? echo "<img src=\"../picture/blank1.gif\"border=\"0\">".$index1.".".$index2 ?>
                          <? echo $ocRQ->nameRQ ?></td>

                            <td align="center"> 
                                <? if($xbarSub != 0) echo number_format($xbarSub,2); ?>
                                <? if($numStdDoAss == '0') echo "-"?>
                            </td>
                           <td align="center"> 
                                <? if($xbarSub != 0) echo number_format($sdSub,2);?>
                                <? if($numStdDoAss == '0') echo "-"?>
                            </td>
                            <?php
                             
// เงิ่อนไขการวิเคราะห์ค่าเฉลี่ย
                                
if(number_format($xbarSub,2)>=4.51){$convert1="<font color='green'><b>ดีมาก</b></font>";$masage1="<font color='green'><b>ส่งเสริมให้คงอยู่</b></font>";}
                                elseif(
number_format($xbarSub,2)>=3.51){$convert1="<font color='#228b22'><b>ดี</b></font>";$masage1="<font color='#228b22'><b>ส่งเสริม</b></font>";}
                                elseif(
number_format($xbarSub,2)>=2.51){$convert1="<font color='orange'><b>ปานกลาง</b></font>";$masage1="<font color='orange'><b>เฝ้าระวัง</b></font>";}
                                elseif(
number_format($xbarSub,2)>=1.51){$convert1="<font color='#ff4500'><b>น้อย</b></font>";$masage1="<font color='#ff4500'><b>เฝ้าระวังพิเศษ</b></font>";}
                                elseif(
number_format($xbarSub,2)>=0){$convert1="<font color='red'><b>น้อยที่สุด</b></font>";$masage1="<font color='red'><b>ปรับปรุงแก้ไข</b></font>";}
                             
//เงื่อนไขการวิเคราะห์ค่าส่วนเบี่ยงเบนมาตรฐาน
                                
if(number_format($sdSub,2)>=1.76){$analize2="<font color='red'>มีความเห็นแตกต่างกันมากมีความเชื่อมั่นน้อย</font>";}
                                if(
number_format($sdSub,2)>=1.25){$analize2="<font color='orange'>มีความเห็นแตกต่างกันค่อนข้างมากมีความเชื่อมั่นปานกลาง</font>";}
                                if(
number_format($sdSub,2)>0){$analize2="<font color='green'>มีความเห็นแตกต่างกันค่อนข้างน้อยมีความเชื่อมั่นมาก</font>";}
                                if(
number_format($sdSub,2)==0){$analize2="<font color='green'>มีความเห็นไม่แตกต่างกันมีความเชื่อมั่นที่สุด</font>";}
                             
?>
                            <td align="center"><?=$convert1?></td>
                            <td align="center"><?=$masage1?></td>
                            <td align="center"><?=$analize2?></td>

                        </tr>

                        <?        
                           $index2
++;
                           
$index_color2++;
                           
$xbarSum+=$xbarSub;
                           
$sdSum+=$sdSub;
                           
$nxbar++;
                           
$nsd++;
                       } 
//end while ocRQ

                       // เพิ่มการรวมผลการประเมินรายด้าน  หากมีการส่งค่าว่างเข้ามา จะไม่แสดงผล
                       
if($nxbar!=""){
                      
?>

                       <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_1"];?>">
                        <td align="right"><b><font color="blue">รวม<? echo $oRQ->nameRQ ?></font></b></td>
                        <td align="center"><b><font color="blue"><? echo number_format(($xbarSum/$nxbar),2?></font></b></td>
                        <td align="center"><b><font color="blue"><? echo number_format(($sdSum/$nsd),2?></font></b></td>
                         <?php
                                
// เงิ่อนไขการวิเคราะห์ค่าเฉลี่ย
                                
if(number_format(($xbarSum/$nxbar),2)>=4.51){$convert2="<font color='green'><b>ดีมาก</b></font>";$masage2="<font color='green'><b>ส่งเสริมให้คงอยู่</b></font>";}
                                elseif(
number_format(($xbarSum/$nxbar),2)>=3.51){$convert2="<font color='#228b22'><b>ดี</b></font>";$masage2="<font color='#228b22'><b>ส่งเสริม</b></font>";}
                                elseif(
number_format(($xbarSum/$nxbar),2)>=2.51){$convert2="<font color='orange'><b>ปานกลาง</b></font>";$masage2="<font color='orange'><b>เฝ้าระวัง</b></font>";}
                                elseif(
number_format(($xbarSum/$nxbar),2)>=1.51){$convert2="<font color='#ff4500'><b>น้อย</b></font>";$masage2="<font color='#ff4500'><b>เฝ้าระวังพิเศษ</b></font>";}
                                elseif(
number_format(($xbarSum/$nxbar),2)>=0){$convert2="<font color='red'><b>น้อยที่สุด</b></font>";$masage2="<font color='red'><b>ปรับปรุงแก้ไข</b></font>";}
                                
//เงื่อนไขการวิเคราะห์ค่าส่วนเบี่ยงเบนมาตรฐาน
                                
if(number_format(($sdSum/$nsd),2)>=1.76){$analize3="<font color='red'>มีความเห็นแตกต่างกันมากมีความเชื่อมั่นน้อย</font>";}
                                if(
number_format(($sdSum/$nsd),2)>=1.25){$analize3="<font color='orange'>มีความเห็นแตกต่างกันค่อนข้างมากมีความเชื่อมั่นปานกลาง</font>";}
                                if(
number_format(($sdSum/$nsd),2)>0){$analize3="<font color='green'>มีความเห็นแตกต่างกันค่อนข้างน้อยมีความเชื่อมั่นมาก</font>";}
                                if(
number_format(($sdSum/$nsd),2)==0){$analize3="<font color='green'>มีความเห็นไม่แตกต่างกันมีความเชื่อมั่นที่สุด</font>";}
                             
?>
                         <td align="center"><?=$convert2?> </td>
                         <td align="center"><?=$masage2?> </td>
                         <td align="center"><?=$analize3?></td>
                       </tr>
                      <?
                      
}

                        
$index1++;
                        
$index2 1;
                        
$index_color1++;
                    } 
//end while oRQ

                        
$oRRQ->SearchResultIXbarSDByDefineidSectionRQid($defineid,$oSA->sectionRQid,$stdY);
                        if(
$oRRQ->GetRecord()){
                            
$xbarTotal $oRRQ->xbar;
                            
$sdTotal $oRRQ->sd;
                        }
                
?>

                    <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_1"];?>">
                      <td width=""  height="22" ><div align="right"><font size="2" color="red"><b>รวมทั้งหมด</b>&nbsp;</font></div></td>
                      <td width="59" align="center"><b><font color="red"><? echo number_format($oRRQ->xbar,2?></font></b></td>
                      <td width="59" align="center"><b><font color="red"><? echo number_format($oRRQ->sd,2); ?></font></b></td>
                       <?php
                                
if(number_format($oRRQ->xbar,2)>=4.51){$convert3="<font color='green'><b>ดีมาก</b></font>";$masage3="<font color='green'><b>ส่งเสริมให้คงอยู่</b></font>";}
                                elseif(
number_format($oRRQ->xbar,2)>=3.51){$convert3="<font color='#228b22'><b>ดี</b></font>";$masage3="<font color='#228b22'><b>ส่งเสริม</b></font>";}
                                elseif(
number_format($oRRQ->xbar,2)>=2.51){$convert3="<font color='orange'><b>ปานกลาง</b></font>";$masage3="<font color='orange'><b>เฝ้าระวัง</b></font>";}
                                elseif(
number_format($oRRQ->xbar,2)>=1.51){$convert3="<font color='#ff4500'><b>น้อย</b></font>";$masage3="<font color='#ff4500'><b>เฝ้าระวังพิเศษ</b></font>";}
                                elseif(
number_format($oRRQ->xbar,2)>=0){$convert3="<font color='red'><b>น้อยที่สุด</b></font>";$masage3="<font color='red'><b>ปรับปรุงแก้ไข</b></font>";}
                            
//เงื่อนไขการวิเคราะห์ค่าส่วนเบี่ยงเบนมาตรฐาน
                                
if(number_format($oRRQ->sd,2)>=1.76){$analize4="<font color='red'>มีความเห็นแตกต่างกันมากมีความเชื่อมั่นน้อย</font>";}
                                if(
number_format($oRRQ->sd,2)>=1.25){$analize4="<font color='orange'>มีความเห็นแตกต่างกันค่อนข้างมากมีความเชื่อมั่นปานกลาง</font>";}
                                if(
number_format($oRRQ->sd,2)>0){$analize4="<font color='green'>มีความเห็นแตกต่างกันค่อนข้างน้อยมีความเชื่อมั่นมาก</font>";}
                                if(
number_format($oRRQ->sd,2)==0){$analize4="<font color='green'>มีความเห็นไม่แตกต่างกันมีความเชื่อมั่นที่สุด</font>";}
                             
?>
                        <td align="center"><?=$convert3?> </td>
                        <td align="center"><?=$masage3?></td>
                        <td align="center"><?=$analize4?></td>
                    </tr>
                      </table>
                      <br>
                      <? 
                    
//end while oSRQ
                
// end if oSA
                
$indexSection++;
            } 
//end while oSA 
            
?>
    <?
            $oRRQ
->SearchResultIXbarSDByDefineidSectionRQid($defineid,'%',$stdY);
            
$oRRQ->GetRecord();

    
?>

                      
                      </td>
                  </tr>
                </table>
                </td>
            </tr>
          </table>

          </form>

        <? if($CntSTQid != 0) { ?>
      </div>
      <table width="655" 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><br>
    <? ?>
        </td>
    </tr>
</table>
</body>
<?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.0113 ]--