"; echo "


กรุณาทำการ Login ก่อน

"; echo ""; exit(); } else { /** Configuration */ header('Content-type: application/xls'); header('Content-Disposition: attachment; filename="testing.xls"'); require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../include/Function.php" ); /** Create Database Object */ $dbObj = new DBConn; $sql = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code' "; $result1 = mysql_query($sql); $rss = mysql_fetch_array($result1); /** Config Table for This Page */ $myTable = "history_decoration_tb"; $myTableFK = "Code"; $myOrderBy = "Year_receive"; $params = "Teacher_code=$Teacher_code"; /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 1000; } } # else ?> ข้อมูลการพัฒนาบุคลากร - ประวัติการรับพระราชทานเครื่องราชอิสริยาภรณ์บุคลากรทั้งหมด
execQuery($query); $numrows = $dbObj->_numrows; /** Paging */ $display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page']; $start = ( ($display * $limit) - $limit ); /** Paging */ if( isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable WHERE Teacher_code='$Teacher_code' ORDER BY $OrderBy $ASCDESC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable WHERE Teacher_code='$Teacher_code' ORDER BY $myOrderBy DESC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?>
ชื่อ-นามสกุล: 0 ) { ?> ตำแหน่งทางราชการปัจจุบัน:
ทั้งหมด: รายการ  
fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; $Teacher_code = $rs['Teacher_code']; /** จำนวนระเบียน */ $sql = " SELECT * FROM history_decoration_tb WHERE Teacher_code='$Teacher_code' " ; $result3 = $dbObj->execQuery($sql); $countnum = $dbObj->_numrows; $dbObj->freeresult($result3); $sum += $countnum; ?>
No ปีที่ได้รับ ชั้นเครื่องราชฯ เล่มที่ ตอนที่ หน้า ลำดับที่
 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>