"; 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; //=== SESSION $Username = $valid_user; /** Config Table for This Page */ $myTable1 = "personal_tb"; $myTable2 = "research_tb "; $myTable2PK = "Research_code"; /** โฟลเดอร์ไฟล์เอกสาร */ $doc_path = $_Config_live_site."/Research_pic"; /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 10; } } # 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 $myTable2 WHERE (ReTyId='2' or ReTyId='3' or ReTyId='4' Or ReTyId='5' or ReTyId='6' Or ReTyId='7' or ReTyId='8' Or ReTyId='9' or ReTyId='10' ) ORDER BY $OrderBy $ASCDESC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable2 WHERE (ReTyId='2' or ReTyId='3' or ReTyId='4' Or ReTyId='5' or ReTyId='6' Or ReTyId='7' or ReTyId='8' Or ReTyId='9' or ReTyId='10' ) ORDER BY $myTable2PK DESC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?>
หน้าหลัก » ข้อมูลรายงาน » ข้อมูลผลงานวิชาการ จำนวนข้อมูลต่อหน้า
‹ ย้อนกลับ
ทั้งหมด: รายการ  
0 ) { ?> fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?> freeresult($result); ?>
ลำดับ ชื่อผลงานทางวิชาการ ประเภทผลงาน
   (ปีปฏิทิน )
0 ) ?>

0 ) { ?>
หน้า : 1) { $previous = $display - 1; ?>|« หน้าแรก  « ก่อนหน้า $scroll) { $first = $_GET['page']; $last = ($scroll - 1) + $_GET['page']; } else { $first = 1; $last = $paging; } if($last > $paging ) { $first = $paging - ($scroll - 1); $last = $paging; } for($i=$first; $i<=$last; $i++) { if($display == $i) { echo " [$i] "; } else { //echo " $i "; printf(" %s ", $_SERVER['PHP_SELF'], $i, $perpage, $OrderBy, $ASCDESC, $i); } } // end..for } // end..if if($display < $paging) { $next = $display + 1; ?> ถัดไป »  หน้าสุดท้าย »|
 
freeresult($result1); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>