Viewing file: AllResearch.php (12.4 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( $_Config_absolute_path . "/include/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "research_tb";
$myTablePK = "Year_finish";
//$query = " SELECT Teacher_code,First_name,Teacher_name,Teacher_lastname,Faculty_code FROM personal_tb WHERE ResearchId ='$ResearchId' ";
// $result0 = $dbObj->execQuery($query);
// $rss = $dbObj->fetchArray($result0);
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
//** Where Condition */
$WHERE1 = "Year_prop=$Year_prop";
//** Parameter */
$param = "Year_prop=$Year_prop";
} # else
?>
=$_Config_sitename;?> - ข้อมูลงานวิจัย - ข้อมูลงานวิจัยตามรายบุคคล
|
execQuery($query);
$numrows = $dbObj->_numrows;
//echo $query;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page'];
$start = ( ($display * $limit) - $limit );
/** Paging */
if( isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable WHERE collegeCode='$collegeCode' and academic_year_finish='$academic_year_finish' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable WHERE collegeCode='$collegeCode' and academic_year_finish='$academic_year_finish' ORDER BY $myTablePK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
| |