Viewing file: selectMenuHistoryDoc.php (4.91 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once "../link/function.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDepartment.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDt = new doctype($oC);
$oDlc = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDP = new Department($oC);
$oDP1 = new Department($oC);
?>
<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>
<style>
/*
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; font-weight: bold; color: #000066}
-->
*/
</style>
<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>
</font>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle"><a href="historyDoc.php">ประวัติงานสารบรรณก่อนใช้โครงสร้างปัจจุบัน</a>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ค้นหาข้อมูล
</font>
</legend>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#DADADA" ><tr><? //echo $selectPosition."-".$selectPositionDeptID."-".$selectPositionN;?>
<? if($selectPositionN!="ผู้ใช้ทั่วไป"){
$oDlc->SearchByKey($selectPosition);
$oDlc->GetRecord();
$oDlp->SearchByKey($oDlc->DlpID);
$oDlp->GetRecord();
$oDP->SearchByKey($oDlc->deptId);
$oDP->GetRecord();
}else{
$oDP->SearchByKey($selectPositionDeptID);
$oDP->GetRecord();
$GpID="108";
}
?>
<td align="left" height="30"> <img src="../picture/reg.png" border="0"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"> <strong><? if($selectPosition==""){ echo "ผู้ใช้ทั่วไป"; }else{ echo $oDlp->DlpName; } echo " (".$oDP->deptName.")"; ?></strong></font></td>
</tr></table>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<form name="ff" method="post">
<? if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $GroupID=="115"){ ?>
<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
<img src="../picture/submenu_mini.gif" border="0">
<a href="#" onClick="selectRephistoryDoc(1)">รายงานทะเบียนหนังสือของวิทยาลัย</a></font></td></tr>
<? } ?>
<? if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $GpID=="108" || $GroupID=="115"){ ?>
<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
<img src="../picture/submenu_mini.gif" border="0">
<a href="#" onClick="selectRephistoryDoc(2)">รายงานทะเบียนหนังสือของวิทยาลัยแยกตามหน่วยงานย่อย</a></font></td></tr>
<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
<img src="../picture/submenu_mini.gif" border="0">
<a href="#" onClick="selectRephistoryDoc(3)">รายงานการติดตามหนังสือราชการ</a></font></td></tr>
<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
<img src="../picture/submenu_mini.gif" border="0">
<a href="#" onClick="selectRephistoryDoc(4)">รายงานการติดตามหนังสือที่กำหนดวันแล้วเสร็จ</a></font></td></tr>
<? } ?>
<tr><td align="center"><input name="d" type="button" value="กลับหน้าหลัก" onClick="location.href = 'historyDoc.php'"></td></tr>
<input name="selectPosition" type="hidden" value="<? echo $selectPosition; ?>">
<input name="selectPositionN" type="hidden" value="<? echo $selectPositionN; ?>">
<input name="selectPositionDeptID" type="hidden" value="<? echo $selectPositionDeptID; ?>">
<input name="DocGroup" type="hidden" value="<? echo $oDlc->docGroup; ?>">
</form>
</table>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function selectPosition() {
return true;
}
function radioSelectType(val){
document.getElementById('RPtype').value=val;
}
function radioSelectVal(val){
document.getElementById('selectVal').value=val;
}
function selectRephistoryDoc(p){
if(p==1){
document.ff.action="searchRepHisRegisDoc.php";
}else if(p==2){
document.ff.action="searchRepHisRegisDocDept.php";
}else if(p==3){
document.ff.action="cc.php";
}else if(p==4){
document.ff.action="ee.php";
}
document.ff.submit();
}
</script>
|