"; echo "


กรุณาทำการ Login ก่อน

"; echo ""; exit(); } else { /** Configuration */ header('Content-type: application/xls'); header('Content-Disposition: attachment; filename="report.xls"'); 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 = 1000; } $param = ""; /** โฟลเดอร์ไฟล์เอกสาร */ $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); ?>
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
กิจกรรมผู้เรียน กิจกรรมผู้สอน  
  
,

,
 
freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?>