"; 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 */ $myTable = "history_absent_tb"; $myTablePK = "Year"; //=== history_absent_tb $query = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code' "; $result0 = $dbObj->execQuery($query); $rs = $dbObj->fetchArray($result0); } # else ?> ข้อมูลสำหรับผู้บริหาร : รายงานเกี่ยวกับวันลา - ข้อมูลประวัติการลา
หน้าหลัก » ข้อมูลสำหรับผู้บริหาร » ข้อมูลประวัติการลา
 
execQuery($query); $num = $dbObj->_numrows; ?> fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?>
แสดงข้อมูลการลารายปี  
ปีงบประมาณ จำนวนรายการทั้งหมด
execQuery($query2); $countnum = $dbObj->_numrows; $dbObj->freeresult($result2); echo $countnum; ?> ระเบียน
ทั้งหมด ปี

"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable WHERE Teacher_code='$Teacher_code' GROUP BY $myTablePK "; $result111 = $dbObj->execQuery($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = $dbObj->fetchArray($result111) ) { $strQuery = " SELECT * FROM history_absent_tb WHERE Teacher_code='$Teacher_code' AND Year='$rs111[Year]' "; $result222 = $dbObj->execQuery($strQuery); $numAmt = $dbObj->_numrows; $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("../charts/Column3D.swf", "", $strXML, "", 750, 375, false, false); ?>

 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>