"; 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"; /** Paging */ $page = $_GET['page']; if( $page == "" ) { $page = 1; } /** จำนวนข้อมูล ต่อ 1 หน้า */ $perpage = $_REQUEST['perpage']; if( $perpage == "" ) { $perpage = 10; } // ** Botton Name Action */ $action = $_REQUEST['action']; $id = $_REQUEST['id']; if( isset($action) && !empty($action) ) { switch($action) { case "Delete" : $num = count($id); for( $i=0; $i<$num; $i++ ) { //--- training_tb $qryDel = " DELETE FROM $myTable2 WHERE ttpId ='$id[$i]' "; $resultDel = $dbObj->runQuery($qryDel); $dbObj->freeresult($resultDel); //-------- $qryDel = " DELETE FROM tech_methodcom_tb WHERE ttpId ='$id[$i]' "; $resultDel = $dbObj->runQuery($qryDel); $dbObj->freeresult($resultDel); //if( $resultSel ) { //--- tech_spec_tb $qryDel4 = " DELETE FROM tech_imgmethod_tb WHERE ttpId ='$id[$i]' "; $resultDel4 = $dbObj->runQuery($qryDel4); $dbObj->freeresult($resultDel4); } # for break; } # switch } # if $param = "costtId=$costtId&Teacher_code=$Teacher_code&courseId=$courseId"; } # 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' ORDER BY $myTableFK ASC "; } elseif( !isset($_GET['OrderBy']) ) { $query = " SELECT * FROM $myTable2 Where Teacher_code ='$Teacher_code' and courseId='$courseId' ORDER BY $myTableFK ASC "; } $query .= " LIMIT $start, $limit "; $result = $dbObj->execQuery($query); ?>
หน้าหลัก »บันทึกแผนการสอน » รายวิชาที่รับผิดชอบ
 
‹ ย้อนกลับ
ทั้งหมด: รายการ จำนวนข้อมูลต่อหน้า
 
0 ) { ?> fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; $conditionId= $rs['conditionId']; //$Method_code = $rs['Method_code']; // $Teacher_code = $rs['Teacher_code']; ?> freeresult($result1); ?>
สัปดาห์ วันที่ เนื้อหา(หัวข้อ) ชั่วโมง Learning
Outcomes
แก้ไข
,
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, '1', $i ); } } // end..for } // end..if if($display < $paging) { $next = $display + 1; ?> ถัดไป »  หน้าสุดท้าย »|
 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>