Viewing file: printDocLineConfig.php (3.17 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once("../../class/clsDB.php");
include_once "../global.php";
include_once "../class/clsTable.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsPerson.php";
include_once "../link/function.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocLineConfig.php";
include_once "../link/keyThai.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);
$oDlc = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
?>
<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>
<? $oDP->SearchBydeptDateDocGroup($oDP->SearchMaxDocGroup());
while($oDP->GetRecord()){
?>
<table width="70%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr><td colspan="8" height="26" align="left"><strong><? echo "หน่วยงาน :: $oDP->deptName"; ?></strong></td></tr>
<tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>">
<td width="4%" align="center"><strong>ลำดับ</strong></td>
<td width="22%" align="center"><strong>ตำแหน่ง</strong></td>
<td colspan="2" align="center" ><strong>บุคลากร</strong><strong></strong></td>
<td width="9%" align="center"><strong>เสนอเซ็น</strong></td>
<td width="7%" align="center"><strong>ลงนาม</strong></td>
<td width="7%" align="center"><strong>ส่งผ่าน</strong></td>
<td width="4%" align="center"><strong>ส่ง</strong></td>
<td width="9%" align="center"><strong>ดู<br>
หนังสือ</strong></td>
</tr>
<?
$oDlc->SearchByDeptMaxDocGroup($oDP->deptId,$oDP->SearchMaxDocGroup());
$i=0;
while($oDlc->GetRecord()){?>
<tr>
<td align="center"><? echo a2th($oDlc->DlcSeq); ?></td>
<td align="left" >
<? $oDlp->SearchByKey($oDlc->DlpID);
$oDlp->GetRecord();
echo " ".$oDlp->DlpName; ?>
</td>
<? $oPS->SearchByKey($oDlc->personId); $oPS->GetRecord();?>
<td width="28%" align="left"><? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td>
<td width="2%" align="center" > </td>
<td align="center"><input type="checkbox" name="DlcPropose" value="1" <? if($oDlc->DlcPropose=="1"){ echo "checked"; }?> ></td>
<td align="center"><input type="checkbox" name="DlcSign" value="1" <? if($oDlc->DlcSign=="1"){ echo "checked"; }?> ></td>
<td align="center"><input type="checkbox" name="DlcByPass" value="1" <? if($oDlc->DlcByPass=="1"){ echo "checked"; }?> ></td>
<td align="center"><input type="checkbox" name="DlcSend" value="1" <? if($oDlc->DlcSend=="1"){ echo "checked"; }?> ></td>
<td align="center"><input type="checkbox" name="DlcView" value="1" <? if($oDlc->DlcView=="1"){ echo "checked"; }?> ></td>
</tr>
<? $i++; } //get doclineconfig
$count=$oDlc->DlcSeq; ?>
</table>
<br>
<? } //dept?>
</body>
</html>
|