Viewing file: showEntryDoc.php (39.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 "../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";
include_once "../class/clsDocWSign.php";
include_once "getPrefix.php";
include_once "../class/clsSysConfig.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);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc5 = new DocLineConfig($oC);
$oDlc6 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = 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);
$oDoc4 = new Documents($oC);
$oDatt = new Docattatches($oC);
$oDatt2 = new Docattatches($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC);
$oRs3 = new DocReceiveSend($oC);
$oRs4 = new DocReceiveSend($oC);
$oRs6 = new DocReceiveSend($oC);
$oRs7 = new DocReceiveSend($oC);
$oRs8 = new DocReceiveSend($oC);
$oRs9 = new DocReceiveSend($oC);
$oRs10 = new DocReceiveSend($oC);
$oSys = new sysConfig($oC);
$oPS2 = new person($oC);
$oPt = new ProposeType($oC);
$oAn=new announceDocType($oC);
$oDws = new docwsign($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
$InputThai=$oSys->SearchByInputThai();
?>
<?
$oDoc->SearchByKey($DocID); $oDoc->GetRecord();
$oRs->SearchByKey($DrsID); $oRs->GetRecord();
if($oRs->DsID=="0"){
UpdatereadDoc($oRs->DrsID,$DocID);
}
$oSys->SearchByKey($free);
$oSys->GetRecord();
?>
<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="entryDoc.php">˹ѧÊ×Íà¢éÒ</a>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ÃÒÂÅÐàÍÕ´¢éÍÁÙÅ˹ѧÊ×Íà¢éÒ</font>
</font></legend>
<form name="ff" METHOD="POST" action="processEntryDoc.php">
<table align="center" width="93%" >
<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="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" style="border-collapse:collapse"><tr><td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" 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($oDoc->RsID==1){
echo $oRSt->SearchShowRsName(1);
}else if($oDoc->RsID==2){
echo $oRSt->SearchShowRsName(2);
}else if($oDoc->RsID==3){
echo $oRSt->SearchShowRsName(3);
}else if($oDoc->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($oDoc->DtID);
$oDt->GetRecord();
echo $oDt->DtName;
?>
</strong></font>
</td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA">
<tr><td> </td></tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameDocNo($oDoc->DtID); ?></strong></td>
<td width="2%" align="center"><strong>:</strong></td>
<td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>"> <? if($oDoc->DtID!="15"){ if($oDoc->DocNo!=""){ echo $oDoc->DocNo; } }else{ echo '-';} ?></td></tr>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameDate2($oDoc->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($oDoc->DtID!=13){ ?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" > <strong><? echo ShowNameSubject($oDoc->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($oDoc->DtID==1 || $oDoc->DtID==2 || $oDoc->DtID==3 || $oDoc->DtID==14 || $oDoc->DtID==13 || $oDoc->DtID==15){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? echo ShowNameFrom($oDoc->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($oDoc->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($oDoc->DtID==1 || $oDoc->DtID==2 || $oDoc->DtID==14 || $oDoc->DtID==3 || $oDoc->DtID==15){?>
<tr height=22><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong><? if($oDoc->DtID==3 || $oDoc->DtID==15){ 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"]; ?>"> <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>">
<? if($oDoc->DocPID=="0" || $oDoc->DocPID==""){ $searchDoc=$oDoc->DocID; }else{ $searchDoc=$oDoc->DocPID; }
$countdoc=$oDatt2->CountDocByDocID($searchDoc);
$oDoc4->SearchByKey($searchDoc);
$oDoc4->GetRecord();
if($oDoc4->DocDateCreate<$GLOBALS["dateupdate"]){
$dontcheck='Y';
}
?>
<img src="../picture/attach_ico.gif" border="0" > á¿éÁ·Õèà¡ÕèÂÇ¢éͧ <? echo a2th($oDatt->CountDocByDocID($searchDoc)); ?> ÃÒ¡ÒÃ
<? echo downloadProgramRead($oSys->downloadPpdf); ?></font><br>
<?
//---checkforsubmit
$totalDocRead=substr_count($oRs->DrsReadDoc, '1');
$countDrsDocRead=strlen($oRs->DrsReadDoc);
//-----
$countunReadDoc=0;
$oDatt->SearchByDocID($searchDoc);
while($oDatt->GetRecord()){
$showReadDoc='';
$DaSeq=$oDatt->DaSeq;
$checkReadDoc=GetStatusReadDoc($oRs->DrsReadDoc,$oDatt->DaSeq);
if($checkReadDoc==0 && $oRs->DrsReadDoc!='' && $oDatt->DaSeq!=0){ $showReadDoc=" <font color=#FF9900>[ÂѧäÁèä´éà»Ô´ÍèÒ¹]</font>"; $countunReadDoc++;}
$c++;
$pathfile=$GLOBALS['path_download_documents'].$oDatt->DaUpFileName;
?>
<a href="processEntryDoc.php?DrsID=<?php echo $DrsID;?>&DocID=<? echo $DocID; ?>&pathfile=<? echo $pathfile; ?>&flagshow=<? echo $flagshow; ?>&DrsReadDoc=<? echo $oRs->DrsReadDoc; ?>&DaSeq=<? echo $oDatt->DaSeq; ?>&method=updateDoc5&page_id=<? echo $page_id;?>" target="_blank">
<img src="../picture/allregistered_ico.gif" title="à»Ô´´Ùá¿éÁ˹ѧÊ×Í" border="0" style="cursor:pointer;" ></a>
<? echo " ".$c.". ".$oDatt->DaFileName.$showReadDoc."<br>";
} ?>
<? include("uploadDocSended.php"); echo manageDocAtt2($searchDoc);?>
</td>
</tr>
<? if(($oDoc->DtID==1 || $oDoc->DtID==2) && ($oDoc->RsID=="2" || $oDoc->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($oDoc->DtID==3 && ($oDoc->RsID=="4" || $oDoc->RsID=="3")){?>
<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($oDoc->DtID==1 || $oDoc->DtID==2 || $oDoc->DtID==3 || $oDoc->DtID==14 || $oDoc->DtID==15){?>
<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>
<? } ?>
<? if($oDoc->DtID==1 || $oDoc->DtID==2 || $oDoc->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"]; ?>"><? if($oDoc->DocDeptOwner!=""){ echo " ".$oDoc->DocDeptOwner; } ?></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->DocTelOwner!=""){ echo " ".$oDoc->DocTelOwner; } ?></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->DocFaxOwner!=""){ echo " ".$oDoc->DocFaxOwner; } ?></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->DocCopySend!=""){ echo " ".$oDoc->DocCopySend; } ?></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->DocContactE!=""){ echo " ".$oDoc->DocContactE; } ?></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->DocforSign=="Y"){ ?>
<tr height=22><td width="25%"> </td>
<td width="2%" align="center"> </td>
<td >
<input name="" type="checkbox" value="" checked disabled> ŧ·ÐàºÕ¹˹ѧÊ×Íŧ¹ÒÁ
</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>
<? } ?>
<? if(($oDoc->DtID==1 || $oDoc->DtID==2 || $oDoc->DtID==14) && $oDoc->DocSendReal=="Y"){?>
<tr height=22>
<td width="24%"> </td>
<td width="1%" align="center"> </td>
<td > <input name="" type="checkbox" value="" checked disabled>
Êè§Ë¹Ñ§Ê×͵ÑǨÃÔ§µÒÁä»´éÇ </td>
</tr>
<? } ?>
<tr><td> </td></tr>
</table>
</td></tr></table>
<?
//------------------Sign------------------------------------------------------------------?>
<?
//-----------------Line Doc--------------------------------------------------------------?>
<br>
<? // if($oDlc->DlcView=="Y"){ ?>
<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" border="0" style="cursor:pointer;"></a>
<a onClick = "showline2('<? echo $searchDoc;?>')" style="cursor:pointer;"><img src="../picture/sign_tc.jpg" border="0" style="cursor:pointer;"></a>
</td></tr>
</table>
<table width="93%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFCC99" style="border-collapse:collapse" >
<tr><td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" background="../picture/table_header_bg4.gif">
<tr>
<td width="68%" height="25">
<font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong> àÊé¹·Ò§à´Ô¹¢Í§Ë¹Ñ§Ê×Í</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">
<div style="overflow: auto; height: 300px; width: 100%;">
<?
$lineDoc=GetLineDoc($DocID,$oDoc->DocGroup,$oDoc->DsID,$DrsID);
$checkshow=0;
if($lineDoc!=$DrsID){ $lineDoc=$lineDoc.$oRs->DrsID; $checkshow=1;} //echo "=".$lineDoc."<br>";
// echo "-)=".$DocID."-".$oDoc->DocGroup."-".$oRs->DrsID."<br>";
// $lineDoc=GetLineDoc2($oDoc->DocGroup,$oRs->DrsID);
//echo "lineDoc=".$lineDoc."<br>";
while($lineDoc!=""){
list($line,$lineDoc)=preg_split('[,]',$lineDoc,2);
//echo "=".$line."<br>";
$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">
<tr height=22>
<td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃŧÃѺ¢Í§Ë¹èǧҹ <? $oDP->SearchByKey($oDlc3->deptId); $oDP->GetRecord(); echo $oDP->deptName;?></strong><? if($oRs2->DrsNoRegisReceive=='Y'){ ?> (ÃѺ˹ѧÊ×ÍáµèäÁèŧàÅ¢ÃѺãËÁè)<? } ?><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) = preg_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>
<? if($oRs2->DrsByPass=="Y"){
$oRs3->SearchByDrsFromDrsID($oRs2->DrsID);
$oRs3->GetRecord();
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" >
<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->DrsByPassPropose); ?></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($oRs3->DrsPsIDCreate); $oPS->GetRecord(); ?>
<? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName." "; ?>
<? $oDlc5->SearchByKey($oRs2->DlcID); $oDlc5->GetRecord();
$oDlp->SearchByKey($oDlc5->DlpID); $oDlp->GetRecord();
echo "(".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->SearchDeptName($oDlc5->deptId)).")";
list($DocD,$DocT) = preg_split('[ ]',$oRs2->DrsSendDate );
echo "<br>".abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? } //DrsByPass?>
<? }else if($oRs2->DsID=="2"){ ?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" >
<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) = preg_split('[ ]',$oRs2->DrsReceiveDate );
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? if($oRs2->DrsWSign=='Y'){ //case DrsWSign
$oDws->SearchByDrsIDDocID($oRs2->DrsID,$oRs2->DocID);
$oDws->GetRecord();
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" >
<tr><td colspan="3"> <strong>¢éÍÁÙÅ¡ÒÃ<? echo $GLOBALS['DOCFORSIGNNAME'];?></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($oDws->DocSign); ?></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($oDws->personId); $oPS->GetRecord(); ?>
<? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName." "; ?>
<? $oDlc5->SearchByKey($oDws->DlcID); $oDlc5->GetRecord();
$oDlp->SearchByKey($oDlc5->DlpID); $oDlp->GetRecord();
echo "(".ShowNamePosition($oDlp->DlpID,$oDlp->DlpName,$oDP->SearchDeptName($oDlc5->deptId)).") ";
list($DocD,$DocT) = preg_split('[ ]',$oDws->signDateTime);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? } //case DrsWSign?>
<? }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">
<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) = preg_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"){
//$oRs6->SearchByDocGroupDrsFromDrsID($oRs2->DocGroup,$oRs2->DrsID);
$oRs6->SearchByKey($oRs2->DrsID);
$oRs6->GetRecord();
//if($oRs2->DrsSendDate!="0000-00-00 00-00-00"){ //show status=3 send to person
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#DADADA" >
<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) = preg_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) = preg_split('[ ]',$oRs8->DrsSendDate);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?>
</td>
</tr>
<?
// $oDoc3->SearchByKey($oRs6->DocID); $oDoc3->GetRecord(); //echo "----".$oDoc3->DocID;
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>
<? } ?>
<?
$MainPsDept=$oRs9->SearchByDrsFromDrsIDDrsMainPsDept($oRs2->DrsFromDrsID);
if($MainPsDept!="" && $MainPsDept!="0"){
$oDlc6->SearchByKey($MainPsDept);
$oDlc6->GetRecord();
$oDP3->SearchByKey($oDlc6->deptId); $oDP3->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 $oDP3->deptName; ?></td>
</tr>
<? } ?>
<?
$MainPs=$oRs7->SearchByDrsFromDrsIDDrsMainPsY($oRs2->DrsFromDrsID);
if($MainPs!="" && $MainPs!="0"){
$oPS2->SearchByKey($MainPs); $oPS2->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 GetPrefix($oPS2->prefixId).$oPS2->fName." ".$oPS2->lName." "; ?></td>
</tr>
<? } ?>
<tr>
<td colspan=3><hr color="#C87904"></hr></td>
</tr>
</table>
<? } //show status=3 send to person?>
<? // }
} //each lineDoc ?>
</div> </td>
</tr>
<tr><td> </td></tr>
</table>
</td></tr>
</table>
<!-- ------------ ź˹ѧÊ×Í ---------------------------------------------------------------------
<table width="93%" border="0" align="center">
<tr><td align="right" colspan="2"><a href="processEntryDoc.php?DrsID=<?php echo $DrsID;?>&method=setDelete&flagshow=<? echo $flagshow; ?>&page_id=<? echo $page_id; ?>" onClick="return checkDelete('<? echo $countunReadDoc; ?>','<? echo $oSys->canDelDocPs; ?>')"><img src="../picture/trash.gif" title="ź˹ѧÊ×Í" border="0">
<font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong>ź˹ѧÊ×Í</strong></font>
</a></td></tr>
</table>
-- ------------ ź˹ѧÊ×Í ----------------------------------------------------------------------->
<? //} //DrsView?>
<br>
<? if($oRs->DrsDocReceiveDate=='0000-00-00 00:00:00'){ ?>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>" colspan="2"> <strong><img src="../picture/alert.gif" border="0" > á¨é§¡ÒÃÊ觼Դ</strong></td></tr>
<tr><td width="91%" align="right" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"]; ?>">
<table align="right" width="60%">
<tr><td align="right"> ¤ÓªÕéᨧ ::</td><td><textarea name="DrsSendBack" id="DrsSendBack" cols="40" rows="" <? echo showtextarea('DrsSendBack',$InputThai); ?>></textarea></td></tr>
<? if($oDoc->DocPID==0){ $s=$oDoc->DocID; }else{ $s=$oDoc->DocPID; }
$oRs10->SearchByDocIDDsID3Docgroup($s,$MaxDocGroup);
$oRs10->GetRecord();
?>
<tr><td width="31%" align="right">˹èǧҹ·Õèá¨é§Ê觡ÅѺ ::</td><td width="73%" valign="middle"> <input type="radio" name="sendbackDept" id="sendbackDept[1]" value="<? echo $oRs10->DlcID; ?>" checked> <? echo searchDlcIDPsDept($oRs10->DlcID); ?><br> <? echo searchPosition($oRs10->DlcID); ?> (µé¹àÃ×èͧ)<br> <? list($DocD,$DocT) = preg_split('[ ]',$oRs10->DrsSendDate); echo abbreDate2($DocD,'/')." ".a2th($DocT); ?></td></tr>
<? $startDocDeptID=searchDlcIDPsDeptID($oRs10->DlcID);
$endDocDeptID=searchDlcIDPsDeptID($oRs->DrsDlcIDCreate);
// if($startDocDeptID!=$endDocDeptID){
if($oRs10->DrsID!=$oRs->DrsFromDrsID){
?>
<tr><td> </td><td> <input type="radio" name="sendbackDept" id="sendbackDept[2]" value="<? echo $oRs->DrsDlcIDCreate; ?>" > <? echo $sendDocDept=searchDlcIDPsDept($oRs->DrsDlcIDCreate); ?><br> <? echo searchPosition($oRs->DrsDlcIDCreate); ?> (˹èǧҹ·ÕèÊè§)<br> <? list($DocD,$DocT) = preg_split('[ ]',$oRs->DrsReceiveDate); echo abbreDate2($DocD,'/')." ".a2th($DocT); ?></td></tr>
<? } ?>
<tr><td colspan="2" align="right"><input type="submit" name="add" value="á¨é§¡ÒÃÊ觼Դ" onClick="return checkFormat2();" <? if($oRs->DocGroup!=$MaxDocGroup){ echo "disabled"; }?>>
</td></tr>
</table>
</td>
</tr></table>
<br>
<? } ?>
<table width="95%" border="0" align="center">
<tr><td align="right" colspan="2" height="25">
<? if($oRs->DrsDocReceiveDate=='0000-00-00 00:00:00'){
?>
<input name="accept" type="submit" value="<? if($oRs->PtID=="1"){ echo "ÃѺ·ÃÒº"; }else{ echo "ÃѺ·ÃÒº áÅж×Í»¯ÔºÑµÔ"; } ?>" onClick="return checkFormat('<? echo $oRs->DsID; ?>','<? echo $DocID; ?>','<? echo $totalDocRead;?>','<? echo $countDrsDocRead;?>','<? echo $countdoc; ?>','<? echo $oRs->DrsReadDoc; ?>','<? echo $DaSeq; ?>','<? echo $dontcheck; ?>');" <? if($oRs->DocGroup!=$MaxDocGroup){ echo "disabled"; }?>>
<? }else{
list($DocD,$DocT) = preg_split('[ ]',$oRs->DrsDocReceiveDate);
echo "<strong>";
if($oRs->DsID=='7'){ echo "á¨é§¡ÒÃÊ觼Դ :: "; }else{ if($oRs->PtID=="1"){ echo "ÃѺ·ÃÒº"; }else{ echo "ÃѺ·ÃÒº áÅж×Í»¯ÔºÑµÔ"; } }
echo "</strong>";
if($oRs->DsID=='7'){ echo $oRs->DrsSendBack." "; }
echo " ".abbreDate2($DocD,'/')." ".a2th($DocT)." ";
} ?>
<input type="button" name="cancel" value="¡ÅѺ˹éÒËÅÑ¡" onClick="location.href = 'entryDoc.php?page_id=<? echo $page_id; ?>'"><br><br></td></tr>
<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" border="0" >
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">¤ÅÔ¡à¾×èÍà»Ô´´Ùá¿éÁ˹ѧÊ×Í </font>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/trash.gif" title="ź˹ѧÊ×Í" border="0"> ¤ÅÔ¡à¾×èÍź˹ѧÊ×Í·ÕèÍèÒ¹áÅéÇ</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>
<input type="hidden" name="method" id="method" >
<input type="hidden" name="DocID" id="DocID" value="<? echo $DocID; ?>">
<input type="hidden" name="DrsID" id="DrsID" value="<? echo $oRs->DrsID; ?>">
<input type="hidden" name="page_id" id="page_id" value="<? echo $page_id; ?>">
</form></fieldset>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat(p,q,r,s,t,u,m,dontcheck){
if(dontcheck=='Y'){
var agree=confirm("¤Ø³µéͧ¡ÒäÅÔ¡ÃѺ·ÃҺ˹ѧÊ×Íá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
document.ff.method.value="acceptDoc";
document.ff.submit();
return true;
}else{
return false ;
}
}else{
if(m==0 && p==0){
alert("¡ÃسÒÍèÒ¹á¿éÁ˹ѧÊ×Í¡è͹¤ÅÔ¡ÃѺ");
return false ;
}else if(r==s || t==0){
var agree=confirm("¤Ø³µéͧ¡ÒäÅÔ¡ÃѺ·ÃҺ˹ѧÊ×Íá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
document.ff.method.value="acceptDoc";
document.ff.submit();
return true;
}else{
return false ;
}
}else{
alert("¡ÃسÒÍèÒ¹á¿éÁ˹ѧÊ×Í·Ø¡á¿éÁ¡è͹¤ÅÔ¡ÃѺ");
return false ;
}
}
}
function checkFormat2(p,q){
if(document.ff.DrsSendBack.value == ""){
alert("¡ÃسҡÃÍ¡¤ÓªÕéᨧà¾×èÍá¨é§¡ÒÃÊ觼Դ");
document.ff.DrsSendBack.focus();
return false;
}
window.alert("ËÁÒÂà赯 :: àÁ×èÍ¡´á¨é§¡ÒÃÊ觼ԴáÅéÇ\n˹ѧÊ×͹Õé¨ÐäÁè¶Ù¡Å§ÃѺä´éÍÕ¡");
var agree=confirm("¤Ø³µéͧ¡Òà á¨é§¡ÒÃÊ觼Դ¡ÑºË¹Ñ§Ê×͹Õéá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
document.ff.method.value="SendBack";
document.ff.submit();
return true;
}else{
return false ;
}
}
function checkDelete(j,k){
if(k=='Y'){
var agree=confirm("¤Ø³µéͧ¡ÒÃź˹ѧÊ×Í·ÕèÍèÒ¹áÅéÇá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
return true;
}else{
return false ;
}
}else{
if(j!=0){
//window.alert("¡ÃسÒÍèÒ¹á¿éÁ˹ѧÊ×Í¡è͹ź˹ѧÊ×Í");
window.alert("¤Ø³ÂѧäÁèä´éÍèÒ¹á¿éÁ˹ѧÊ×Í");
var agree=confirm("¤Ø³µéͧ¡ÒÃź˹ѧÊ×Í·ÕèÍèÒ¹áÅéÇá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
return true;
}else{
return false ;
}
}else{
var agree=confirm("¤Ø³µéͧ¡ÒÃź˹ѧÊ×Í·ÕèÍèÒ¹áÅéÇá¹è¹Í¹ãªèËÃ×ÍäÁè ?");
if (agree){
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,menubar=1,width=" + w + ",height=" + h;
window.open(FileName,"",strOption);
}
function showline2(p){
FileName = "showlinedocTable2.php?searchDoc="+p;
var w=900;
var h=500;
strOption = "scrollbars=yes,left=370,top=100,menubar=1,width=" + w + ",height=" + h;
window.open(FileName,"",strOption);
}
</script>
|