Viewing file: printDetailStatusDoc.php (4.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
include_once "../link/function.php";
include_once "../link/functionshow.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocuments.php";
include_once "funct.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocReceiveSend.php";
include_once "../class/clsPerson.php";
include_once "../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDt = new doctype($oC);
$oDoc = new Documents($oC); //
$oDoc2 = new Documents($oC); //
$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oPS = new person($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
?>
<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="checkStatusDoc.php">µÃǨÊͺàÊé¹·Ò§¡ÒÃÊè§Ë¹Ñ§Ê×Í</a>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ÃÒÂÅÐàÍÕ´àÊé¹·Ò§¡ÒÃÊè§Ë¹Ñ§Ê×Í</font>
</font></legend>
<form name="ff" target="_blank">
<table width="99%" align="center">
<tr align="center">
<td align="center" colspan="2">
<table width="90%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">
<td width="10%" align="center"><strong>·Õè</strong></td>
<td width="25%" align="center"><strong>·Õè˹ѧÊ×Í</strong></td>
<td width="40%" align="center"><strong> àÃ×èͧ</strong></td>
<td width="15%" align="center"><strong>Çѹ·Õèŧ·ÐàºÕ¹</strong></td>
<?
if($yearDoc == 0){
list($dd, $mm, $yy) = split('[/]',$start);
$start=($yy+543)."-".$mm."-".$dd;
list($dd, $mm, $yy) = split('[/]',$end);
$end=($yy+543)."-".$mm."-".$dd;
}else{
$yy = $yearDoc;
$start = $yy."-01-01";
$end = $yy."-12-31";
}
$oDoc->SearchByDocTypeNoDocSubjectDocNoDeptIdfDeleteDocPID0($DocTypeNoStart,$DocTypeNoEnd,$DocSubject,$DocNo,$start,$end,$checkselectDate);
while($oDoc->GetRecord()){
if(($i%2) == 0)
echo "<tr bgcolor=\"#FFFFFF\" height=22 >";
else
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_17"]."\">";
?>
<td align="center"><? echo $oDoc->DocTypeNo; ?></td>
<td> <? echo $oDoc->DocNo; ?></td>
<td > <a onClick = "showline('<? echo $oDoc->DocID;?>')" style="cursor:pointer;"><? echo "<br> ".$oDoc->DocSubject; ?></a></td>
<?php
list($DocD,$DocT) = split(' ',$oDoc->DocDateCreate);?>
<td align="center"><? echo abbreDate2($DocD,'/')."<br>".a2th($DocT); ?></a></td>
<? $i++;
}
if($i==0){
?>
<tr><td colspan="4" align="center">äÁ辺ÃÒ¡ÒÃ˹ѧÊ×Í·Õè¤é¹ËÒ</td></tr>
<? } ?>
</table>
</td></tr>
<tr><td align="center" colspan="2"><input type="button" name="cancel" value="¡ÅѺ˹éÒËÅÑ¡" onClick="location.href = 'checkStatusDoc.php'"></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">
<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>
<script>
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);
}
</script>
|