{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>