:::

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%3Ftbsn%3D28%26tbdsn%3D788

計數器

今天: 2593259325932593
昨天: 2574257425742574
總計: 7588352758835275883527588352758835275883527588352