Commit 7263eac2 by 冷斌

add

parent 72271018
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
<div class="wrap"> <div class="wrap">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a >列表</a></li> <li class="active"><a >列表</a></li>
<li><a href="{:U('Impression/add')}">添加</a></li> <li><a href="{:U('Impression/add2')}">添加</a></li>
</ul> </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"> <table class="table table-hover table-bordered">
<thead> <thead>
...@@ -38,10 +34,7 @@ ...@@ -38,10 +34,7 @@
</tbody> </tbody>
</table> </table>
<div class="pagination">{$page}</div> <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>
</div> </div>
<script src="__PUBLIC__/js/common.js"></script> <script src="__PUBLIC__/js/common.js"></script>
</body> </body>
......
...@@ -141,7 +141,7 @@ class ImpressionController extends AdminbaseController { ...@@ -141,7 +141,7 @@ class ImpressionController extends AdminbaseController {
$gift_model=M("impression_label"); $gift_model=M("impression_label");
$count=$gift_model->count(); $count=$gift_model->count();
$page = $this->page($count, 20); $page = $this->page($count, 2);
$lists = $gift_model $lists = $gift_model
//->where() //->where()
->order("orderno asc, id desc") ->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