"; 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 $query0 = " SELECT * FROM $myTable1 WHERE Username='$Username' "; $result0 = $dbObj->runQuery($query0); $rs0 = $dbObj->fetchArray($result0); $Teacher_code = $rs0['Teacher_code']; //=== salary_repot_tb $query = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' GROUP BY Year "; $result = $dbObj->execQuery($query); $num = $dbObj->_numrows; } # else ?> ข้อมูลประวัติส่วนตัว - ประวัติข้อมูลการลารายปี
หน้าหลัก » ข้อมูลประวัติส่วนตัว » ประวัติข้อมูลการลารายปี
 
"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' GROUP BY Year "; $result111 = mysql_query($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = mysql_fetch_array($result111) ) { $strQuery = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' AND Year='$rs111[Year]' "; $result222 = mysql_query($strQuery); $numAmt = mysql_num_rows($result222); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("../charts/Pie3D.swf", "", $strXML, "", 650, 375, false, false); ?>
 
fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?>
ปีงบประมาณ แสดงข้อมูลการลารายปี อาจารย์   จำนวนรายการทั้งหมด
execQuery($query2); $countnum = $dbObj->_numrows; $dbObj->freeresult($result2); echo $countnum; ?>
ทั้งหมด ปี

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