1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <{include file='../public/admin_header.html'}>
- <{include file='../public/admin_navi.html'}>
- <!-- Right side column. Contains the navbar and content of the page -->
- <aside class="right-side">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- 邮件模板列表
- <small>Control panel</small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
- <li class="active">Blank page</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="span9">
- <{if $info}>
- <div class="alert alert-success "><{$info}></div>
- <{/if}>
- <{if $error}>
- <div class="alert alert-danger alert-dismissable"><{$error}></div>
- <{/if}>
- <div id='main' class="form-actions">
- <a href="/?a=email_template_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加邮件模板</a>
- <div style="height:20px;"></div>
- <table class="table table-striped" style="margin-top:15px;">
- <tr>
- <th>ID</th>
- <th >模板标题</th>
- <th >模板内容</th>
- <th>状态</th>
- <th>创建人</th>
- <th>修改时间</th>
- <th>添加时间</th>
- <th style="width:125px;">操作</th>
- </tr>
- <{foreach from=$list item=item}>
- <tr>
- <td><{$item.id}></td>
- <td><{$item.msg_title}></td>
- <td style="width:40%"><{$item.msg_content}></td>
- <td <{if $item.status==2}>style="color:red;"<{/if}>><{$status_array[$item.status]}></td>
- <td><{$uname}></td>
- <td><{$item.update_time|date_format:'%Y-%m-%d'}></td>
- <td><{$item.add_time|date_format:'%Y-%m-%d'}></td>
- <td>
- <a href="/?a=email_template_admin&m=update&id=<{$item.id}>">修改</a>
- <{if $item.status==1}>
- <a href="/?a=email_template_admin&m=delete&id=<{$item.id}>&status=2" style="margin-left:30px;" >禁用</a>
- <{/if}>
- <{if $item.status==2}>
- <a href="/?a=email_template_admin&m=delete&id=<{$item.id}>&status=1" style="margin-left:30px;" >启用</a>
- <{/if}>
- </td>
- </tr>
- <{/foreach}>
- </table>
- <{$show}>
- </div>
- </div>
- </section><!-- /.content -->
- </aside><!-- /.right-side -->
- </div><!-- ./wrapper -->
- <style>
- select{height:30px;}
- </style>
- <script>
- $('#treeview4').addClass('active');
- $(".email_template_left").addClass('active');
- </script>
- </body>
- </html>
|