2011-10-11 10:06:51 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
2011-10-13 09:11:35 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
2011-10-12 13:46:43 +00:00
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
2011-10-13 09:11:35 +00:00
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
|
2011-10-12 13:46:43 +00:00
|
|
|
$this->breadcrumb('邮件模板管理');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2011-10-11 10:06:51 +00:00
|
|
|
?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
|
|
|
<?= $this->partial('sys/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-10 col-sm-12">
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
<div class="box box-info">
|
|
|
|
<?php if ($this->msg) : ?>
|
|
|
|
<?php echo $this->msg; ?>
|
|
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
|
|
<?php echo $msg; ?>
|
|
|
|
<?php endforeach;endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="form-group">
|
|
|
|
<a class="btn btn-primary btn-sm" href="/admin/sys/emailtext/ac/add">创建新模板</a>
|
|
|
|
<a class="btn btn-primary btn-sm" href="/admin/sys/emailtext/ac/help">查看邮件模板编写说明</a>
|
|
|
|
</div>
|
|
|
|
<table class="stylized table table-bordered table-striped table-hover">
|
|
|
|
<thead><tr>
|
|
|
|
<th>模板标识</th>
|
|
|
|
<th width="30%">邮件主题</th>
|
|
|
|
<th>创建时间</th>
|
|
|
|
<th>更新时间</th>
|
|
|
|
<th>操作</th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
if (count($this->paginator)):
|
|
|
|
$autoindex=0;
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;?>
|
|
|
|
<tr>
|
|
|
|
<td><?php echo $item['template'];?></td>
|
|
|
|
<td><?php echo $item['subject'];?></td>
|
|
|
|
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></td>
|
|
|
|
<td><?php if (!empty($item['ts_changed'])) echo date("Y-m-d H:i",strtotime($item['ts_changed']));?></td>
|
|
|
|
<td>
|
|
|
|
<a href="/admin/sys/emailtext/ac/del/id/<?php echo $item['id'];?>" onclick="return confirm('确认删除?')">删除</a> |
|
|
|
|
<a href="/admin/sys/emailtext/ac/edit/id/<?php echo $item['id'];?>">编辑</a> |
|
|
|
|
<a href="/admin/sys/emailtext/ac/test/id/<?php echo $item['id'];?>">测试</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; endif; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
<script language="javascript">setTimeout('$(".box-info").remove()',5000);</script>
|
2011-10-12 08:33:46 +00:00
|
|
|
</div>
|