Viewing file: planFucMission.php (17.07 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../includes/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "project_type_tb";
$myTable3 = "project_plan";
$myTable2PK = "Orderlist";
/** Table --> projectstdplan_tb */
$query = " SELECT * FROM $myTable3 WHERE Budget_Year='$Budget_Year' AND subId ='$subId' AND codeId='$codeId' and Faculty_code='$Faculty_code' ORDER BY Orderlist ASC ";
$result3 = $dbObj->execQuery($query);
$rs3 = $dbObj->fetchArray($result3);
$num3 = $dbObj->_numrows;
//echo $num01;
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 20; }
/* Parameters **/
$params = "Budget_Year=$Budget_Year&Faculty_code=$Faculty_code&subId=$subId&codeId=$codeId";
} # else
?>
ข้อมูลแผนดำเนินงานและรายงาน : ข้อมูลแผนดำเนินการ - รายละเอียดแผนดำเนินการ
|
execQuery($query);
$numrows = $dbObj->_numrows;
//echo $numrows;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page'];
$start = ( ($display * $limit) - $limit );
/** Paging */
if( isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable2
WHERE Budget_Year='$Budget_Year' AND subId='$subId' and codeId='$codeId' and Faculty_code='$Faculty_code' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable2
WHERE Budget_Year='$Budget_Year' AND subId='$subId' and codeId='$codeId' and Faculty_code='$Faculty_code' ORDER BY $myTable2PK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
| |