Viewing file: printRepSearchDoc.php (22.23 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 "../class/clsDocLinePosition.php"; include_once "../class/clsDocLineConfig.php"; include_once "../class/clsReceiveSendType.php"; include_once "../class/clsDocType.php"; include_once "../link/functionshow.php"; include_once "../class/clsDocattatchesTmp.php"; include_once "../class/clsDocuments.php"; include_once "../class/clsDocSpeedLevel.php"; include_once "../class/clsDocSecreLevel.php"; include_once "../class/clsDocReceiveSend.php"; include_once "funct.php"; include_once "../link/keyThai.php"; include_once "../class/clsNoticeEditDoc.php"; include_once "../class/clsDocattatches.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $time_startpage = microtime_float(); $oDP = new Department($oC); $oDPRe = new Department($oC); $oDP2 = new Department($oC); $oDP3 = new Department($oC); $oDP4 = new Department($oC); $oDP5 = new Department($oC); $oPS = new person($oC); $oDlc = new DocLineConfig($oC); $oDlc2 = new DocLineConfig($oC); $oDlcR = new DocLineConfig($oC); $oDlcS = new DocLineConfig($oC); $oDlcRe = new DocLineConfig($oC); $oDlcSe3 = new DocLineConfig($oC); $oDlcSe4 = new DocLineConfig($oC); $oDlc3 = new DocLineConfig($oC); $oDlc4 = new DocLineConfig($oC); $oDlc5 = new DocLineConfig($oC); $oDlp = new docLinePosition($oC); $oDlpS = new docLinePosition($oC); $oDlpSe = new docLinePosition($oC); $oDlpR = new docLinePosition($oC); $oDlpRe = new docLinePosition($oC); $oDlp2 = new docLinePosition($oC); $oDlp3 = new docLinePosition($oC); $oRSt = new receiveSendType($oC); $oDt = new doctype($oC); $oDtmp = new DocattatchesTmp($oC); $oDocR = new Documents($oC); $oDocRe = new Documents($oC); $oDocS = new Documents($oC); $oDocSe = new Documents($oC); $oDocSe2 = new Documents($oC); $oDocS2 = new Documents($oC); $oDoc2 = new Documents($oC); $oDoc3 = new Documents($oC); $oDoc4 = new Documents($oC); $oDocR2 = new Documents($oC); $oDoc7 = new Documents($oC); $oDsl = new DocSpeedLevel($oC); $oDcl = new DocSecretLevel($oC); $oDsl2 = new DocSpeedLevel($oC); $oDcl2 = new DocSecretLevel($oC); $oRs = new DocReceiveSend($oC); $oRs1 = new DocReceiveSend($oC); $oRs11 = new DocReceiveSend($oC); $oRs2 = new DocReceiveSend($oC); $oRs3 = new DocReceiveSend($oC); $oRs4 = new DocReceiveSend($oC); $oRs5 = new DocReceiveSend($oC); $oRs6 = new DocReceiveSend($oC); $oNeRe = new NoticeEditDoc($oC); $oNeS = new NoticeEditDoc($oC); $oDatt = new Docattatches($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup(); $InputThai=$oSys->SearchByInputThai(); if($_SESSION['DLCID'] && $_SESSION['one_position']!="1"){ include_once "selectposition.php"; $oDlc->SearchByKey($_SESSION['DLCID']); $oDlc->GetRecord(); $DlcPS2= searchDlcPS2($oDlc->DlpID,$DLCID,$oDlc->DlcSeq,$oDlc->deptId); $showDocRegisAll=$oSys->SearchshowDocRegisAll(); ?> <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="searchDoc.php">ค้นหาหนังสือ</a> <img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">รายละเอียดข้อมูลหนังสือ</font> </font></legend><br> <table align="center" width="99%" > <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="99%" align="center"> <? if($oDlc->DlcSign!="Y"){ ?> <tr><td><b>หนังสือเข้า</b></td></tr> <tr><td> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" > <tr height=22> <td width="10%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่ ลงวันที่</strong></font></td> <td width="15%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>จาก/ที่มา (ต้นเรื่อง)</strong></font></td> <td width="23%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง</strong></font></td> <td width="9%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>วันที่ได้รับหนังสือ</strong></font></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/rapid0.jpg" border="0" ></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/secret0.jpg" border="0" ></td> </tr> <? $oDocR->SearchDocReceive($DLCID,$MaxDocGroup,$DlcPS2,th2a($searchNo),th2a($searchDocSubject)); $i=0; while($oDocR->GetRecord()){ if(($i%2) == 0) echo "<tr bgcolor=\"#FFFFFF\" height=22 >"; else echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\" height=22 align=\"left\">"; ?> <td height="35"> <? if($oDocR->DtID!=15){ echo $oDocR->DocNo; }else{ echo '-'; } ?><br> <? echo abbreDate2($oDocR->DocDate,'/'); ?></td> <td align="left"> <? if($oDocR->DtID=="1" || $oDocR->DtID=="2" || $oDocR->DtID=="14"){ echo " ".$oDocR->DocFrom."<br>"; }else{ if($oDocR->DocPID=="0"){ $oDlcR->SearchByKey($oDocR->DlcID); $oDlcR->GetRecord(); $oDlpR->SearchByKey($oDlcR->DlpID); $oDlpR->GetRecord(); }else{ $oDocR2->SearchByKey($oDocR->DocPID); $oDocR2->GetRecord(); $oDlcR->SearchByKey($oDocR2->DlcID); $oDlcR->GetRecord(); $oDlpR->SearchByKey($oDlcR->DlpID); $oDlpR->GetRecord(); } echo " ".$oDocR->DocFrom."<br>"; echo " (".$oDlpR->DlpName.")"; } ?> </td> <td align="left"> <? echo showeDoc($oDocR->eDoc); ?><a href="showReceiveDoc.php?DtID=<? echo $oDocR->DtID;?>&RsID=<? echo $oDocR->RsID; ?>&DocID=<?php echo $oDocR->DocID;?>&DrsID=<? echo $oDocR->DrsID; ?>"><? if($oDocR->DtID=="13"){ echo "ชื่อผู้ได้รับการรับรอง<br>".$oDocR->CertificatePs; }else{ echo $oDocR->DocSubject; } ?></a></td> <td align="center"> <? list($DocD,$DocT) = preg_split('[ ]',$oDocR->DrsReceiveDate ); echo abbreDate2($DocD,'/')."<br>".a2th($DocT); ?> </td> <td align="center"><? echo searchPicDocSpeedLevel($oDocR->DslID); ?></td> <td align="center"><? echo searchPicDocSecretLevel($oDocR->DclID); ?></td></tr> <? $i++; } ?> <? if($i==0){ ?> <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="6"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือเข้า **</font></td></tr> <? }?> </table> </td></tr> <tr><td> </td></tr> <tr><td><b>หนังสือลงทะเบียน</b></td></tr> <tr><td> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" > <tr height=22> <td width="8%" align="center" background="../picture/table_header_bg2.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เลขทะเบียน</strong></font></td> <td width="17%" align="center" background="../picture/table_header_bg2.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่ (ชนิดหนังสือ)</strong></font></td> <td width="13%" align="center" background="../picture/table_header_bg2.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลงวันที่</strong></font></td> <td width="30%" align="center" background="../picture/table_header_bg2.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง</strong></font></td> <td width="14%" align="center" background="../picture/table_header_bg2.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong><? if($RsID==3){ echo "วันที่ลงรับ"; }else{ echo "วันที่ลงทะเบียน"; }?></strong></font></td> <td width="3%" align="center" background="../picture/table_header_bg2.gif"><img src="../picture/rapid0.jpg" border="0" ></td> <td width="3%" align="center" background="../picture/table_header_bg2.gif"><img src="../picture/secret0.jpg" border="0" ></td> </tr> <? if($oDlp->DlpID=="1" && $showDocRegisAll=="Y"){ $oDocRe->SearchRegisDocMainDeptsearchDoc($MaxDocGroup,th2a($searchNo),th2a($searchDocSubject)); }else{ $oDocRe->SearchRegisDocNoMainDeptsearchDoc($DLCID,$MaxDocGroup,$DlcPS2,th2a($searchNo),th2a($searchDocSubject)); } $x=0; while($oDocRe->GetRecord()){ $noticedoc=""; $oNeRe->SearchNoticeEditDocStatus($oDocRe->DocID,$oDocRe->DrsID,1); if($oNeRe->GetRecord()){ $noticedoc="<b><font color=\"#FF0000\"><แจ้งแก้ไข></font></b>"; } if(($x%2) == 0) echo "<tr bgcolor=\"#FFFFFF\" height=22 >"; else echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\" height=22 align=\"left\">"; ?> <td align="center"><? echo a2th($oDocRe->DocTypeNo); ?></td> <td > <? if($oDocRe->DtID!="15"){ echo a2th($oDocRe->DocNo); }else{ echo '-'; } ?> <br> (<? if($oDocRe->RsID==1){ echo $oRSt->SearchShowRsName(1); }else if($oDocRe->RsID==2){ echo $oRSt->SearchShowRsName(2); }else if($oDocRe->RsID==4){ echo $oRSt->SearchShowRsName(4); }else if($oDocRe->RsID==3){ echo $oRSt->SearchShowRsName(3); } $oDt->SearchByKey($oDocRe->DtID); $oDt->GetRecord(); echo '<br> '.$oDt->DtName; ?>)</td> <td align="center"><?php if($oDocRe->DocDate =="0000-00-00"){ echo ""; }else{ echo abbreDate(splitDateDb2($oDocRe->DocDate ,'/')); }?></td> <td align="left"><? echo showeDoc($oDocRe->eDoc); ?> <? if($oDocRe->endDoc=="Y"){ $pathlink="showEndDoc.php"; }else{ $pathlink="showRegisDoc.php"; } if(($oDocRe->DlcID!=$DLCID) && ($oDocRe->DlcID!=$DlcPS2)){ $caseother="&caseother=1"; }else{ $caseother=""; } ?> <a href="<? echo $pathlink; ?>?DtID=<? echo $oDocRe->DtID;?>&RsID=<? echo $oDocRe->RsID; ?>&DocID=<?php echo $oDocRe->DocID;?>&DrsID=<?php echo $oDocRe->DrsID.$caseother;?>"><? echo $oDocRe->DocSubject; ?></a> <? if($oDocRe->RsID=="3"){ echo " <font color=\"#015181\"><storng>(จาก".$oDocRe->DocFrom.")</strong></font>"; } if($oDlp->DlpPID!="0"){ if($DLCID==$oDocRe->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} if($oDlp->DlpPID=="0"){ if($DlcPS2==$oDocRe->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} if($oDocRe->endDoc=="Y"){ echo " <font color=\"#FF0000\"><storng>[ยุติหนังสือ]</strong></font>"; } if(($oDocRe->DlcID!=$DLCID) && ($oDocRe->DlcID!=$DlcPS2)){ $oDlcRe->SearchByKey($oDocRe->DlcID); $oDlcRe->GetRecord(); $oDPRe->SearchByKey($oDlcRe->deptId); $oDPRe->GetRecord(); echo " <storng>(จาก$oDPRe->deptName)</strong>"; } echo $noticedoc; if($oDocRe->DocPID=="0" || $oDocRe->DocPID==""){ $searchDoc=$oDocRe->DocID; }else{ $searchDoc=$oDocRe->DocPID; } $cdoc=$oDatt->CountDocByDocID($searchDoc); if($cdoc==0){ echo " <font color=#990099>(".a2th('0')." แฟ้ม)</font>"; }?> </td> <td align="center"><? list($DocD,$DocT) = preg_split('[ ]',$oDocRe->DocDateCreate); echo abbreDate2($DocD,'/')."<br>".a2th($DocT);?></td> <td align="center"><? echo searchPicDocSpeedLevel($oDocRe->DslID); ?></td> <td align="center"><? echo searchPicDocSecretLevel($oDocRe->DclID); ?></td> <? $x++; }?></tr> <? if($x==0){ ?> <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="7"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือลงทะเบียน **</font></td></tr> <? }?> </table> <tr><td> <? }?> <? if($oDlc->DlcSign=="Y"){ $oDlpS->SearchByKey($oDlc->DlpID); $oDlpS->GetRecord(); ?> <tr><td><b>หนังสือลงนาม</b></td></tr> <tr><td> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> <tr height=22> <td width="13%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่ ลงวันที่</strong></font></td> <td width="15%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>จาก/ที่มา (ต้นเรื่อง)</strong></font></td> <td width="29%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง/ว่าด้วย (ชนิดหนังสือ)</strong></font></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/rapid0.jpg" border="0" ></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/secret0.jpg" border="0" ></td> </tr> <? if($oDlpS->DlpPID!="0"){ $oDocS->SearchSignDocRsearchDoc($MaxDocGroup,$DLCID,$DlcPS2,th2a($searchNo),th2a($searchDocSubject)); }else{ $oDocS->SearchSignDocsearchDoc($MaxDocGroup,$DLCID,$DlcPS2,th2a($searchNo),th2a($searchDocSubject)); } $y=0; while($oDocS->GetRecord()){ $noticedoc=""; $oNeS->SearchNoticeEditDocStatus($oDocS->DocID,$oDocS->DrsID,1); if($oNeS->GetRecord()){ $noticedoc="<b><font color=\"#FF0000\"><แจ้งแก้ไข></font></b>"; } if(($y%2) == 0) echo "<tr bgcolor=\"#FFFFFF\" height=22 >"; else echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\" height=22 align=\"left\">"; ?> <td> <? if($oDocS->DtID!="15"){ echo $oDocS->DocNo; }else{ echo '-'; }?><br> <? echo abbreDate2($oDocS->DocDate,'/'); ?></td> <td align="left"> <? if($oDocS->DtID=="1" || $oDocS->DtID=="2" || $oDocS->DtID=="14"){ echo " ".$oDocS->DocFrom."<br>"; }else{ if($oDocS->DocPID=="0"){ $oDlcS->SearchByKey($oDocS->DlcID); $oDlcS->GetRecord(); $oDlp->SearchByKey($oDlcS->DlpID); $oDlp->GetRecord(); }else{ $oD_DlcID=$oDocS2->SearchDlcID($oDocS->DocPID); $oDlcS->SearchByKey($oD_DlcID); $oDlcS->GetRecord(); $oDlp->SearchByKey($oDlcS->DlpID); $oDlp->GetRecord(); } echo " ".$oDocS->DocFrom."<br>"; echo " (".$oDlp->DlpName.")"; } ?> </td> <td align="left"> <? echo showeDoc($oDocS->eDoc); ?><a href="showSignDoc.php?DocID=<?php echo $oDocS->DocID;?>&DrsID=<? echo $oDocS->DrsID; ?>"><? echo $oDocS->DocSubject; ?></a> <font color="<?php echo $GLOBALS["COLOR_FONT_5"]; ?>" size="2"><? $oDt->SearchByKey($oDocS->DtID); $oDt->GetRecord(); echo "(".$oDt->DtName.")"; ?></font> <? if($oDlpS->DlpPID!="0"){ if($DLCID==$oDocS->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} ?> <? if($oDlpS->DlpPID=="0"){ if($DlcPS2==$oDocS->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} ?> <? if($oDocS->DrsWSign=='Y'){ echo " (หนังสือ".$GLOBALS['DOCFORSIGNNAME'].")"; } ?> <? echo $noticedoc;?> </td> <td align="center"><? echo searchPicDocSpeedLevel($oDocS->DslID); ?></td> <td align="center"><? echo searchPicDocSecretLevel($oDocS->DclID); ?></td> <? $y++; }?> </tr> <? if($y==0){ ?> <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="5"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือลงนาม **</font></td></tr> <? }?> </table> </td></tr> <? } ?> <tr><td> </td></tr> <tr><td><b>หนังสือส่งถึงผู้รับผิดชอบ</b></td></tr> <tr><td> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> <tr height=22> <td width="5%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เลขรับ</strong></font></td> <td width="15%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่ ลงวันที่</strong></font></td> <td width="15%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>จาก/ที่มา (ต้นเรื่อง)</strong></font></td> <td width="22%" align="center" background="../picture/table_header_bg.gif"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง/ว่าด้วย (ชนิดหนังสือ)</strong></font></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/rapid0.jpg" border="0" ></td> <td width="2%" align="center" background="../picture/table_header_bg.gif"><img src="../picture/secret0.jpg" border="0" ></td> </tr> <? $oDlpSe->SearchByKey($oDlc->DlpID); $oDlpSe->GetRecord(); if($_SESSION['GroupID']=="110" || $_SESSION['GroupID']=="111" || $_SESSION['GroupID']=="112" || $_SESSION['GroupID']=="115"){ if($oDlpSe->DlpPID=="0"){ $a=2; $b=1; }else{ $a=3; $b=2; } $DlcSeq=$oDlc->DlcSeq-$a; $DlcSeq2=$oDlc->DlcSeq-$b; $oDlcSe3->SearchByNextDlcID($DlcSeq,$oDlc->docGroup,$oDlc->deptId); $oDlcSe3->GetRecord(); $DLCID2=$oDlcSe3->DlcID; $oDlcSe4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlcSe4->GetRecord(); $DlcPS22=$oDlcSe4->DlcID; $oDocSe->SearchSendDocDrsSEndsearchDoc($DLCID2,$MaxDocGroup,$DlcPS22,$DLCID,th2a($searchNo),th2a($searchDocSubject)); }else{ $oDocSe->SearchSendDocDrsSEndnotY2searchDoc($DLCID,$MaxDocGroup,$DlcPS2,$DLCID,th2a($searchNo),th2a($searchDocSubject)); } $z=0; while($oDocSe->GetRecord()){ if(($z%2) == 0) echo "<tr bgcolor=\"#FFFFFF\" height=22 >"; else echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\" height=22 align=\"left\">"; ?> <td align="center"><? if($oDocSe->DocTypeNo!='0'){ echo a2th($oDocSe->DocTypeNo); } ?></td> <td> <? if($oDocSe->DtID!="15"){ echo $oDocSe->DocNo; }else{ echo '-'; }?><br> <? echo abbreDate2($oDocSe->DocDate,'/'); ?></td> <td align="left"> <? if($oDocSe->DtID=="1" || $oDocSe->DtID=="2" || $oDocSe->DtID=="14"){ echo " ".$oDocSe->DocFrom."<br>"; }else{ echo " ".$oDocSe->DocFrom."<br>"; echo " (".$oDlp->DlpName.")"; if($oDocSe->DocPID=="0"){ $oDlc2->SearchByKey($oDocSe->DlcID); $oDlc2->GetRecord(); $oDlp->SearchByKey($oDlc2->DlpID); $oDlp->GetRecord(); }else{ $od_DlcID=$oDocSe2->SearchDlcID($oDocSe->DocPID); $oDlc2->SearchByKey($od_DlcID); $oDlc2->GetRecord(); $oDlp->SearchByKey($oDlc2->DlpID); $oDlp->GetRecord(); } } if($oDocSe->RsID!='2'){ $fn="showSendDoc.php"; }else{ $fn="showSendDocSR.php";} ?> </td> <td align="left"> <? echo showeDoc($oDocSe->eDoc); ?><a href="<? echo $fn; ?>?DocID=<?php echo $oDocSe->DocID;?>&DrsID=<? echo $oDocSe->DrsID; ?>"><? echo $oDocSe->DocSubject; ?></a> <font color="<?php echo $GLOBALS["COLOR_FONT_5"]; ?>" size="2"><? $oDt->SearchByKey($oDocSe->DtID); $oDt->GetRecord(); echo "(".$oDt->DtName.")";?></font> <? if($oDlpSe->DlpPID!="0"){ if($DLCID==$oDocSe->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} if($oDlpSe->DlpPID=="0"){ if($DlcPS2==$oDocSe->DlcID){ echo " <font color=\"#029b0a\"><storng>[รักษาการ]</strong></font>"; }} ?> </td> <td align="center"><? echo searchPicDocSpeedLevel($oDocSe->DslID); ?></td> <td align="center"><? echo searchPicDocSecretLevel($oDocSe->DclID); ?></td> </tr> <? $z++; } ?> <? if($z==0){ ?> <tr height=22><td align="center" bgcolor="#FFFFFF" colspan="6"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือส่งถึงผู้รับผิดชอบ **</font></td></tr> <? }?> </table> </td></tr> <tr><td> </td></tr> </table> </fieldset> <table width="99%" border="0" align="center"> <tr> <td width="134" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> <strong>หมายเหตุ : </strong> </font></td> <td colspan="2" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ชั้นความเร็ว <? $oDsl->RSDocSpeedLevel(); while($oDsl->GetRecord()){ echo searchPicDocSpeedLevel($oDsl->DslID); echo " ".$oDsl->DslName." "; }?></font></td> </tr> <tr> <td width="134"> </td> <td colspan="2" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ชั้นความลับ <? $oDcl->RSDocSecretLevel(); $r=0; while($oDcl->GetRecord()){ echo searchPicDocSecretLevel($oDcl->DclID); echo " ".$oDcl->DclName." "; }?></font></td> </tr> <tr> <td width="134"> </td> <td colspan="2" align="left"><img src="../picture/eDoc.gif" title="หนังสือรับอิเล็กทรอนิกส์" > <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">หมายถึงหนังสือรับอิเล็กทรอนิกส์จากหน่วยงานภายนอก</font></td> </tr> </table> </td> </tr> </table> </body> </html> <? }else{ include_once "unselectposition.php"; } ?>
|