18-6
                        templates/tad_honor_adm_main.html
                    
                
                                
<!--若要套用bootstrap,請載入以下這三行-->
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/bootstrap/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/css/xoops_adm.css" />
<h1><{$temp_title}></h1>
<{if $now_op=="honor_form"}>
  <{$honor_form}>
<{else}>
  <{$bar}>
  <table class="table table-striped table-bordered table-hover">
    <tr>
      <th>學年度</th>
      <th>得獎日期</th>
      <th>得獎者</th>
      <th>得獎事項</th>
      <th>指導老師</th>
      <th>功能</th>
    </tr>
    <{foreach from=$all_data item=all}>
    <tr>
      <td><{$all.honor_year}></td>
      <td><{$all.honor_date}></td>
      <td><{$all.honor_students}></td>
      <td><{$all.honor_descript}></td>
      <td><{$all.honor_teachers}></td>
      <td>
        <a href="main.php?op=delete_honor&honor_sn=<{$all.honor_sn}>" class="btn btn-danger btn-mini">刪除</a>
        <a href="main.php?op=honor_form&honor_sn=<{$all.honor_sn}>" class="btn btn-warning btn-mini">編輯</a>
      </td>
    </tr>
    <{/foreach}>
  </table>
  <{$bar}>
  <a href="main.php?op=honor_form" class="btn btn-info pull-right">新增榮譽榜事件</a>
<{/if}>