58 lines
2.3 KiB
PHTML
58 lines
2.3 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
|
|
$this->breadcrumb('邮件模板管理');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('sys/left.phtml'); ?>
|
|
</div>
|
|
|
|
<div id="rightPanel">
|
|
<?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; ?>
|
|
<script language="javascript">
|
|
setTimeout('$(".box-info").remove()',5000);
|
|
</script>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<a class="" href="/admin/sys/emailtext/ac/add">创建新模板</a>
|
|
<a class="" href="/admin/sys/emailtext/ac/help">查看邮件模板编写说明</a>
|
|
<table><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 class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
|
|
<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'];?>">删除</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>
|