checkAuth() ){ //echo isset($_SESSION['isStudent']); if(!($_GET['act'] == 'login')) { include_once('./Pear/HTML/QuickForm.php'); include_once('./Pear/DB.php'); include_once('./Pear/Pager/Pager.php'); $dbh = DB::connect(_DSN_); $form = new HTML_QuickForm('frmaddnew','GET',$_SERVER['PHP_SELF']); $form->addElement('header', 'achiveHeader', 'Achive : '); $options = array( 'language' => 'tw', 'format' => 'Y F', 'minYear' => '2006', 'maxYear' => date('Y') + 1 ); $form->addElement('date','Date',null,$options); $form->addElement('submit','newSubmit','送出'); $date[Y] = date('Y'); $date[F] = date('m'); $default =array('Date' => $date); if(isset($_GET['Date'])){ //echo date( "l dS of F Y h:i:s A" ); $year=$_GET['Date']['Y']; //echo $_GET['Date']['F']; $month=$_GET['Date']['F']; $month=gmdate('F',mktime(0, 0, 0, $month , 10, 0)); //echo $year; //echo $month; //echo $year; //echo $month; $date[Y] = $year; $date[F] = gmdate('m',strtotime('10 '.$month)); //echo $month; //echo $date[F]; //unset($_GET['Data']['Y']); //$_GET['test']=11; } $form->setDefaults($default); if( isset($_GET['Date'])){ $where = "where Year='".$year."' and Month='".$month."'"; $orderby = " ORDER BY ID ASC "; if(!isset($_SESSION['ValidUser'])){ $page = 50; } else{ $page = 10; } } else{ if(!isset($_SESSION['ValidUser'])){ $where = " where Year='".date('Y')."' and Month='".gmdate('F',mktime(0, 0, 0, date('m'), 10, 0))."' "; $orderby = " ORDER BY ID ASC "; $page = 50; } else{ $orderby = " ORDER BY ID DESC "; $page = 10; } $year=date('Y'); $month=gmdate('F',mktime(0, 0, 0, date('m'), 10, 0)); } //echo date('m'); $query = 'SELECT * FROM Articles '.$where.$orderby; //echo $query; $rows = $dbh->getAll( $query ); $dbh->disconnect(); $params = array ( 'mode' => 'Sliding', 'perPage' => $page, 'delta' => 4, 'firstPagePre' => '[', 'firstPageText' => '第一頁', 'firstPagePost' => ']', 'lastPagePre' => '[', 'lastPageText' => '最末頁', 'lastPagePost' => ']', 'itemData' => $rows, 'showAllText' => '全部', 'clearIfVoid' => false, ); $pager = Pager::factory( $params ); $datas = $pager->getPageData(); echo '
'; //echo '
'; calendarWithAudio($year, $month); //echo "音訊檔下載捷徑"; $form->display(); ?>

Notice: Undefined variable: datas in C:\xamp\htdocs\English\Index.php on line 148
本月份無資料, 請點選其它月份.



Fatal error: Call to undefined function htmlFooter() in C:\xamp\htdocs\English\Index.php on line 182