Viewing file: DegreePersonal5.php (11.92 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" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "personal_tb";
$myTablePK1 = "Teacher_id";
$myTablePK2 = "Teacher_name";
if( $StatusId == "" )
$StatusId = 1;
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 200; }
} # else
?>
ข้อมูลสำหรับผู้บริหาร : ข้อมูลสรุปสถานะบุคลากร - ข้อมูลวุฒิการศึกษา
|
1080 ";
$result = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_GET['page'];
$start = ( ($display * $limit) - $limit );
/** Paging */
if( isset($_GET['OrderBy']) ) {
$query = " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Type_degree1='3' and StatusId='1' AND Teacher_type='5' and Degree_code='1' and datediff('".((date('Y')+543).date('-m-d'))."',Degree_His1_End_Year) > 1080 ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Type_degree1='3' and StatusId='1' AND Teacher_type='5' and Degree_code='1' and datediff('".((date('Y')+543).date('-m-d'))."',Degree_His1_End_Year) > 1080 ORDER BY $myTablePK1,$myTablePK2 ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |