Viewing file: showSendDocToPs2SR.php (3.4 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> <? extract ($_REQUEST); ?> <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) = preg_split('[ ]',$oRs8->DrsSendDocNew); echo abbreDate2($DocD,'/')." ".a2th($DocT); echo "</font>"; } ?> </td> </tr> <? } ?> <? $x=0; $oTsr->SearchBytsr_DrsIDandtsr_fr_node($oRs->DrsID,$GLOBALS["COLLEGEID"]); while($oTsr->GetRecord()){ $oCd->SearchByKey($oTsr->tsr_to_node); $oCd->GetRecord(); ?> <tr valign="top"> <td height="22" valign="top"> <? echo "- ".$oCd->collegeAbbr; if($oTsr->tsr_SendNew!="0000-00-00 00:00:00"){ list($DocD2,$DocT2) = preg_split('[ ]',$oTsr->tsr_SendNew); echo " [ส่งเพิ่มเติม ".abbreDate2($DocD2,'/')." ".a2th($DocT2)."]"; } ?> </td> </tr> <? $x++; } if($x!=0){ ?> <tr><td align="right"><a href="sendReceiveDoc.php"><img src="../picture/search_ico.gif" border="0">ติดตามหนังสือส่งอิเล็กทรอนิกส์</a></td></tr> <? } ?> <? if($addsendps!=1){ ?> <tr><td align="left"><br><input type="button" value="ส่งเพิ่มเติม" onClick="return SendDocNew2('<? echo $DocID; ?>','<? echo $DrsID; ?>','<? echo $x; ?>');" <? if($a!='Y'){ echo "disabled"; } ?>> (กรณีแนบแฟ้มหนังสือเพิ่มเติม ถึงหน่วยงานเดิม)<br><input type="button" name="cancel" value="ส่งเพิ่มเติม" onClick="return SendDocNew('<? echo $flagshow; ?>','<? echo $monthe;?>','<? echo $searchYear; ?>','<? echo $DocID; ?>','<? echo $DrsID; ?>','<? echo $x; ?>');" <? if($a!='Y'){ echo "disabled"; } ?>> (กรณีส่งถึงหน่วยงานอื่นๆ เพิ่มเติม)</td></tr> <? } ?> </table> </div> </td> </tr> </table> </body> </html>
|