:::

4-13 templates/list_action.tpl

{include file='sweet-alert.tpl'}
<h2>所有活動列表</h2>
<table class="table table-bordered table-hover table-striped">
  <thead>
    <tr>
      <th>活動日期</th>
      <th>活動標題</th>
      <th>功能</th>
    </tr>
  </thead>
  <tbody>
  {foreach $actions as $action}
    <tr>
      <td>{$action.action_date}</td>
      <td><a href="index.php?action_id={$action.action_id}">{$action.title}</a></td>
      <td>
        {if $group=='admin'}
          <a href="admin.php?action_id={$action.action_id}" class="btn btn-warning btn-xs">編輯</a>
          <a href="javascript:delete_action({$action.action_id})" class="btn btn-danger btn-xs">刪除</a>
        {elseif $group=='user'}
          <a href="index.php?op=save_signup&action_id={$action.action_id}" class="btn btn-success btn-xs">我要報名</a>
        {/if}
      </td>
    </tr>
  {/foreach}
  </tbody>
</table>

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D788%26tbsn%3D28

計數器

今天: 1055105510551055
昨天: 8625862586258625
總計: 8031662803166280316628031662803166280316628031662