"; 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 = "salary_repot_tb"; $myTable2PK = "Start_year"; $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='$rs1[Teacher_code]' GROUP BY $myTable2PK "; $result = $dbObj->execQuery($query); $num = $dbObj->_numrows; /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 10; } } # else ?> ข้อมูลประวัติส่วนตัว - ข้อมูลประวัติเงินเดือน แสดงรายปี
หน้าหลัก » ข้อมูลประวัติส่วนตัว » ประวัติเงินเดือน รายเดือน » ข้อมูลประวัติเงินเดือน แสดงรายปี
 
fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?>
ข้อมูลประวัติเงินเดือน แสดงรายปี อาจารย์  
ปีงบประมาณ จำนวนรายการทั้งหมด
&Start_year=" title=" Click to more detail "> execQuery($query2); $countnum = $dbObj->_numrows; $dbObj->freeresult($result2); echo $countnum; ?>
ทั้งหมด ปี

"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable2 WHERE Teacher_code='$Teacher_code' GROUP BY $myTable2PK "; $result111 = mysql_query($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = mysql_fetch_array($result111) ) { $strQuery = " SELECT * FROM salary_repot_tb WHERE Teacher_code='$Teacher_code' AND Start_year='$rs111[Start_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/Column3D.swf", "", $strXML, "", 750, 375, false, false); ?>

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