Viewing file: NatureByYear.php (13.1 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;
$sql3 = "Select Teacher_code,First_name,Teacher_name,Teacher_lastname,Faculty_code From personal_tb Where Teacher_code='$Teacher_code'";
$result2= mysql_query($sql3);
$rss = mysql_fetch_array($result2);
/** Config Table for This Page */
$myTable = "research_tb";
$myTable2PK = "Research_code";
$myOrderBy = "Year_finish";
$myTableField1 = "Research_name";
$myTableField2 = "Branch";
/** Parameters */
$params = "Research_char=$Research_char&fiscal_year_finish=$fiscal_year_finish";
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 200; }
} # else
?>
ข้อมูลงานวิจัยแยกตามรายบุคคล
|
execQuery($query);
$numrows = $dbObj->_numrows;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page'];
$start = ( ($display * $limit) - $limit );
/** Paging */
if( isset($_GET['OrderBy']) ) {
if( $keyword != "" ) { // ใส่ Keyword
$query = " SELECT * FROM research_tb rt, research_nature rn , research_public_tb rb WHERE rt.Research_char = rn.Research_char and rt.Research_code = rb.Research_code and rb.ReTyId='1' and rt.Research_char='$Research_char' and fiscal_year_finish='$fiscal_year_finish' ORDER BY $OrderBy $ASCDESC ";
} else {
$query = " SELECT * FROM research_tb rt, research_nature rn , research_public_tb rb WHERE rt.Research_char = rn.Research_char and rt.Research_code = rb.Research_code and rb.ReTyId='1' and rt.Research_char='$Research_char' and fiscal_year_finish='$fiscal_year_finish' ORDER BY $OrderBy $ASCDESC ";
}
}
elseif( !isset($_GET['OrderBy']) ) {
if( $keyword != "" ) { // ใส่ Keyword
$query = " SELECT *FROM research_tb rt, research_nature rn , research_public_tb rb WHERE rt.Research_char = rn.Research_char and rt.Research_code = rb.Research_code and rb.ReTyId='1' and rt.Research_char='$Research_char' and fiscal_year_finish='$fiscal_year_finish' ORDER BY $OrderBy $ASCDESC ";
} else {
$query = " SELECT * FROM research_tb rt, research_nature rn , research_public_tb rb WHERE rt.Research_char = rn.Research_char and rt.Research_code = rb.Research_code and rb.ReTyId='1' and rt.Research_char='$Research_char' and fiscal_year_finish='$fiscal_year_finish' ORDER BY $OrderBy $ASCDESC ";
}
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |