Viewing file: printConfigDeptHTML.php (3.53 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 "../class/clsWorkGroup.php"; include_once "../link/function.php"; include_once "funct.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); $oWG = new workGroup($oC); $oWG2 = new workGroup($oC); $maxdate = $oDP3->MaxDate(); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> </head> <title>รายงานกำหนดสิทธิ์ในการรับ-ส่งหนังสือภายนอก-ภายใน</title> <body><br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" > <tr><td align="center"><b>กำหนดสิทธิ์ในการรับ-ส่งหนังสือภายนอก-ภายใน</b></td></tr> <tr> <td valign="top"><br> <label><div align="center"> <? $oT = new clsTable(array(" หน่วยงานภายใน ","รับ-ภายนอก<br>(ส่วนราชการ)","ส่ง-ภายนอก<br>(ส่วนราชการ)","รับ-ภายใน","ส่ง-ภายใน")); $oT->borderColor="#000000"; $oT->border="1"; $oT->cellSpacing="0"; $oT->cellPadding="0"; $oT->align="center"; $oT->width="100%"; $oT->height="22"; $oT->headerBgColor="#ffffff"; $oDP2->searchdeptDate($maxdate); $rw=0; while ($oDP2->GetRecord()){ ShowDeptM($oDP2->deptId); } $oT->rowStart("","#ffffff"); $oT->rowEnd();
echo $oT->output(); ?> </div></td> </tr> <tr><td> </td></tr> <tr> <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">วันที่พิมพ์ : <?php echo abbreDate2((date('Y')+543).'-'.date('m').'-'.date('d')).' '.a2th(date('H:i:s'));?></font></td> </tr> </table> </body> </html> <? function ShowDeptM($deptId){ global $oC; global $oT; global $Str; global $rw;
$oPS = new person($oC); $oDp = new Department($oC); $oDp->SearchByKey($deptId); $oDp->GetRecord();
if ($oDp->deptLevel%2==0){ $bs="<b>"; $be="</b>"; } $lv = $oDp->deptLevel+1; $showreceiveOut=" "; $showsendOut=" "; $showreceiveIn=" "; $showsendIn=" "; if($oDp->receiveOut=="Y"){ $showreceiveOut="<img src=../picture/use-gray.gif border=0>";} if($oDp->sendOut=="Y"){ $showsendOut="<img src=../picture/use-gray.gif border=0>";} if($oDp->receiveIn=="Y"){ $showreceiveIn="<img src=../picture/use-gray.gif border=0>";} if($oDp->sendIn=="Y"){ $showsendIn="<img src=../picture/use-gray.gif border=0>";} $oT->addRow(array(str_repeat("<img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif>", $oDp->deptLevel*2). $bs ." ".$oDp->deptName. $be ,"<div align=center>".$showreceiveOut."</div>" ,"<div align=center>".$showsendOut."</div>" ,"<div align=center>".$showreceiveIn."</div>" ,"<div align=center>".$showsendIn."</div>")); $oDp->RSmenuByDeptParent3($deptId); while ($oDp->GetRecord()){ ShowDeptM($oDp->deptId); } }
?> <script language="javascript"> function checkFormat(){ document.ff.submit(); } </script>
|