Viewing file: ShowCourseMethodTeach.php (13.5 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( "../includes/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "course";
$myTable1 = "condition_db";
$myTable2 ="tech_planmethod ";
$myTableFK = "Week";
$sql = " SELECT * FROM $myTable2 Where Teacher_code ='$Teacher_code' and courseId='$courseId' And costtId ='$costtId' " ;
$result3 = $dbObj->execQuery($sql);
$rs4= $dbObj->fetchArray($result3);
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
$param = "costtId=$costtId&Teacher_code=$Teacher_code&courseId=$courseId&programId=$programId";
/** โฟลเดอร์ไฟล์เอกสาร */
$doc_path = $_Config_live_site."/Edu_pic";
} # else
?>
=$_Config_sitename;?> - ข้อมูลฝ่ายวิชาการ - รายชื่อหลักสูตร
|
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 Teacher_code ='$Teacher_code' and courseId='$courseId' And costtId ='$costtId' ORDER BY $OrderBy $ASCDESC ";
}
elseif( !isset($_GET['OrderBy']) ) {
$query = " SELECT * FROM $myTable2 Where Teacher_code ='$Teacher_code' and courseId='$courseId' And costtId ='$costtId' ORDER BY $myTableFK ASC ";
}
$query .= " LIMIT $start, $limit ";
$result = $dbObj->execQuery($query);
?>
|
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |