clean code and redesign the format
This commit is contained in:
parent
b2d402ee6b
commit
99cc2726ae
|
@ -2,16 +2,18 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$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="divContent">
|
||||
|
||||
<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) : ?>
|
||||
|
@ -25,53 +27,31 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a class="corner-tl" href="#tabs-1">邮件模板</a></li>
|
||||
<li><a class="" href="/admin/sys/emailtext/ac/add">创建新模板</a></li>
|
||||
<li><a class="corner-tr" href="#tabs-3" id="showhelp">模板编辑说明</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
<table id="report" class="stylized full" style="">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="50%">模板名称</th>
|
||||
<th width="50%">管理</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<?php $autoindex=0;?>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<?php $autoindex++;?>
|
||||
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
||||
<td class="title">
|
||||
<div><a href="#"><b><?php echo $item['title'];?></b></a>
|
||||
<div class="listingDetails">
|
||||
<div class="pad">
|
||||
<ul>
|
||||
<li>模板说明:<?php echo $item['description'];?></li>
|
||||
<li>创建时间:<?php echo date("Y-m-d H:i",$item['ts_create']);?></li>
|
||||
<li>使用次数: <?php echo $item['usetimes'];?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</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; ?>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="width:50%;text-align:left;">
|
||||
<?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<a class="" href="/admin/sys/emailtext/ac/add">创建新模板</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>
|
|
@ -3,49 +3,37 @@
|
|||
$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="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
|
||||
<!-- Left column/section -->
|
||||
<section class="column width6">
|
||||
|
||||
<h3>邮件模板添加</h3>
|
||||
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="add" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<fieldset>
|
||||
<p>
|
||||
<label class="required" for="producttitle">标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="" name="title"/>
|
||||
</p>
|
||||
<h3>邮件模板添加</h3>
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="add" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<fieldset>
|
||||
<p>
|
||||
<label class="required">模板标识文字</label>
|
||||
<input type="text" id="template" value="" name="template"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label class="required">邮件主题</label>
|
||||
<input type="text" id="title" value="" name="title"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="description">介绍</label><br/>
|
||||
<textarea id="description" class="small half" name="description" style="width:500px;height:80px;"></textarea>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="body">模板内容</label><br/>
|
||||
<textarea id="body" class="large full" style="width:500px;height:200px;" name="body"></textarea>
|
||||
<small><a href="javascript:showhelp();">查看说明?</a></small>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</section>
|
||||
<!-- End of Left column/section -->
|
||||
</div>
|
||||
<p>
|
||||
<label for="body">模板内容</label><br/>
|
||||
<textarea id="body" class="emailtext" name="body"></textarea>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/></p>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
|
@ -3,48 +3,38 @@
|
|||
$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="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
|
||||
<!-- Left column/section -->
|
||||
<section class="column width6">
|
||||
|
||||
<h3>邮件模板编辑</h3>
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="edit" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
|
||||
<fieldset>
|
||||
<p>
|
||||
<label class="required" for="producttitle">标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="<?php echo $this->info['title'];?>" name="title"/>
|
||||
</p>
|
||||
<h3>邮件模板编辑</h3>
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="edit" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
|
||||
<fieldset>
|
||||
<p>
|
||||
<label class="required">模板标识文字</label>
|
||||
<input type="text" id="template" value="<?php echo $this->info['template'];?>" name="template"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label class="required">邮件主题</label>
|
||||
<input type="text" id="title" value="<?php echo $this->info['subject'];?>" name="title"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="description">介绍</label><br/>
|
||||
<textarea id="description" class="small half" name="description" style="width:500px;height:80px;"><?php echo $this->info['description'];?></textarea>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="body">模板内容</label><br/>
|
||||
<textarea id="body" class="large full" name="body" style="width:500px;height:200px;"><?php echo $this->info['content'];?></textarea>
|
||||
<small><a href="javascript:showhelp();">查看说明?</a></small>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</section>
|
||||
<!-- End of Left column/section -->
|
||||
</div>
|
||||
<p>
|
||||
<label for="body">模板内容</label><br/>
|
||||
<textarea id="body" class="emailtext" name="body"><?php echo $this->info['body'];?></textarea>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
|
@ -4,14 +4,11 @@
|
|||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
?>
|
||||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div id="rightPanel">
|
||||
<section class="column width6">
|
||||
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div class="box box-info">
|
||||
|
@ -26,36 +23,32 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h3>发送邮件发送测试</h3>
|
||||
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="test" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->id;?>" />
|
||||
<fieldset>
|
||||
|
||||
<p>
|
||||
<label for="email" class="required">测试的收信地址</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="" name="email"/>
|
||||
</p>
|
||||
<h3>邮件发送测试</h3>
|
||||
<form name="form" method="post" action="/admin/sys/emailtext/">
|
||||
<input type="hidden" name="ac" value="test" />
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
|
||||
<fieldset>
|
||||
<p>
|
||||
<label for="email" class="required">测试的收信地址</label>
|
||||
<input type="text" id="email" value="" name="email"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label class="required" for="producttitle">邮件标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="测试邮件标题" name="title"/>
|
||||
</p>
|
||||
<p>
|
||||
<label class="required" for="producttitle">邮件主题</label>
|
||||
<input type="text" id="subject" value="<?php echo $this->info['subject'];?>" name="subject"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="user">收信用户名</label><br/>
|
||||
<input type="text" id="user" class="half title" value="张测试" name="user"/>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<p>
|
||||
<label>收信用户名</label>
|
||||
<input type="text" id="user" value="张三" name="user"/>
|
||||
</p>
|
||||
<p>
|
||||
<label for="body">模板内容</label><br/>
|
||||
<textarea id="body" class="emailtext" name="body"><?php echo $this->info['body'];?></textarea>
|
||||
</p>
|
||||
|
||||
<p class="box"><input type="submit" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
|
@ -2,16 +2,16 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('系统管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div id="rightPanel">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue