:::

4-14 templates/list_actions.tpl

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

        <a href="index.php?action_id={$action.action_id}" class="btn btn-info btn-xs">詳情</a>
      </td>
    </tr>
  {foreachelse}
    <tr>
      <td colspan=4>暫無活動</td>
    </tr>
  {/foreach}

  </tbody>
</table>

 


:::

書籍目錄

展開 | 闔起

快速登入


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

計數器

今天: 869869869
昨天: 3068306830683068
總計: 8077374807737480773748077374807737480773748077374