Viewing file: PersonalComList.php (12.36 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" );
/** Chart */
include ("../includes/charts.php");
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "committee_tb";
$myTableFK = "Year_com";
$myTableGroup = "Teacher_code";
/** Parameters */
$params = "Year_com=$Year_com";
/** Table --> personal_tb */
/*
$query = " SELECT * FROM $myTable WHERE Year_std='$Year_std' ORDER BY Date_start DESC ";
$result = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
*/
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
} # else
?>
ข้อมูลการพัฒนาบุคลากร - ข้อมูลการเป็นกรรมการวิชาการแก่สังคมของอาจารย์ ปี พ.ศ. =$Year_com;?>
|
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 Year_com='$Year_com' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable WHERE Year_com='$Year_com' ORDER BY $myTableFK DESC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |