Commit 7263eac2 by 冷斌

add

parent 72271018
......@@ -4,45 +4,38 @@
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a >列表</a></li>
<li><a href="{:U('Impression/add')}">添加</a></li>
<li><a href="{:U('Impression/add2')}">添加</a></li>
</ul>
<form method="post" class="js-ajax-form" action="{:U('Impression/listorders')}">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
</div>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>排序</th>
<th align="center">ID</th>
<th>名称</th>
<th>颜色</th>
<th align="center">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
<td align="center">{$vo.id}</td>
<td>{$vo['name']}</td>
<td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td>
<td align="center">
<a href="{:U('Impression/edit',array('id'=>$vo['id']))}" >编辑</a>
|
<a href="{:U('Impression/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
</div>
</form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>排序</th>
<th align="center">ID</th>
<th>名称</th>
<th>颜色</th>
<th align="center">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
<td align="center">{$vo.id}</td>
<td>{$vo['name']}</td>
<td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td>
<td align="center">
<a href="{:U('Impression/edit',array('id'=>$vo['id']))}" >编辑</a>
|
<a href="{:U('Impression/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
</html>
......@@ -141,7 +141,7 @@ class ImpressionController extends AdminbaseController {
$gift_model=M("impression_label");
$count=$gift_model->count();
$page = $this->page($count, 20);
$page = $this->page($count, 2);
$lists = $gift_model
//->where()
->order("orderno asc, id desc")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment