Viewing file: MIO106.php (11.29 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 */
$myTable = "edu_service_tb";
$myTableFK = "Date_start";
/** Parameters */
//$params = "Status=2";
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
/** โฟลเดอร์ไฟล์เอกสาร */
$doc_path = $_Config_live_site."/Project_pic";
/** Parameters */
$params ="M21=$M21&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 edu_integration et , edu_service_tb es WHERE es.outreacId= et.outreacId and et.Research_code='$Research_code' and et.outreacId ='$outreacId' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM edu_integration et , edu_service_tb es WHERE es.outreacId= et.outreacId and et.Research_code='$Research_code' and et.outreacId ='$outreacId' ORDER BY $myTableFK DESC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |