"; echo "


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

"; echo ""; exit(); } else { /** Check Session User Login */ /** Configuration */ require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../includes/Function.php" ); /** Chart */ include ("../includes/charts.php"); /** Create Database Object */ $dbObj = new DBConn; /** Config Table for This Page */ $myTable = "projectstdplan_tb"; $myTablePK = "Budget_Year"; $myTable2 = "project_type_tb"; $myTable2PK = "ProjectId"; $myTable3 = "project_tb"; $myTable3PK ="Project_code"; /* $queryUsr = " SELECT * FROM user_tb WHERE Username='$Username' "; $resultUsr = $dbObj->execQuery($queryUsr); $rss = $dbObj->fetchArray($resultUsr); */ //=== $query = " SELECT * FROM $myTable GROUP BY $myTablePK "; $result = $dbObj->execQuery($query); $num = $dbObj->_numrows; } # else ?> ข้อมูลแผนดำเนินงานและรายงาน
หน้าหลัก » แผนภูมิแสดงจำนวนเงินที่ตั้งตามแผนยุทธ์ศาตร์และแผนประจำรายปี งปม
‹ ย้อนกลับ
เลือกปีงบประมาณ '" /> '" /> '" />

"; // Fetch all factory records $strQuery = "SELECT Budget_Year FROM project_type_tb Where codeId !=0 GROUP BY $myTablePK"; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strXML .= ""; } # while $strXML .= ""; }# if mysql_free_result($result1); // Fetch all factory records $strQuery = "SELECT Budget_Year FROM project_type_tb Where codeId !=0 GROUP BY $myTablePK"; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strQuery2 = "SELECT SUM(Budget_total) AS SumB1 FROM project_type_tb WHERE Budget_Year='$Budget_Year' and codeId ='1''"; $result2 = mysql_query($strQuery2); $rs2 = mysql_fetch_array($result2); mysql_free_result($result2); $strXML .= ""; } # while $strXML .= ""; } # if mysql_free_result($result1); // Fetch all factory records $strQuery = "SELECT Budget_Year FROM project_type_tb Where codeId !=0 GROUP BY $myTablePK"; $result1 = mysql_query($strQuery); //Iterate through each factory if( $result1 ) { $strXML .= ""; while( $rs1 = mysql_fetch_array($result1) ) { $Budget_Year = $rs1['Budget_Year']; $strQuery3 = " SELECT SUM(Budget_total) AS SumB2 FROM project_type_tb WHERE Budget_Year='$Budget_Year' and codeId='2' "; $result3 = mysql_query($strQuery3); $rs3 = mysql_fetch_array($result3); $numAmt3 = mysql_num_rows($result3); mysql_free_result($result3); $strXML .= ""; } # while $strXML .= ""; } # if mysql_free_result($result1); //Finally, close element $strXML .= ""; //Create the Multi-series Line Chart with data from strXML echo renderChart("./charts/MSLine.swf", "", $strXML, "", 750, 375, false, false); ?>

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