:::

7-2 /templates/tad_signup_index.tpl

<{$toolbar}>

<{if $op=="list_actions"}>
  <h2>活動列表<small>(共 <{$total}> 個活動)</small></h2>
  <table class="table table-bordered table-hover table-striped">
    <tr class="info">
      <th>活動日期</th>
      <th>活動名稱</th>
      <th>截止日期</th>
      <th>功能</th>
    </tr>
    <{foreach from=$actions item=action}>
      <tr>
        <td><{$action.action_date}></td>
        <td>
          <{if $action.enable!=1}>
            <span class="label label-danger">已關閉</span>
          <{/if}>  

          <{if $action.overdue}>
            <span class="label label-warning">已過期</span>
          <{/if}> 
          <a href="index.php?action_id=<{$action.action_id}>"><{$action.title}></a>
        </td>
        <td><{$action.end_date}></td>
        <td>
          <{if $xoops_isadmin}>
            <a href="javascript:delete_action(<{$action.action_id}>)" class="btn btn-danger btn-xs">刪除</a>
            <a href="admin/main.php?action_id=<{$action.action_id}>" class="btn btn-warning btn-xs">編輯</a>
          <{/if}>  

          <{if $xoops_isuser and !$action.overdue}>  
            <{if $action.action_id|in_array:$smarty.session.uid_signup}>
              <a href="javascript:delete_signup(<{$action.action_id}>)" class="btn btn-danger btn-xs">取消報名</a>
            <{else}>
              <a href="index.php?action_id=<{$action.action_id}>&op=signup" class="btn btn-success btn-xs">我要報名</a>
            <{/if}>
          <{/if}>
          <a href="index.php?action_id=<{$action.action_id}>" class="btn btn-info btn-xs">詳情</a>
        </td>
      </tr>
    <{/foreach}>
  </table>
  <{$bar}>
<{/if}>

<{if $op=="show_action"}>
  <h2><{$action.title}></h2>

  <div class="panel panel-primary">
    <div class="panel-heading">活動日期:<{$action.action_date}></div>
    <div class="panel-body">
      <{$action.content}>
    </div>
  </div>
<{/if}>

 


:::

書籍目錄

展開 | 闔起

快速登入


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

計數器

今天: 3234323432343234
昨天: 8046804680468046
總計: 8041887804188780418878041887804188780418878041887