Viewing file: showSendDocToPs2.php (2.45 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<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="70%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_2"]; ?>" height=22 valign="top">
<td align="left" colspan="2"> ผู้รับหนังสือ</td>
</tr>
<tr>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_17"]; ?>" valign="top">
<div style="overflow: auto; height: 100%; width: 100%;">
<table bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_17"]; ?>" width="94%" border="0" cellpadding="0" cellspacing="0" align="center">
<? $oRs8->SearchByDrsFromDrsID($oRs->DrsID);
while($oRs8->GetRecord()){
?>
<tr valign="top">
<td height="22" valign="top">
<?
if($oRs8->personId==0){
$oDlc8->SearchByKey($oRs8->DlcID); $oDlc8->GetRecord();
$oDP->SearchByKey($oDlc8->deptId); $oDP->GetRecord();
$oPS->SearchByKey($oRs8->DrsReceivePersonId); $oPS->GetRecord();
if($oRs8->DrsReceivePersonId=="0"){
echo "- สารบรรณย่อย";
}else{
echo "- ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName;
}
echo " (".$oDP->deptName.")";
}else{
$oPS->SearchByKey($oRs8->personId); $oPS->GetRecord();
echo "- ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName;
if($oRs8->DrsMainPs=="Y"){ echo " <font color=\"#029b0a\">[ผู้รับผิดชอบหลัก]</font>"; $HaveDrsMainPS=1; }
if($oRs8->DrsSendToPs=="Y"){
echo " <font color=\"#FF0000\">[ส่งด่วน]</font>";
}
}
if($oRs8->DrsSendDocNew !="0000-00-00 00:00:00"){
echo "<br> <font color=\"#FF0000\">[ส่งเพิ่มเติม] ";
list($DocD,$DocT) = split(' ',$oRs8->DrsSendDocNew);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
echo "</font>";
}
?> </td>
</tr>
<? } ?></table>
</div>
</td>
</tr>
<? if($addsendps!=1){ ?>
<tr><td align="center"><br><input type="button" name="cancel" value="ส่งเพิ่มเติม" onClick="return SendDocNew('<? echo $flagshow; ?>','<? echo $monthe;?>','<? echo $searchYear; ?>','<? echo $DocID; ?>','<? echo $DrsID; ?>');" <? if($a!='Y'){ echo "disabled"; } ?>></td></tr>
<? } ?>
</table>
</body>
</html>
|