Viewing file: printDocLineConfigforDeptex.php (4.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php header('Content-type: application/xls'); header('Content-Disposition: attachment; filename="printDocLineConfigforDeptex.xls"'); 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 "functforRptEx.php"; include_once "../class/clsDocLinePosition.php"; include_once "../class/clsDocLineConfig.php"; include_once "../link/keyThai.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); $oDlc = new DocLineConfig($oC); $oDlp = new docLinePosition($oC); $oDlp2 = new docLinePosition($oC);
?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> </head> <title>รายงานลำดับหน้าที่งานสารบรรณของบุคคล</title> <body> <iframe id="addConfig" name="addConfig" src="" style="width:0px;height:0px;border:0"></iframe> <br><br> <table width="95%" align="center"> <tr> <td align="center"><b>รายงานลำดับหน้าที่งานสารบรรณของบุคคล สรุป ณ วันที่ <?php echo abbreDate2((date('Y')+543).'-'.date('m').'-'.date('d')); ?></b></td> </tr> <tr><td> </td></tr> <tr><td height="22" align="left"><font size="2"><strong>หน่วยงาน :: </strong><? echo $deptname; ?></font></td></tr> <tr><td height="22" align="left"><font size="2" ><strong>สถานะการใช้งาน :: </strong> <? if($oDlc->SearchDeptconfirm($deptId)=="Y"){ echo "ยืนยันการใช้งานแล้ว"; }else{ echo "ยังไม่ยืนยันการใช้งาน"; } ?> </font></td></tr> <tr><td > <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse"> <tr > <td width="4%" align="center"><strong>ลำดับ</strong></td> <td width="24%" align="center"><strong>ตำแหน่ง</strong></td> <td align="center" ><strong>บุคลากร</strong><strong></strong></td> <td width="8%" align="center"><strong>เสนอ<br>ลงนาม</strong></td> <td width="5%" align="center"><strong>ลงนาม</strong></td> <td width="5%" align="center"><strong>ส่งผ่าน</strong></td> <td width="4%" align="center"><strong>ส่ง</strong></td> <td width="10%" align="center"><strong>ดูเส้นทาง<br> เดินหนังสือ</strong></td> <td width="6%" align="center"><strong>active</strong></td> </tr> <? $oDlc->SearchByDeptMaxDocGroup($deptId,$oDP2->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="24%" align="left"><? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td> <td align="center"><? if($oDlc->DlcPropose=="Y"){ echo "/"; }?></td> <td align="center"><? if($oDlc->DlcSign=="Y"){ echo "/"; }?></td> <td align="center"><? if($oDlc->DlcByPass=="Y"){ echo "/"; }?></td> <td align="center"><? if($oDlc->DlcSend=="Y"){ echo "/"; }?></td> <td align="center"><? if($oDlc->DlcView=="Y"){ echo "/"; }?> </td> <td align="center"><? if($oDlc->DlcActive=="Y"){ echo "/"; }?></td> </tr> <? $i++; } ?> </table></td></tr> </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>
|