"; echo "


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

"; echo ""; exit(); } else { /** Configuration */ include( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../includes/Function.php" ); require_once( "../includes/FunctionDB.php" ); /** Create Database Object */ $dbObj = new DBConn; /** Chart */ include ("../includes/charts.php"); /** Config Table for This Page */ $myTable = "faculty_tb"; $myTableFK = "Faculty_code"; $myTable1 = "personal_tb"; /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 50; } $param = ""; } # else ?> <?=$_Config_sitename;?> - ข้อมูลฝ่ายวิชาการ - รายชื่อภาค/ฝ่าย
execQuery($query); $numrows = $dbObj->_numrows; /** Paging */ $display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page']; $start = ( ($display * $limit) - $limit ); /** Paging */ if( isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable WHERE FacultyStatus ='Y' ORDER BY $OrderBy $ASCDESC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable WHERE FacultyStatus ='Y' ORDER BY $myTableFK ASC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?>
หน้าหลัก » ข้อมูลสรุปสถานะบุคลากร » รายชื่อภาค/ฝ่าย
 
‹ ย้อนกลับ
ทั้งหมด: รายการ จำนวนข้อมูลต่อหน้า
0 ) { ?>
จำนวนบุคลากร จำแนกตามหน่วยงาน
fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; $Faculty_code = $rs['Faculty_code']; ?>
รหัส
หน่วยงาน
ชื่อหน่วยงาน จำนวน
ข้าราชการ
จำนวน
ลูกจ้างประจำ
จำนวน
ลูกจ้างชั่วคราว
จำนวน
บุคลากรทั้งหมด
execQuery($sql); $num1 = $dbObj->_numrows; $dbObj->freeresult($result1); echo $num1; ?> execQuery($sql); $num3 = $dbObj->_numrows; $dbObj->freeresult($result3); echo $num3; ?> execQuery($sql); $num4 = $dbObj->_numrows; $dbObj->freeresult($result4); echo $num4; ?> execQuery($sql); $num5 = $dbObj->_numrows; $dbObj->freeresult($result5); echo $num5; ?>
รวมทั้งสิ้น execQuery($sql); $num1 = $dbObj->_numrows; $dbObj->freeresult($result1); echo $num1; ?> execQuery($sql); $num3 = $dbObj->_numrows; $dbObj->freeresult($result3); echo $num3; ?> execQuery($sql); $num4 = $dbObj->_numrows; $dbObj->freeresult($result4); echo $num4; ?> execQuery($sql); $num5 = $dbObj->_numrows; $dbObj->freeresult($result5); echo $num5; ?>
 
"; // Fetch all factory records $strQuery = " SELECT * FROM $myTable1 GROUP BY Faculty_code "; $result111 = $dbObj->execQuery($strQuery); //Iterate through each factory if ($result111) { while( $rs111 = $dbObj->fetchArray($result111) ) { $query112 = " SELECT * FROM $myTable WHERE Faculty_code='$rs111[Faculty_code]' "; $result112 = $dbObj->execQuery($query112); $rs112 = $dbObj->fetchArray($result112); $strQuery3 = " SELECT * FROM $myTable1 WHERE StatusId='1' AND Faculty_code='$rs111[Faculty_code]' "; $result3 = $dbObj->execQuery($strQuery3); $numAmt3 = $dbObj->_numrows; $dbObj->freeresult($result3); $strXML .= ""; } # while } # if //Finally, close element $strXML .= ""; //Create the chart - Pie 3D Chart with data from strXML echo renderChart("../charts/Column3D.swf", "", $strXML, "", 760, 375, false, false); ?>
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>