Viewing file: printRunningDocex.php (4.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php header('Content-type: application/xls'); header('Content-Disposition: attachment; filename="printRunningDocex.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/clsDocType.php"; include_once "../class/clsRunningDoc.php"; include_once "funct.php"; include_once "../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC); $oDt = new doctype($oC); $oRd = new runningdoc($oC); $InputThai=$oSys->SearchByInputThai(); $maxgroup=$oDP->SearchMaxDocGroup(); $oRd->SearchByconfirmRunAll($maxgroup); $oRd->GetRecord(); $confirm=$oRd->confirm; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> </head> <body> <br> <table width="95%" align="center"> <tr> <td align="center"><b>รายงานเลขทะเบียนหนังสือราชการที่ใช้ร่วมกัน</b></td> </tr> <tr><td> </td></tr> <tr> <td> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse"> <tr height="22"> <td width= "23%" align="center"><font size="2"><strong>ทะเบียนหนังสือ</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>เริ่มต้น</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>ปัจจุบัน</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>เริ่มต้น</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>ปัจจุบัน</strong></font></td> <td width="12%" align="center"><font size="2"><strong>เลขที่เริ่มต้น<br> </strong></font></td> <td width="12%" align="center"><font size="2"><strong>เลขที่<br>ปัจจุบัน</strong></font></td> </tr> <? $oDt->RSdoctypeDtRunAll(); while($oDt->GetRecord()){ if($oDt->DtP=="1"){ echo "<tr height=22><td colspan=7 align=\"left\"> "; if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " - "; } echo "ทะเบียน".$oDt->DtName; if($oDt->DtPDtID=="0"){ echo "<strong></td></tr>"; } }else{ $oRd->SearchBydocGroupDtIDdocNoMixY($maxgroup,$oDt->DtID); $oRd->GetRecord(); ?> <tr height=22> <td align="left"> <? if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " - "; } ?>ทะเบียน<? echo $oDt->DtName; if($oDt->DtPDtID=="0"){ echo "<strong>"; } ?></td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <? if($confirm=="Y"){ if($oRd->receiveNoStart!=0){ echo a2th($oRd->receiveNoStart); } }else{ echo " "; }} ?> </td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <? if($confirm=="Y"){ if($oRd->receiveNoStart!=0){ if($oRd->receiveNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->receiveNo); } } }else{ if($oRd->receiveNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->receiveNo); } } }?> </td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <? if($confirm=="Y"){ if($oRd->sendNoStart!=0){ echo a2th($oRd->sendNoStart); } }else{ echo " "; }} ?> </td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <? if($confirm=="Y"){ if($oRd->sendNoStart!=0){ if($oRd->sendNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->sendNo);} } }else{ if($oRd->sendNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->sendNo); } } }?></td> <td align="center"> <? if($oDt->forRegis!="Y"){ echo "-"; }else{ ?> <? if($confirm=="Y"){ if($oRd->regisNoStart!=0){ echo a2th($oRd->regisNoStart); } }else{ echo " ";?> <? } } ?> </td> <td align="center"><? if($oDt->forRegis!="Y"){ echo "-"; }else{ ?><? if($confirm=="Y"){ if($oRd->regisNoStart!=0){ if($oRd->regisNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->regisNo); } } }else{ if($oRd->regisNo=='0'){ echo "ยังไม่มี<br>การใช้งาน"; }else{ echo a2th($oRd->regisNo); } } ?><? } ?></td> </tr> <? } //show } //while ?> </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>
|