Viewing file: DetailRepPlaning.php (16.31 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( "../include/Function.php" );
require_once( "../link/function.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "project_tb";
$myTablePK = "ProjectId";
//===
$query = " SELECT * FROM $myTable WHERE Budget_Year='$Budget_Year' AND Faculty_code='$Faculty_code' AND ProjectId='$ProjectId' ";
$result0 = $dbObj->execQuery($query);
$rs0 = $dbObj->fetchArray($result0);
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
/** Parameters */
$params = "ProjectId=$ProjectId&Orderlist=$Orderlist&Project_code=$Project_code&Faculty_code=$Faculty_code&Budget_Year=$Budget_Year";
} # else
?>
ข้อมูลแผนดำเนินงานและรายงาน : แสดงรายงานการใช้เงินตามแผนโครงการ
|
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 ProjectId='$ProjectId' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable WHERE ProjectId='$ProjectId' ORDER BY $myTablePK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |