alert('".$lang_index->_NoChoice."');"; $srchStr = ''; } }else{ $srchStr = ''; } $sql = "select count(*) from e_download".$srchStr; $total_count = $gDbManager->DbGetOne($sql); @$page = (int)$_REQUEST['page']; $list_num=10; include_once ("includes/pager.class2.php"); $rowset = new Pager($total_count,$list_num,$page); $from_record = $rowset->_offset(); $page_bar = $rowset->link("download.html?&page="); $sql = "select * from e_download".$srchStr." Order by show_order asc Limit $from_record, $list_num"; $rec_download = $gDbManager->DbGetAll($sql); // 查看是否有傳入個別資料 if(isset($_GET['num'])){ //若有,則指定到 $num $num = $_GET['num']; }else{ //若無,則指定第一筆資料 $num = $rec_ab[0]['Num']; } $get_num = 0; // 依$num 設定在陣列中的資料 // 給 select 用的 $sql = "select * from e_producttype where MainTypeNum > 0"; $rec_sel = $gDbManager->DbGetAll($sql); if(count($rec_sel) > 0){ $sel = ''; foreach($rec_sel as $a){ $sel[$a['MainTypeNum']][$a['Num']] = $a['Name_'.$lang]; } } //----------------------- ?>