printer_express.html
2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{template 'common/header'}
<ul class="nav nav-tabs">
<li {if $op == 'create_express'}class="active"{/if}><a href="{php echo $this->createWebUrl('printer', array('op' => 'create_express'));}">新建快递单模板</a></li>
<li {if $op == 'express'}class="active"{/if}><a href="{php echo $this->createWebUrl('printer', array('op' => 'express'))}">快递单模板管理</a></li>
<li {if $op == 'create_normal'}class="active"{/if}><a href="{php echo $this->createWebUrl('printer', array('op' => 'create_normal'));}">新建发货单打印模板</a></li>
<li {if $op == 'normal'}class="active"{/if}><a href="{php echo $this->createWebUrl('printer', array('op' => 'normal'));}">发货单打印模板管理</a></li>
</ul>
<div class="main">
<div class="panel panel-default">
<div class="panel-heading">模版管理</div>
<div class="panel-body table-responsive">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th class="row-hover" style="text-align:center;">序号</th>
<th class="row-hover" style="text-align:center;">模板名称</th>
<th class="row-hover" style="text-align:center;">修改时间</th>
<th class="row-hover" style="text-align:center;">是否默认</th>
<th class="row-hover" style="width:250px;text-align:center;">操作</th>
</tr>
</thead>
<tbody>
{php $index=1}
{loop $list $item}
<tr>
<td style="text-align:center;">{php echo $index++;}</td>
<td style="text-align:center;">{$item['name']}</td>
<td style="text-align:center;">{php echo date('Y-m-d H:i:s', $item['createtime'])}</td>
<td style="text-align:center;">{php echo $item['isdefault']==1?'是':'否'}</td>
<td style="width:250px;text-align:center;"><a href="{php echo $this->createWebUrl('printer', array('op' => 'set_express','id'=>$item['id']));}">设为默认模板</a>
<a target="_blank" href="{php echo $this->createWebUrl('printer', array('op' => 'preview_express', 'id' => $item['id']))}">预览</a>
<a href="{php echo $this->createWebUrl('printer', array('op' => 'edit_express', 'id' => $item['id']))}">编辑</a>
<a onclick="return confirm('此操作不可恢复,确认删除?');" href="{php echo $this->createWebUrl('printer', array('op' => 'del_express', 'id' => $item['id']))}">删除</a>
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
</div>
</div>
{template 'common/footer'}