"; echo "


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

"; echo ""; exit(); } else { /** Configuration */ require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../include/Function.php" ); /** Chart */ //include ("../includes/charts.php"); /** Create Database Object */ $dbObj = new DBConn; /** Config Table for This Page */ $myTable1 = "personal_tb"; $myTable2 = "history_absent_tb"; $Username = $valid_user; //=== personal_tb $query1 = " SELECT * FROM $myTable1 WHERE Username='$Username' "; $result1 = $dbObj->runQuery($query1); $rs1 = $dbObj->fetchArray($result1); $Teacher_code = $rs1['Teacher_code']; //=== salary_repot_tb $query = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' AND Year='$Year' "; $result = $dbObj->execQuery($query); $rs = $dbObj->fetchArray($result); } # else ?> ข้อมูลประวัติส่วนตัว - ประวัติข้อมูลการลารายปี
หน้าหลัก » ข้อมูลประวัติส่วนตัว » ข้อมูลการลารายปี » ประวัติข้อมูลการลารายปี
 
ประวัติการลา อาจารย์     ประจำปีงบประมาณ
execQuery($sql2); $num01 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลากิจข้อมูลลากิจ ยังไม่ข้อมูล'; elseif( $num01 > 0 ) echo ''. $num01 .' ระเบียน'; ?>
execQuery($sql2); $num02 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลาป่วยข้อมูลลาป่วย ยังไม่ข้อมูล'; elseif( $num02 > 0 ) echo ''. $num02 .' ระเบียน'; ?>
execQuery($sql2); $num03 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลาพักผ่อนข้อมูลลาพักผ่อน ยังไม่ข้อมูล'; elseif( $num03 > 0 ) echo ''. $num03 .' ระเบียน'; ?>
execQuery($sql2); $num04 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลาคลอดข้อมูลลาคลอด ยังไม่ข้อมูล'; elseif( $num04 > 0 ) echo ''. $num04 .' ระเบียน'; ?>
execQuery($sql2); $num05 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลาอุปสมบทข้อมูลลาอุปสมบท ยังไม่ข้อมูล'; elseif( $num05 > 0 ) echo ''. $num05 .' ระเบียน'; ?>
execQuery($sql2); $num06 = $dbObj->_numrows; ?> 0 ) { ?>ข้อมูลลาปฏิบัติธรรมข้อมูลลาปฏิบัติธรรม ยังไม่ข้อมูล'; elseif( $num06 > 0 ) echo ''. $num06 .' ระเบียน'; ?>
freeresult($result); $dbObj->freeresult($result1); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>