Viewing file: sendReceiveDoc.php (7.7 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once "../link/function.php";
include_once "funct.php";
include_once "../link/keyThai.php";
include_once "../class/clsSendReceive.php";
include_once "../link/functionshow.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDepartment.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$InputThai=$oSys->SearchByInputThai();
$oDP = new Department($oC);
$oTsr = new sendreceive($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oDlp2 = new docLinePosition($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
if($DLCID && $one_position!="1"){ include_once "selectposition.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe id="SR" name="SR" src="" style="width:$0px;height:0px;border:0"></iframe>
<table width="100%" align="center">
<tr><td >
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendReceiveDoc.php">การติดตามหนังสือส่งอิเล็กทรอนิกส์</a>
</font></legend>
<form name="ff" METHOD="POST" action="processReSendDocSR.php" target="SR">
<table align="center" width="98%" >
<tr>
<td width="68%" height="25"><img src="../picture/search_ico.gif" alt="" border="0" >
<font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong>
การติดตามหนังสือส่งอิเล็กทรอนิกส์</strong></font> </td>
<td width="23%" align="right"> </td>
<td width="9%" align="right" > </td>
</tr>
<tr>
<td colspan="3"><hr color="#000099"></hr>
</td>
</tr>
</table>
<br>
<table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" background="<? if($DtID=="6" || $DtID=="7" || $DtID=="9"){ echo "../picture/table_header_bg2.gif"; }else{ echo "../picture/table_header_bg.gif"; }?>">
<tr height=22>
<td width="10%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เลขส่ง</strong></font></td>
<td width="15%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่</strong></font></td>
<td width="15%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลงวันที่</strong></font></td>
<td width="30%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง</strong></font></td>
<td width="5%" align="center"><img src="../picture/rapid0.jpg" alt="" border="0" ></td>
<td width="5%" align="center"><img src="../picture/secret0.jpg" alt="" border="0" ></td>
<td width="19%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>สถานะ</strong></font></td>
</tr>
<?
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord();
$oDlp1->SearchByKey($oDlc->DlpID); $oDlp1->GetRecord();
if($oDlp1->DlpPID!="0"){
//$DlcPS2=$DLCID;
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
}else{
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
}
$oTsr->SearchBytsr_fr_node_tsr_DlcID_tsr_docgroup($COLLEGEID,$DLCID,$DlcPS2,$MaxDocGroup);
$i=0;
while($oTsr->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="25"> </td>
<td align="left"> </td>
<td align="center">
<?
if($oTsr->tsr_fr_node_date!="0000-00-00 00:00:00"){
list($DocD,$DocT) = split(' ',$oTsr->tsr_fr_node_date);
echo abbreDate2($DocD,'/')."<br>".a2th($DocT);
}
?></td>
<td align="left">
<a href="showDetailSendDocSRshow.php?DocID=<?php echo $oTsr->tsr_docid;?>&DrsID=<? echo $oTsr->tsr_DrsID; ?>"><? echo $oTsr->tsr_DocSubject; ?></a>
</td>
<? $rapid="../picture/rapid0.jpg"; ?>
<td align="center"><img src="<? echo $rapid; ?>" border="0" ></td>
<? $secret="../picture/secret0.jpg"; ?>
<td align="center"><img src="<? echo $secret; ?>" border="0" ></td>
<td align="left">
<? echo Showtsr_status($oTsr->tsr_status);
if($oTsr->tsr_status=='s1'){ echo " <a href=processReSendDocSR.php?m=1&tsr_id=".$oTsr->tsr_id."><img src=\"../picture/resend2.gif\" alt=\"ส่งใหม่\" border=0></a>"; }
if($oTsr->tsr_status=='s2'){ echo " <a href=processReSendDocSR.php?m=2&tsr_id=".$oTsr->tsr_id."><img src=\"../picture/resend.gif\" alt=\"ตรวจสอบ\" border=0></a>"; } ?></td>
</tr>
<? $i++; } ?>
</table>
<table width="99%" align="center" border=0 cellpadding="0" cellspacing="0" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_13'];?>" height="22">
<? if($i=="0"){?>
<tr height=22><td align="center" bgcolor="#FFFFFF"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือส่งภายนอก **</font></td></tr>
<? } ?>
<tr height=22><td align="right"> </td></tr>
</table>
</form></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 width="1070" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกที่เรื่องหนังสือเพื่อดูรายละเอียดหนังสือ</font></td>
</tr>
<tr>
<td width="134" align="left"> </td>
<td colspan="2" align="left">
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกที่ <img src="../picture/resend2.gif" alt="ส่งใหม่" border=0> เพื่อทำการส่งหนังสืออีกครั้ง</font></td>
</tr>
<tr>
<td width="134" align="left"> </td>
<td colspan="2" align="left">
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกที่ <img src="../picture/resend.gif" alt="ส่งใหม่" border=0> เพื่อทำการตรวจสอบการดาวน์โหลดเอกสาร</font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function showDoc(){
document.ff.submit();
}
function up_downList(status){
if(status=='up'){
closeshow.style.display='';
openshow.style.display='none';
showtable.style.display='';
showtable2.style.display='';
}else{
openshow.style.display='';
closeshow.style.display='none';
showtable.style.display='none';
showtable2.style.display='none';
}
}
function On_Month(){
searchYear=document.ff.searchYear.value;
if (searchYear=="") {
alert('กรุณากรอกปี');
document.ff.searchYear.focus();
return false ;
}
document.ff.flagshow.value=1;
document.ff.submit();
}
function On_Year(){
searchYear=document.ff.searchYear.value;
if (searchYear.length == 4) {
document.ff.flagshow.value=1;
document.ff.submit();
}
}
function changeS(){
document.ff.submit();
}
function changeS2(){
if(document.ff.searchName.value==""){
document.ff.searchName.value="";
}
if(document.ff.searchNo.value==""){
document.ff.searchNo.value="";
}
document.ff.submit();
}
</script>
|