跳至主內容區

XOOPS輕鬆架

:::

主內容區域

選擇後會自動跳轉頁面

9-12 設定列表外觀

  1. 表格外觀有一定的預設值,若是想自行調整外觀,可以利用設定屬性的方式來進行:
    $Model->set_attr('table', ['class' => 'table table-hover table-striped table-sm']);
    $Model->set_attr('tr1', ['class' => 'bg-warning white']);
    ...略...
    $ApplyModel->set_attr('table', ['class' => 'table table-hover table-striped']);
    $ApplyModel->set_attr('tr1', ['class' => 'bg-success white']);

    首頁的列表變這樣:

    單一活動頁面的報名列表變這樣:

  2. set_attr() 用法可參考:https://campus-xoops.tn.edu.tw/modules/tad_book3/page.php?tbsn=48&tbdsn=1601

選擇後會自動跳轉頁面

:::

左邊區域內容

書籍目錄

展開 | 闔起

快速登入

懶人框架討論區


右邊區域內容

請掃此 QR Code 可連至此頁面

計數器

今天: 6090609060906090
昨天: 3110311031103110
總計: 9480115948011594801159480115948011594801159480115

頁尾區域