跳至主要內容
:::

5-3-1 將所有文章變成二維陣列

  1. 修改 index.php,並定義一個 $all_news 陣列,然後將每讀取出來一筆的文章,都放入 $all_news
    1. $all_news[0] 代表第一篇文章
    2. $all_news[0]['title'] 則代表第一篇文章的標題
  2. 如此,$all_news 就是一個二維陣列,包含有所有文章的內容(檔案需額外處理),接著用 assign() 將所有文章送至樣板檔。
    <?php
    require_once 'header.php';
    
    try {
        // 準備SQL語句
        $sql = "SELECT * FROM `news` ORDER BY `date` DESC";
    
        // 預備語句
        $stmt = $pdo->prepare($sql);
    
        // 綁定參數並執行語句
        $stmt->execute();
        $all_news = [];
        $news = $stmt->fetchAll();
        foreach ($news as $row) {
            $media = $row['media'];
            unset($row['media']);
            $row = array_map('htmlspecialchars', $row);
            $row['files'] = json_decode($media, true);
            $all_news[] = $row;
        }
        $smarty->assign('all_news', $all_news);
    
    } catch (PDOException $e) {
        echo "資料庫連接錯誤:" . $e->getMessage();
    }
    $smarty->display('index.tpl');
    

     

  3. 此外,執行的 SQL 語法,使用 date 日期欄位做排序,DESC 就是從大排到小,最新的文章才會列在第一個。

  4. 資料表的名稱或欄位可以用 `名稱` 包起來,避免有保留字問題(例如 date)

  5. 由於 $row['media'] 是 json 格式,所以會包含引號,若是被 htmlspecialchars 過濾,可能會導致無法解析,故我們先將之存為 $media,待所有內容過濾後,再利用原始的檔案 json 資訊 $media,透過 json_decode() 來拆解為 array 陣列並存入 $row['files'] 中供樣板呼叫使用。

  6. 至此,所有文章內容已經送到 index.tpl,接著就修改樣板檔以便讀取出真正的內容

  7. 若欲觀察 $all_news 陣列內容,可以用 die() 搭配  var_export() 使用,前者停止程式,後者顯示變數內容

    die(var_export($all_news));

     

  8. 若覺得畫面不美觀,可以自行加入以下函數,然後用 dd($all_news) ; 即可用美觀的畫面觀看變數內容(chrome 系列瀏覽器可以至此安裝,edge可裝這個
    // 顯示變數內容
    function dd($array = [])
    {
        header("Content-Type: application/json; charset=utf-8");
        die(json_encode($array, 256));
    }

     


:::

書籍目錄

展開 | 闔起

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1807%26tbsn%3D52

計數器

今天: 453453453
昨天: 4310431043104310
總計: 9137624913762491376249137624913762491376249137624
全部 錯誤訊息 (71) 已棄用 (0) 資料庫語法 (38) 區塊 (9) 額外資訊 (2) 計時(6)
錯誤訊息
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$assignByRef is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$loadPlugin is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$_foreach is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 27
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$title_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 16
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$cate_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 17
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$url_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 18
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
警告: Undefined array key 2 在檔案中的第 /modules/tad_login/blocks/tad_login.php 列 22
警告: Undefined array key 2 在檔案中的第 /modules/tad_login/blocks/tad_login.php 列 56
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_login_school2022_default^9a36fe6b7ef2d97043df58e0037061e72053376e_0.db.tadlogin.tpl.php 列 27
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^84539fe8acd40c5f378f06891603c382520ffd84_0.file.theme_css_blocks.tpl.php 列 25
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^8769a883ca1ac623e41162c9d54b2ce8411757a6_0.file.menu_my.tpl.php 列 25
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
警告: Undefined array key "tlogin" 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^4b700abaeaf1cda7df0a719b7b2be562ca91d32a_0.file.menu_login.tpl.php 列 102
警告: Attempt to read property "value" on null 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^4b700abaeaf1cda7df0a719b7b2be562ca91d32a_0.file.menu_login.tpl.php 列 102
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^eeb059e288a364212fc4e3c5217e3ce0a98cc7cf_0.file.leftBlock.tpl.php 列 50
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^595b03a20f1630ce88f70eb9ec2ebfacab28ac31_0.file.rightBlock.tpl.php 列 27
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^c3b372c147783809409e53366a84afc38a02d392_0.file.footerBlock.tpl.php 列 51
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
已棄用
資料庫語法
0.000058 - SET SQL_BIG_SELECTS = 1
0.000735 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '1') ORDER BY conf_order ASC
0.000210 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'jeh53upkpk5e71j8k88r6414p6'
0.000261 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '1' AND (`gperm_groupid` = '3') AND `gperm_name` = 'module_read' AND `gperm_itemid` = '31')
0.000162 - SELECT * FROM config WHERE (`conf_modid` = '31') ORDER BY conf_order ASC
0.000225 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '5') ORDER BY conf_order ASC
0.000179 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '3') ORDER BY conf_order ASC
0.000750 - SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (3)
0.000571 - SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,31) AND b.bid IN (1,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,179,178,98,97,150,177,78,176,99,94,175,59,96,173,67,83,84,85,86,87,170,88,154,171,90,91,93,168,95,100,104,3,102,107,111,112,113,114,115,116,117,122,130,131,139,140,141,144,174,147,148,149,151,152,153,160,161,162,163,164) ORDER BY b.weight, m.block_id
0.000181 - SELECT cfgname, cfgvalue FROM logcounterx_cfg
0.002118 - DELETE FROM logcounterx_ip WHERE acctime < 1773173429
0.000157 - SELECT accip FROM logcounterx_ip WHERE accip = '216.73.216.210'
0.000126 - UPDATE logcounterx_ip SET acctime = 1773174029 WHERE accip = '216.73.216.210'
0.000270 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_block_dummy.tpl') ORDER BY tpl_refid
0.000279 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tadtools_qrcode_block.tpl') ORDER BY tpl_refid
0.000229 - SELECT cfgname, cfgvalue FROM logcounterx_cfg
0.000114 - SELECT cnt FROM logcounterx_count WHERE ymd = '2026-03-11'
0.000087 - SELECT cnt FROM logcounterx_count WHERE ymd = '2026-03-10'
0.000124 - SELECT cnt FROM logcounterx_count WHERE (ymd = '1111-11-11') OR (ymd = '1111/11/11')
0.000379 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'lcx_block_display.html') ORDER BY tpl_refid
0.000404 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_book3_block_index.tpl') ORDER BY tpl_refid
0.000242 - SELECT * FROM config WHERE (`conf_modid` = '37') ORDER BY conf_order ASC
0.000312 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_login.tpl') ORDER BY tpl_refid
0.000707 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '33' AND (`gperm_groupid` = '3') AND `gperm_name` = 'forum_read')
0.000365 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_discuss_cbox.tpl') ORDER BY tpl_refid
0.000322 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_block_search.tpl') ORDER BY tpl_refid
0.000776 - SELECT `conf_value` FROM `config` WHERE `conf_name` = 'allow_register'
0.001026 - SELECT `mid`, `name`, `dirname` FROM `modules` WHERE `isactive` = 1 AND `hasmain` = 1 AND `weight` != 0 ORDER BY `weight`
0.001103 - SELECT `conf_value` FROM `config` WHERE `conf_title` = '_MD_AM_DEBUGMODE'
0.000219 - SELECT COUNT(*) FROM `priv_msgs` WHERE `to_userid` = 0 AND `read_msg`=0 GROUP BY `to_userid`
0.000264 - SELECT `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group`, `of_level` FROM `tad_themes_menu` WHERE `status` = 1 ORDER BY `of_level`, `position`
0.001549 - desc `tad_book3_data_center` `sort`
0.000716 - select `col_sn`,`data_name`,`data_sort`, `data_value` from `tad_book3_data_center` where `mid`= '31' and `col_name`='read_tbdsn_date' and `col_sn`='1807' order by `sort` , `data_sort`
0.000206 - SELECT * FROM config WHERE (`conf_modid` = '3') ORDER BY conf_order ASC
0.000818 - desc `tad_book3_data_center` `sort`
0.000219 - select `col_sn`,`data_name`,`data_sort`, `data_value` from `tad_book3_data_center` where `mid`= '31' and `col_name`='video_tbdsn_date' and `col_sn`='1807' order by `sort` , `data_sort`
0.000104 - SELECT `groupid`,`name` FROM `groups`
0.000676 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tadbook3_index.tpl') ORDER BY tpl_refid
總計: 38
區塊
紀錄區塊: 沒有快取
自訂區塊(HTML): 沒有快取
本頁面行動條碼: 沒有快取
自訂區塊(HTML): 沒有快取
計數器: 沒有快取
書籍目錄: 沒有快取
快速登入: 沒有快取
即時留言簿: 沒有快取
搜尋: 沒有快取
總計: 9
額外資訊
包含檔案: 261 檔案
使用記憶體: 1776904 bytes
計時
XOOPS 使用 0.088 秒來載入。
XOOPS Boot 使用 0.006 秒來載入。
Module init 使用 0.002 秒來載入。
XOOPS output init 使用 0.054 秒來載入。
Module display 使用 0.019 秒來載入。
Page rendering 使用 0.007 秒來載入。