<?php
include_once("../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"funct.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../class/clsDocReceiveSend.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsPerson.php";
include_once 
"../class/clsDepartment.php";
include_once 
"getPrefix.php";

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

$oDoc = new Documents($oC);
$oDoc1 = new Documents($oC);
$oRs = new DocReceiveSend($oC);
$oRs5 = new DocReceiveSend($oC);
$oDlp = new docLinePosition($oC);
$oDlc = new DocLineConfig($oC);
$oPS = new person($oC);
$oDP = new Department($oC);
$oDoc->SearchByKey($searchDoc); $oDoc->GetRecord(); 
?>
<html>
<head>
<title>ตรวจสอบเส้นทางการเกษียณหนังสือ</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"> &nbsp;<strong><img src="../picture/map.gif" alt=""  border="0" >&nbsp;ตรวจสอบเส้นทางการเกษียณหนังสือ </strong> 
</font></legend>

 </fieldset><table border="0" align="center" width="98%">
       <tr><td   align="left"><font  size="2">&nbsp;<strong>ที่หนังสือ 
            : </strong>&nbsp;<? if($oDoc->DocNo!=""){  echo $oDoc->DocNo;   } ?></font></td>
            
    </tr>
      <tr><td   align="left"><font  size="2">&nbsp;<strong>เรื่อง 
            : </strong>&nbsp;<?  if($oDoc->DocSubject!=""){ echo  $oDoc->DocSubject;  } ?></font></td></tr>
    <tr><td><hr color="#008bdc"></td></tr>
      </table>
     <?   
         $oRs
->SearchByDocIDDsID3($searchDoc);
        if(
$oRs->GetRecord()=="0"){
                    
//----------------------------------
                    
                    
$oDlc->SearchByKey($oDoc->DlcID);  
                    
$oDlc->GetRecord();    
                    
$oDlp->SearchByKey($oDlc->DlpID);  
                    
$oDlp->GetRecord();
                    
$oPS->SearchByKey($oDlc->personId); 
                    
$oPS->GetRecord();  
                    echo 
'<table width="95%" border="0" align=center>';
                    echo 
"<img src=\"../picture/reg.png\" alt=\"\"  border=\"0\" >"
                    echo 
"&nbsp;<strong>".$oDlp->DlpName."&nbsp;".$oDP->SearchDeptName($oDlc->deptId)."&nbsp;</strong>&nbsp;<font color=\"#000099\">".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName."</font><br><br>";
                    
showSignSendDoc($searchDoc);
                    echo 
'</table>';
                    
//-------------------------------------        
        
}
    
showsteplinedoc2($searchDoc,$tab);
     
?>
</body>
</html>