| Viewing file:  sendReceiveDoc_c.php (6.15 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>
 <table  width="100%"  align="center">
 <tr><td >
 <fieldset>
 <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendReceiveDoc_c.php">การติดตามหนังสือรับอิเล็กทรอนิกส์</a>
 </font></legend>
 <form name="ff"  METHOD="POST" action="processReSendDocSR.php">
 <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>
 <?
 
 $oTsr->SearchBytsr_to_node($COLLEGEID);
 $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_to_node_date !="0000-00-00 00:00:00"){
 list($DocD,$DocT) = split(' ',$oTsr->tsr_to_node_date );
 echo abbreDate2($DocD,'/')."<br>".a2th($DocT);
 }
 ?></td>
 <td align="left"> <? echo $oTsr->tsr_DocSubject;  ?></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); ?>
 </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>
 </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>
 |