Viewing file: PMS105.php (12.52 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
include( "../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 */
$myTable = "project_plan";
$myTableFK = "pp.proId ";
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
/** Botton Name Action */
$action = $_REQUEST['action'];
$id = $_REQUEST['id'];
$param = "Budget_Year=$Budget_Year";
} # 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 *, pp.Project_plan as Project_plan FROM project_plan pp, project_type_tb ptt Where pp.Budget_Year='$Budget_Year' and ptt.proId=pp.proId GROUP BY pp.proId ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT *, pp.Project_plan as Project_plan FROM project_plan pp, project_type_tb ptt Where pp.Budget_Year='$Budget_Year' and ptt.proId=pp.proId GROUP BY pp.proId ORDER BY $myTableFK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
| |