Viewing file: printSetPsDept.php (2.83 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsPerson.php";
include_once "../link/function.php";
include_once "../link/keyThai.php";
include_once "../class/clspsdept.php";
include_once "getPrefix.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);
$oPSd = new psdept($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="?mm=1">จัดการข้อมูลบุคลากรและโครงสร้าง</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="setPsDept.php">กำหนดผู้ใช้ทั่วไป(รอง)</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">สรุปข้อมูลการกำหนดผู้ใช้ทั่วไป
</font></legend>
<form name="ff" target="_blank">
<table width="70%" align="center">
<tr align="center">
<td align="center" colspan="2">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<?
$oDP->SearchBydeptDateDocGroup($maxdocgroup);
while($oDP->GetRecord()){
?>
<td colspan="8" height="22" ><? //bgcolor=<? echo $GLOBALS["COLOR_BG_TD_7"]; ?> <strong><? echo $oDP->deptName; ?></strong></td></tr>
<? $i=0;
$oPSd->SearchBydeptId($oDP->deptId);
while($oPSd->GetRecord()){
$oPS->SearchByKey($oPSd->personId); $oPS->GetRecord();
?>
<td colspan="8" height="22" bgcolor=<? echo $GLOBALS["COLOR_BG_TD_11"]; ?>> <? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td></tr>
<? $i++;}
if($i==0){ echo "<td align=center bgcolor=".$GLOBALS["COLOR_BG_TD_11"]." height=22>-</td></tr>"; }
}?>
</table>
</td></tr>
<tr><td align="center" colspan="2"><input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'setPsDept.php'"></td></tr>
</table>
</form>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<script>
function printDetailFollowDocDept(p,q){
FileName = "printRepFollowDocDeptDetail.php?DocID="+p+"&DrsID="+q;
var w=600;
var h=600;
strOption = "scrollbars=yes,left=300,top=100,width=" + w + ",height=" + h;
window.open(FileName,"",strOption);
}
</script>
|