<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%"  height="100%" border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_2"]; ?>" height=22> 
    <td align="left" colspan="3">&nbsp;รายละเอียดการส่งหนังสือ</td>
  </tr>
  <?     $oRs7->SearchByKey($oRs->DrsFromDrsID); $oRs7->GetRecord(); 
              if(
$oRs7->DrsByPass!="Y"){ ?>
      <tr> 
    <td width="31%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>การบันทึก<br>
      &nbsp;&nbsp;ต่อเนื่อง</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="left"><?     echo nl2br($oRs->DrsSign); ?>
    </td>
    </tr>
  <tr> 
    <td width="31%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ผู้ลงนาม</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> 
      <? $oPS6->SearchByKey($oRs->DrsPsIDCreate); $oPS6->GetRecord();   ?>
      <? echo "&nbsp;".GetPrefix($oPS6->prefixId).$oPS6->fName."&nbsp;".$oPS6->lName."<br>"?> 
      <?     $oDlc6->SearchByKey($oRs->DrsDlcIDCreate); $oDlc6->GetRecord();             
                  
$oDlp2->SearchByKey($oDlc6->DlpID);  $oDlp2->GetRecord();
                    echo 
"&nbsp;(".$oDlp2->DlpName.")<br>"
                    list(
$DocD,$DocT) = split(' ',$oRs7->DrsSendDate);
                   echo 
abbreDate2($DocD,'/')."&nbsp;".a2th($DocT)."&nbsp;";             
        
?>
      <br> <br></td>
  </tr>
  <? ?>
  <tr height=22 > 
    <td width="31%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ลักษณะหนังสือ</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="left">&nbsp;&nbsp;&nbsp;&nbsp; 
      <select name="PtID">
        <option value="0">--เลือกลักษณะหนังสือ--</option>
        <? $oPt->RSProposeType();
                    while(
$oPt->GetRecord()){
              
?>
        <option value="<? echo $oPt->PtID?><?  if($PtID==""){   if($oRs->PtID==$oPt->PtID){  echo "selected"; }  }else{   if($PtID==$oPt->PtID){  echo "selected"; } }?>><? echo $oPt->PtName?></option>
        <? ?>
      </select> </td>
  </tr>
  <tr height=40> 
    <td width="31%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ผู้บันทึก/<br>
      &nbsp; ผู้ส่งหนังสือ</strong></td>
    <td width="1%"  align="center"><strong>:</strong></td>
    <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> 
      <? $oPS->SearchByKey($oDlc->personId); $oPS->GetRecord();   ?>
      <? echo "&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName."<br>"?> 
      <?     $oDlp->SearchByKey($oDlc->DlpID);  $oDlp->GetRecord();
                    echo 
"&nbsp;(".$oDlp->DlpName.")"?>
    </td>
  </tr>
  <tr> 
    <td colspan="3"><br> <fieldset>
      <legend>กำหนดระยะเวลาดำเนินการ</legend>
      <table width="100%">
        <tr> 
          <td width="31%">&nbsp; <input name="checkDocSpeedDate" type="checkbox" value="Y" <? if($checkDocSpeedDate==""){ if($oRs->DrsDocDueDate !="0000-00-00"){   echo "checked"; }  }else{   if($checkDocSpeedDate=="Y"){ echo "checked"; } }?>
            <strong>ภายในวันที่ </strong></td>
          <td width="69%"> 
            <?  if($DocSpeedLevelDueDate!=""){ ?>
                            <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo $DocSpeedLevelDueDate;?>');</script> 
            <? }else{  
                            if(
$oRs->DrsDocDueDate !="0000-00-00"){ ?>
                                <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsDocDueDate,"/");?>');</script> 
                    <?    }else{?>
                                <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                    <?      }
                   }
             
?>
          </td>
        </tr>
      </table>
      </fieldset></td>
  </tr>
</table>
</body>
</html>