"; 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 = "salary_repot_tb"; $myTablePK = "Start_mont"; //=== salary_repot_tb $query = " SELECT * FROM $myTable WHERE Start_year='$Start_year' GROUP BY $myTablePK ORDER BY $myTablePK ASC "; $result = $dbObj->execQuery($query); $num = $dbObj->_numrows; } # else ?> ข้อมูลสำหรับผู้บริหาร : รายงานงบค่าใช้จ่ายประเภทต่างๆ -<?=$_Config_sitename;?> ข้อมูลเงินเดือนบุคคลรายเดือน
หน้าหลัก » รายงานประเภทต่างๆ » ข้อมูลเงินเดือนบุคคล จำแนกตามรายเดือน
 
fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; $query2 = " SELECT * FROM month_tb WHERE monthCode='$rs[Start_mont]' "; $result2 = $dbObj->execQuery($query2); $rs2 = $dbObj->fetchArray($result2); $countnum2 = $dbObj->_numrows; $query3 = " SELECT * FROM salary_repot_tb WHERE Start_mont='$rs[Start_mont]' AND Start_year='$Start_year' "; $result3 = $dbObj->execQuery($query3); $rs3 = $dbObj->fetchArray($result3); $countnum3 = $dbObj->_numrows; ?>
แสดงข้อมูลเงินเดือนบุคคลรายเดือน ปี
No เดือน สรุปยอดเงินรายเดือน จำนวนรายการทั้งหมด
ทั้งหมด เดือน

"; // Fetch all factory records $strQuery111 = " SELECT * FROM $myTable WHERE Start_year='$Start_year' GROUP BY $myTablePK ORDER BY $myTablePK ASC "; $result111 = mysql_query($strQuery111); //Iterate through each factory if ( $result111 ) { while( $rs111 = mysql_fetch_array($result111) ) { $query112 = " SELECT * FROM month_tb WHERE monthCode='$rs111[Start_mont]' "; $result112 = mysql_query($query112); $rs112 = mysql_fetch_array($result112); $strQuery222 = " SELECT * FROM salary_repot_tb WHERE Start_mont='$rs111[Start_mont]' AND Start_year='$Start_year' "; $result222 = mysql_query($strQuery222); $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($result2); $dbObj->freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>