Viewing file: historyDoc.php (4.11 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 "../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);
$oDP2 = 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>
<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">ประวัติงานสารบรรณก่อนใช้โครงสร้างปัจจุบัน</font>
</legend>
<br>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<form name="ff" method="post">
<tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong>
เลือกค้นหาข้อมูล</strong></font></td></tr>
<tr><td>
<?
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord();
$oDlp->SearchByKey($oDlc->DlpID); $oDlp->GetRecord();
$oDP1->SearchByKey($oDlc->deptId); $oDP1->GetRecord();
?>
</td></tr>
<tr><td colspan="6">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<? if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $oDlp->GpID=="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>
<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 colspan="6" height="22"><hr color="#000099"></td>
</tr>
<tr><td align="center"><input name="d" type="button" value="กลับหน้าหลัก" onClick="location.href = '?mm=1'"></td></tr>
<input name="DocGroup" type="hidden" value="<? echo $oDlc->docGroup; ?>">
</table>
</td></tr>
</form>
</table>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function radioSelectType(val){
document.getElementById('RPtype').value=val;
}
function radioSelectVal(val){
document.getElementById('selectVal').value=val;
}
function selecthistoryDoc(){
document.gg.submit();
}
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="searchRepHisFollowDoc.php";
}else if(p==4){
document.ff.action="searchRepHisFollowDocDept.php";
}
document.ff.submit();
}
</script>
|