Viewing file: showNoAcceptDoc.php (25.12 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 "../link/functionshow.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsReceiveSendType.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocSpeedLevel.php";
include_once "../class/clsDocSecreLevel.php";
include_once "../class/clsDocattatchesTmp.php";
include_once "../class/clsDocuments.php";
include_once "../class/clsDocattatches.php";
include_once "../class/clsDocReceiveSend.php";
include_once "../class/clsProposeType.php";
include_once "funct.php";
include_once "../class/clsannounceDocType.php";
include_once "../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlc5 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oRSt = new receiveSendType($oC);
$oDt = new doctype($oC);
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
$oDtmp = new DocattatchesTmp($oC);
$oDoc = new Documents($oC);
$oDoc2 = new Documents($oC);
$oDoc3=new Documents($oC);
$oDatt = new Docattatches($oC);
$oRs = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC);
$oRs3 = new DocReceiveSend($oC);
$oRs4 = new DocReceiveSend($oC);
$oRs5 = new DocReceiveSend($oC);
$oRs6 = new DocReceiveSend($oC);
$oRs8 = new DocReceiveSend($oC);
$oPt = new ProposeType($oC);
$oAn=new announceDocType($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
if($DLCID && $one_position!="1"){ include_once "selectposition.php";
?>
<?
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord();
$oDoc->SearchByKey($DocID); $oDoc->GetRecord();
$oRs5->SearchByKey($DrsID);$oRs5->GetRecord();
//echo $DLCID."<br>";
//echo $oDlc->personId;
?>
<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="receiveDoc.php">˹ѧÊ×Íà¢éÒ</a>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ÃÒÂÅÐàÍÕ´¢éÍÁÙÅ·ÐàºÕ¹˹ѧÊ×Í</font>
</font></legend>
<form name="ff" METHOD="POST" action="processReceiveDoc.php">
<table align="center" width="93%" >
<tr>
<td width="68%" height="25"><img src="../picture/official_letter.gif" alt="" border="0" >
<font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong>˹ѧÊ×Í·Õè<? if($s=="6" && $deptcenter!="1"){ echo "äÁè"; } if($s=="7"){ echo "á¨é§¡ÒÃÊ觼Դ"; }else{ echo "ŧ·ÐàºÕ¹ÃѺ"; }?></strong></font>
</td>
</tr>
<tr>
<td colspan="3"><hr color="#000099"></hr>
</td>
</tr>
<? if($oRs5->DrsSendBack!=""){?>
<tr>
<td><strong>¤ÓªÕéᨧ á¨é§¡ÒÃÊ觼Դ :: </strong> <? echo $oRs5->DrsSendBack; ?></td>
</tr>
<? } ?>
<tr align="right"><td align="right"><a href="addRegisDoc.php"><img src="../picture/regist_tc.jpg" alt="ŧ·ÐàºÕ¹" border="0" style="cursor:pointer;"></a></td></tr>
</table>
<table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"><tr><td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" background="../picture/table_header_bg2.gif">
<tr>
<td width="68%" height="25">
<font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>
ÃÒÂÅÐàÍÕ´¢Í§Ë¹Ñ§Ê×Í: </strong></font>
<font color="<?php echo $GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>
<? if($RsID==1){
echo $oRSt->SearchShowRsName(1);
}else if($RsID==2){
echo $oRSt->SearchShowRsName(2);
}else if($oDoc->RsID==3){
echo $oRSt->SearchShowRsName(3);
}else if($RsID==4){
echo $oRSt->SearchShowRsName(4);
}
?>
</strong></font>
<font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>
ª¹Ô´Ë¹Ñ§Ê×Í: </strong></font>
<font color="<?php echo $GLOBALS["COLOR_FONT_8"]; ?>" size="2"><strong>
<? $oDt->SearchByKey($DtID);
$oDt->GetRecord();
echo $oDt->DtName;
?>
</strong></font>
</td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td> </td></tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameDocNo($DtID); ?></strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocNo!=""){ echo $oDoc->DocNo; } ?></td></tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameDate2($DtID); ?></strong></td>
<td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
<? if($oDoc->DocDate!="" && $oDoc->DocDate!="0000-00-00"){
echo " ".abbreDate2($oDoc->DocDate,'/');
} ?>
</td></tr>
<? //if($DtID!=13){ ?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" > <strong><? echo ShowNameSubject($DtID); ?></strong></td>
<td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocSubject!=""){ echo $oDoc->DocSubject; } ?></td>
</tr>
<? //} ?>
<? if($DtID==1 || $DtID==2 || $oDoc->DtID==3 || $DtID==14 || $DtID==13){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameFrom($DtID); ?></strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocFrom!=""){ echo $oDoc->DocFrom; } ?></td>
</tr>
<? } ?>
<? if($DtID==13){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ª×èͼÙéä´éÃѺ¡ÒÃÃѺÃͧ</strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->CertificatePs!=""){ echo $oDoc->CertificatePs; } ?></td>
</tr>
<? } ?>
<? if($DtID==1 || $DtID==2 || $DtID==14 || $DtID==3){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? if($DtID==3){ echo "àÃÕ¹"; }else{ echo "¶Ö§"; } ?></strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocTo!=""){ echo $oDoc->DocTo; }?></td>
</tr>
<? }?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>á¿éÁ˹ѧÊ×Í</strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td width="73%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
<? if($oDoc->DocPID=="0" || $oDoc->DocPID==""){ $searchDoc=$oDoc->DocID; }else{ $searchDoc=$oDoc->DocPID; }?>
<font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>">
<img src="../picture/attach_ico.gif" alt="" border="0" > á¿éÁ·Õèà¡ÕèÂÇ¢éͧ <? echo a2th($oDatt->CountDocByDocID($searchDoc)); ?> ÃÒ¡ÒÃ<br></font>
<?
$oDatt->SearchByDocID($searchDoc);
while($oDatt->GetRecord()){
$c++;
$pathfile="../documents/".$oDatt->DaUpFileName;
?>
<a href="<? echo $pathfile ; ?>" target="_blank"><img src="../picture/allregistered_ico.gif" alt="à»Ô´´Ùá¿éÁ˹ѧÊ×Í" border="0" style="cursor:pointer;" ></a>
<? echo " ".$c.". ".$oDatt->DaFileName."<br>";
} ?>
</td>
</tr>
<? if(($DtID==1 || $DtID==2) && ($RsID=="2" || $RsID=="1")){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ÍéÒ§¶Ö§</strong></td>
<td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocRef!=""){ echo $oDoc->DocRef; } ?></td>
</tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ÊÔ觷ÕèÊè§ÁÒ´éÇÂ</strong></td>
<td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocOther!=""){ echo $oDoc->DocOther; }?></td>
</tr>
<? } ?>
<? if($DtID==3 && ($RsID=="3" || $RsID=="4")){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ÍéÒ§¶Ö§Ë¹Ñ§Ê×Íà¾×è͵ͺ¡ÅѺ</strong></td>
<td width="2%" align="center"><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DocRefAns!=""){ echo $oDoc->DocRefAns; } ?></td>
</tr>
<? } ?>
<? if($DtID==1 || $DtID==2 || $DtID==3 || $DtID==14){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ªÑé¹µÇÒÁàÃçÇ</strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
<? $oDsl->SearchByKey($oDoc->DslID); $oDsl->GetRecord(); echo " ".$oDsl->DslName;?>
</td></tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ªÑ鹤ÇÒÁÅѺ</strong></td>
<td width="2%" align="center" ><strong>:</strong></td><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
<? $oDcl->SearchByKey($oDoc->DclID); $oDcl->GetRecord(); echo " ".$oDcl->DclName;?></td>
</tr>
<? } ?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ËÁÒÂà˵Ø</strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
<? if($oDoc->DocShortDesc!=""){ echo " ".$oDoc->DocShortDesc; } ?>
</td>
</tr>
<? if($oDoc->sendToPs=="Y"){ ?>
<tr height=22><td width="25%"> </td>
<td width="2%" align="center"> </td>
<td >
<input name="" type="checkbox" value="" checked disabled> Ê觴èǹ
</td>
</tr>
<? } ?>
<tr><td> </td></tr>
</table>
</td></tr></table>
<? //-----------------Line Doc--------------------------------------------------------------?>
<?
//if($oDoc->RsID=="3"){
if($oDlc->DlcView=="Y"){
$lineDoc=GetLineDoc($DocID,$oDoc->DocGroup,$oDoc->DsID,$DrsID);
$checkshow=0;
if($lineDoc!=$DrsID){ $lineDoc=$lineDoc.$oRs5->DrsID; $checkshow=1;} //echo "=".$lineDoc."<br>";
?><br>
<table width="93%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr><td align="right"><a onClick = "showline('<? echo $searchDoc;?>')" style="cursor:pointer;"><img src="../picture/button_showline.jpg" alt="" border="0" style="cursor:pointer;"></a> </td></tr>
</table>
<table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFCC99" >
<tr><td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" background="../picture/table_header_bg4.gif">
<tr>
<td width="68%" height="25">
<font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> <? if($checkshow==1){ ?>àÊé¹·Ò§à´Ô¹¢Í§Ë¹Ñ§Ê×Í<? }else{ ?>¢éÍÁÙÅ¡ÒÃŧÃѺ˹ѧÊ×Í <? } ?></strong></font>
</td>
</tr>
</table><br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr>
<td align="center" colspan="2">
<? if($checkshow==1){ ?><div style="overflow: auto; height: 300px; width: 100%;"><? } ?>
<?
while($lineDoc!=""){
list($line,$lineDoc)=split(',',$lineDoc,2);
$oRs2->SearchByKey($line);
$oRs2->GetRecord();
$oDoc2->SearchByKey($oRs2->DocID);
$oDoc2->GetRecord();
$oDlc3->SearchByKey($oDoc2->DlcID);
$oDlc3->GetRecord();
if($oRs2->DsID=="1"){
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr height=22>
<td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃŧÃѺ¢Í§Ë¹èǧҹ <? $oDP->SearchByKey($oDlc3->deptId); $oDP->GetRecord(); echo $oDP->deptName;?></strong><br>
</td>
</tr>
<tr height=22>
<td width="33%"> ª¹Ô´Ë¹Ñ§Ê×Í : <? $oDt->SearchByKey($oDoc2->DtID); $oDt->GetRecord(); echo $oDt->DtName; ?></td>
<td width="23%">àÅ¢·ÐàºÕ¹<? echo ShowNameRSDoc2($oDoc2->RsID);?> : <?php echo a2th($oDoc2->DocTypeNo);?></td>
<td width="44%">Çѹ·Õèŧ·ÐàºÕ¹ : <?php
list($DocD,$DocT) = split(' ',$oDoc2->DocDateCreate);
echo abbreDate2($DocD,'/')." ".a2th($DocT); ?></td>
</tr>
<tr height=22>
<td colspan="3"> ŧÃѺâ´Â : <? $oPS->SearchByKey($oRs2->DrsReceivePersonId); $oPS->GetRecord(); ?>
<? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?>
<? $oDlp->SearchByKey($oDlc3->DlpID); $oDlp->GetRecord();
echo " (".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->deptName).")"; ?></td>
</tr>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? }else if($oRs2->DsID=="2"){ ?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃàʹÍŧ¹ÒÁ</strong></td></tr>
<tr><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¡Òúѹ·Ö¡µèÍà¹×èͧ</td>
<td width="0%" align="center" ><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> <? echo nl2br($oRs2->DrsPropose); ?></td>
</tr>
<tr height=22>
<td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¼ÙéàʹÍŧ¹ÒÁ</td>
<td width="0%" align="center" ><strong>:</strong></td>
<? $oRs3->SearchByKey($oRs2->DrsFromDrsID);
$oRs3->GetRecord();
?>
<td width="75%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>" align="center">
<? $oPS->SearchByKey($oRs2->DrsPsIDCreate); $oPS->GetRecord(); ?>
<? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName." "; ?>
<? $oDlc5->SearchByKey($oRs2->DrsDlcIDCreate); $oDlc5->GetRecord();
$oDlp->SearchByKey($oDlc5->DlpID); $oDlp->GetRecord();
echo "(".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->SearchDeptName($oDlc5->deptId)).") ";
list($DocD,$DocT) = split(' ',$oRs2->DrsReceiveDate );
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? }else if($oRs2->DsID=="3"){
$oRs4->SearchByKey($oRs2->DrsFromDrsID);
$oRs4->GetRecord();
if($oRs4->DrsByPass!="Y"){
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃŧ¹ÒÁ</strong></td></tr>
<tr><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¡Òúѹ·Ö¡µèÍà¹×èͧ</td>
<td width="0%" align="center" ><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> <? echo nl2br($oRs2->DrsSign); ?></td>
</tr>
<tr height=22>
<td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¼Ùéŧ¹ÒÁ</td>
<td width="0%" align="center" ><strong>:</strong></td>
<td width="75%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>" align="center">
<? $oPS->SearchByKey($oRs2->DrsPsIDCreate); $oPS->GetRecord(); ?>
<? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName." "; ?>
<?
$oDlc5->SearchByKey($oRs2->DrsDlcIDCreate); $oDlc5->GetRecord();
$oDlp->SearchByKey($oDlc5->DlpID); $oDlp->GetRecord();
echo "(".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->SearchDeptName($oDlc5->deptId)).") ";
list($DocD,$DocT) = split(' ',$oRs2->DrsReceiveDate );
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? }
}else if($oRs2->DsID=="0" || $oRs2->DsID=="4" || $oRs2->DsID=="5"){ ?>
<? //if($oRs2->DrsSendDate!="0000-00-00 00-00-00"){ //show status=3 send to person ?>
<? $oRs6->SearchByKey($oRs2->DrsID);
$oRs6->GetRecord();
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃÊ觶֧¼ÙéÃѺ¼Ô´ªÍº</strong></td></tr>
<? if($oRs6->PtID!=0 && $oRs6->PtID!=""){
$oPt->SearchByKey($oRs6->PtID);
$oPt->GetRecord();
?>
<? if($oRs6->DrsSendDocNew!="0000-00-00 00:00:00"){ ?>
<tr><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> Êè§à¾ÔèÁàµÔÁ</td>
<td><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>">
<? list($DocD2,$DocT2) = split(' ',$oRs6->DrsSendDocNew);
echo abbreDate2($DocD2,'/')." ".a2th($DocT2);
?></td>
</tr>
<? } ?>
<tr><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ÅѡɳÐ˹ѧÊ×Í</td>
<td><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> <? echo $oPt->PtName; ?></td>
</tr>
<? } ?>
<? if($oRs6->AnID!=0 && $oRs6->AnID!=""){
$oAn->SearchByKey($oRs6->AnID);
$oAn->GetRecord();
?>
<tr><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¢éÍÁÙÅ¢Öé¹àÇçº</td>
<td><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> <? echo $oAn->AnName; ?>
<br> á¨é§¢Öé¹àÇçº <? echo ShowNameonweb($oDoc2->DocShowInOut); ?>
<br> Çѹ·Õè»ÃСÒÈ¢Öé¹àÇçº
<? if($oRs6->DrsstartDatePost!="0000-00-00"){
if($oRs6->DrsstartDatePost==$oRs6->DrsendDatePost){
echo abbreDate2($oRs6->DrsstartDatePost,'/');
}else{
echo abbreDate2($oRs6->DrsstartDatePost,'/')." ¶Ö§ ".abbreDate2($oRs6->DrsendDatePost,'/');
}
}
?>
</td>
</tr>
<? } ?>
<tr><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¡Òúѹ·Ö¡µèÍà¹×èͧ</td>
<td width="0%" align="center" ><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> <? echo nl2br($oRs6->DrsPropose); ?></td>
</tr>
<tr height=22>
<td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¼ÙéÊè§Ë¹Ñ§Ê×Í</td>
<td width="0%" align="center" ><strong>:</strong></td>
<td width="75%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>" align="center">
<? $oPS->SearchByKey($oRs6->DrsPsIDCreate); $oPS->GetRecord(); ?>
<? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName." "; ?>
<?
$oDlc5->SearchByKey($oRs6->DrsDlcIDCreate); $oDlc5->GetRecord();
$oDlp->SearchByKey($oDlc5->DlpID); $oDlp->GetRecord();
echo "(".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->SearchDeptName($oDlc5->deptId)).") ";
$oRs8->SearchByKey($oRs6->DrsFromDrsID);
$oRs8->GetRecord();
list($DocD,$DocT) = split(' ',$oRs8->DrsSendDate);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<? //$oDoc3->SearchByKey($oRs6->DocID); $oDoc3->GetRecord();
if($oRs6->DrsDocDueDate!="0000-00-00"){ ?>
<tr><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_21"]; ?>"> ¡Ó˹´ÃÐÂÐàÇÅÒ´Óà¹Ô¹¡ÒÃ</td>
<td><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_22"]; ?>"> ÀÒÂã¹Çѹ·Õè <? echo abbreDate2($oRs6->DrsDocDueDate,'/');?></td></tr>
<? } ?>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? } //show status=3 send to person?>
<? //}
} //each lineDoc ?>
<? if($checkshow==1){ ?></div><? } ?> </td>
</tr>
<tr><td> </td></tr>
</table>
</td></tr></table>
<? } //DlcView
// } //show RsID==3 ?><br>
<table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<input type="button" name="cancel" value="¡ÅѺ˹éÒËÅÑ¡" onClick="location.href = 'receiveDoc.php?s=<? echo $s; ?>&monthe=<? echo $monthe;?>&searchYear=<? echo $searchYear; ?>&searchName=<? echo $searchName;?>&flagshow=<? echo $flagshow; ?>&deptcenter=<? echo $deptcenter; ?>'">
<input type="hidden" name="method">
<input type="hidden" name="deptId" value="<? echo $oDlc->deptId; ?>">
<input type="hidden" name="DtID" value="<? echo $DtID; ?>">
<input type="hidden" name="RsID" value="<? echo $RsID; ?>">
<input type="hidden" name="DocID" value="<? echo $oDoc->DocID; ?>">
<input type="hidden" name="DrsID" value="<? echo $DrsID; ?>">
<input type="hidden" name="DocGroup" value="<? echo $oDoc->DocGroup; ?>">
<input type="hidden" name="DlcID" value="<? echo $oDoc->DlcID; ?>">
<input type="hidden" name="personId" value="<? echo $oDlc->personId; ?>">
</td></tr></table>
</form>
</fieldset> <table width="95%" border="0" align="center">
<tr>
<td width="76" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> <strong>ËÁÒÂà˵Ø
: </strong> </font></td>
<td width="618" align="left"><img src="../picture/allregistered_ico.gif" alt="" border="0" >
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">¤ÅÔ¡à¾×èÍà»Ô´´Ùá¿éÁ˹ѧÊ×Í </font></td>
</tr>
<tr>
<td width="76"> </td>
<td width="618" align="left">
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> </font></td>
</tr></table>
</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function checkFormat(){
var agree=confirm("¤Ø³µéͧ¡ÒÃŧÃѺ˹ѧÊ×Íá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
document.ff.method.value="addReceiveDoc";
return true;
}else{
return false ;
}
}
function checkFormat2(){
var agree=confirm("˹ѧÊ×ͨÐäÁè¶Ù¡Å§·ÐàºÕ¹ÃѺ\n¤Ø³µéͧ¡ÒÃäÁèŧÃѺ˹ѧÊ×͹Õéá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
document.ff.method.value="Noaccept";
return true;
}else{
return false ;
}
}
function showline(p){
FileName = "showlinedocTable.php?searchDoc="+p;
var w=900;
var h=500;
strOption = "scrollbars=yes,left=370,top=100,width=" + w + ",height=" + h;
window.open(FileName,"",strOption);
}
</script>
|