Viewing file: showDetailNewSendDocSR.php (22.63 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/clsDocSendtoPsTmp.php";
include_once "../class/clsannounceDocType.php";
include_once "../link/keyThai.php";
include_once "../class/clsDocWSign.php";
include_once "../class/clsSendReceive.php";
include_once "../class/clsCollegeDetail.php";
include_once "getPrefix.php";
include_once "../class/clsSendNewDocSR.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);
$oDP4 = new Department($oC);
$oDP5 = new Department($oC);
$oPS = new person($oC);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$oPS4 = new person($oC);
$oPS5 = new person($oC);
$oPS6 = new person($oC);
$oUG = new umgroup($oCu);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlc5 = new DocLineConfig($oC);
$oDlc6 = new DocLineConfig($oC);
$oDlc7 = new DocLineConfig($oC);
$oDlc8 = new DocLineConfig($oC);
$oDlc9 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oDlp2= 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);
$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);
$oRs11 = new DocReceiveSend($oC);
$oPt = new ProposeType($oC);
$oStmp=new DocSendToPsTmp($oC);
$oAn=new announceDocType($oC);
$oDws = new docwsign($oC);
$oTsr = new sendreceive($oC);
$oTsr2 = new sendreceive($oC);
$oCd = new collegedetail($oC);
$oSn = new sendnewdocsr($oC);
$oSn2 = new sendnewdocsr($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
$docpath=searchDocPath($GLOBALS["COLLEGEID"]);
doCheckAll();
if($_SESSION['DLCID'] && $_SESSION['one_position']!="1"){ include_once "selectposition.php";
?>
<?
$oDoc->SearchByKey($DocID); $oDoc->GetRecord();
$oDlc->SearchByKey($_SESSION['DLCID']); $oDlc->GetRecord();
if($_SESSION['DLCIDSECOND']=="Y"){
$oDlc9->SearchByKey($_SESSION['DLCIDSECONDID']); $oDlc9->GetRecord();
$mypersonId=$oDlc9->personId;
}else{
$mypersonId=$oDlc->personId;
}
$a=$oDlc->DlcActive;
$oRs->SearchByKey($DrsID); $oRs->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="sendDoc.php">ส่งหนังสือถึงผู้รับผิดชอบ</a>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">รายละเอียดข้อมูลการส่งหนังสือถึงผู้รับผิดชอบ</font>
</font></legend>
<form name="ff" METHOD="POST" action="processSendDocumentNewSR.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->DocNo!=""){ echo $oDoc->DocNo; } ?></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){?>
<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"]; ?>">
<? 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" border="0" > แฟ้มที่เกี่ยวข้อง <? echo a2th($oDatt->CountDocByDocID($searchDoc)); ?> รายการ
<? echo downloadProgramRead($oSys->downloadPpdf); ?></font><br>
<?
$oDatt->SearchByDocID($searchDoc);
while($oDatt->GetRecord()){
$c++;
$pathfile=$GLOBALS['path_upload_documents'].$oDatt->DaUpFileName;
?>
<a href="<? echo $pathfile ; ?>" target="_blank"><img src="../picture/allregistered_ico.gif" title="เปิดดูแฟ้มหนังสือ" border="0" style="cursor:pointer;" ></a>
<? echo " ".$c.". ".$oDatt->DaFileName."<br>";
} ?>
</td>
</tr>
<? if($oDoc->DocPID==0){ ?>
<tr><td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>แฟ้มหนังสือเพิ่มเติม</strong></td><td width="2%" align="center"><b>:</b></td>
<td><? 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="31%" 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){?>
<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------------------------------------------------------------------?>
<br>
<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>
</td>
</tr>
</table>
<table width="97%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" >
<tr align="center">
<td width="45%" align="left" valign="top">
<?
$countAllDoc=$oDatt->CountDocByDocIDSended($DocID);
if($countAllDoc>0){
$showdetaildoc="<br> <font size=2 color=".$GLOBALS["COLOR_FONT_2"]."><b>แฟ้มหนังสือเพิ่มเติม (จากต้นเรื่อง)</b></font><br>";
$showdetaildoc.="<table width=\"100%\" border=0 cellpadding=\"0\" cellspacing=\"0\" align=left>";
$showdetaildoc=$showdetaildoc."<tr><td align=left> เลือกแฟ้มหนังสือที่ต้องการส่ง<br>";
$c=0;
$oDatt->SearchByDocIDSended($DocID);
while($oDatt->GetRecord()){ $c++; $pathfile=$GLOBALS['path_upload_documents'].$oDatt->DaUpFileName;
$new_DaFileName=str_replace (' ','_',$oDatt->DaFileName);
$showdetaildoc=$showdetaildoc." <input type=radio name=selectdoc id=selectdoc".$oDatt->DaID." onClick=onSet('".$oDatt->DaUpFileName."','".$new_DaFileName."')>";
$showdetaildoc=$showdetaildoc." ".$c.". ".$oDatt->DaFileName."<br>";
}
$showdetaildoc=$showdetaildoc."</td></tr></table>";
echo $showdetaildoc;
}
?>
</td>
<td width="45%" align="left" valign="top"><br><br>เลือกหน่วยงานที่ต้องการส่ง<br>
<?
$x=0;
$oTsr->SearchBytsr_DrsIDandtsr_fr_node($DrsID,$GLOBALS["COLLEGEID"]);
while($oTsr->GetRecord()){
$oCd->SearchByKey($oTsr->tsr_to_node);
$oCd->GetRecord();
?>
<?
echo "<input type=radio name=selectdept id=selectdept".$oCd->collegeID." onClick=onSet2('".$oCd->collegeID."')> ".$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)."]";
}
echo '<br>';
}
?>
</td>
</tr>
<tr>
<td height="44" colspan="2" align="center"><input type="submit" name="cancel" value="ส่งเพิ่มเติม" onClick="return checkFormat();" <? if($a!='Y'){ echo "disabled"; } ?>></td></tr>
</table>
</td></tr></table>
<br>
<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>
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table width=80%>
<?
$oTsr2->SearchBytsr_DrsIDandtsr_fr_node($DrsID,$GLOBALS["COLLEGEID"]);
while($oTsr2->GetRecord()){
$oSn->SearchBysn_tsr_id_send($oTsr2->tsr_id);
while($oSn->GetRecord()){
$oCd->SearchByKey($oSn->sn_to_node);
$oCd->GetRecord();
list($DocD,$DocT) = preg_split('[ ]',$oSn->sn_fr_node_date);
echo "<tr><td> ".$oCd->collegeAbbr."</td><td><b>วันที่ส่ง</b> :: ".abbreDate2($DocD,'/')." ".a2th($DocT)."</td><td><b>แฟ้มหนังสือ</b> :: ".$oSn->sn_docname ."</td><td><b>สถานะ </b>:: ".Showtsr_status($oSn->sn_status)."</td></tr>";
}
}
?>
</table>
</td></tr>
</table>
<input type="hidden" name="docpath" id="docpath" value=<? echo $docpath;?>>
<input type="hidden" name="DocID" id="DocID" value="<? echo $DocID; ?>">
<input type="hidden" name="DrsID" id="DrsID" value="<? echo $DrsID; ?>">
<input type="hidden" name="method" id="method">
<input type="hidden" name="selectdocv" id="selectdocv">
<input type="hidden" name="selectdocname" id="selectdocname">
<input type="hidden" name="selectdeptv" id="selectdeptv">
</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" 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(){
if(document.ff.selectdocv.value!='' && document.ff.selectdeptv.value!=''){
var agree=confirm("คุณต้องการส่งหนังสือแน่นอนใช่หรือไม่ ?");
if (agree){
document.ff.method.value="AddSendNewSR";
return true;
}else{
return false ;
}
}else{
alert("กรุณาเลือกแฟ้มหนังสือและหน่วยงานที่ต้องการส่ง");
return false ;
}
}
function searchPs(){
document.ff.method.value="addsend2";
return true;
}
function onSet(v,n){
document.ff.selectdocv.value=v;
document.ff.selectdocname.value=n;
}
function onSet2(v){
document.ff.selectdeptv.value=v;
}
function getPs(){
document.ff.method.value="addPs";
return true;
}
function deletePs(j){
var agree=confirm("คุณต้องการลบรายชื่อที่จะส่งด่วนแน่นอนใช่หรือไม่ ?");
if (agree){
document.ff.method.value="deletePs";
document.ff.deletePstmp.value = j;
document.ff.submit();
return true;
}else{
return false ;
}
}
function SendDocNew(p,q,r,docid,drsid,x){
var agree=confirm("คุณต้องการส่งเพิ่มเติมแน่นอนใช่หรือไม่ ?");
if (agree){
if(x!=0){ fnlink="showSendDocNewSR.php"; }else{ fnlink="showSendDocNewSR.php"; }
window.location.href =fnlink+"?flagshow="+p+"&monthe="+q+"&searchYear="+r+"&DocID="+docid+"&DrsID="+drsid+"&addsendps=1";
}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>
|