prefix('tad_ebook'); $sql="select * from `{$tbl}` where `ebook_publish_date` <= '{$today}' order by `ebook_publish_date` desc"; $result=$xoopsDB->query($sql) or die(mysql_error()); $i=0; $all_data=""; while($all=$xoopsDB->fetchArray($result)){ $all['ebook_title']=$myts->htmlSpecialChars($all['ebook_title']); $TadUpFiles->set_col('ebook_sn',$all['ebook_sn']); $all['ebook_pic']=$TadUpFiles->get_pic_file('thumb'); $all_data[$i]=$all; $i++; } $block['show_pic']=$options[0]; $block['height']=$options[1]; $block['all_data']=$all_data; return $block; } //設定函數 function tad_ebook_list_edit($options){ $checked1=$options[0]=='1'?"checked":""; $checked0=$options[0]=='0'?"checked":""; $form=" 是否顯示縮圖? 是 否 區塊高度? "; return $form; } ?> ```
進階搜尋
66人線上 (10人在瀏覽線上書籍)
會員: 0
訪客: 66