Commit 7263eac2 by 冷斌

add

parent 72271018
...@@ -4,45 +4,38 @@ ...@@ -4,45 +4,38 @@
<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"> <table class="table table-hover table-bordered">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button> <thead>
</div> <tr>
<th>排序</th>
<table class="table table-hover table-bordered"> <th align="center">ID</th>
<thead> <th>名称</th>
<tr> <th>颜色</th>
<th>排序</th> <th align="center">{:L('ACTIONS')}</th>
<th align="center">ID</th> </tr>
<th>名称</th> </thead>
<th>颜色</th> <tbody>
<th align="center">{:L('ACTIONS')}</th> <foreach name="lists" item="vo">
</tr> <tr>
</thead> <td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
<tbody> <td align="center">{$vo.id}</td>
<foreach name="lists" item="vo"> <td>{$vo['name']}</td>
<tr> <td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td>
<td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td> <td align="center">
<td align="center">{$vo.id}</td> <a href="{:U('Impression/edit',array('id'=>$vo['id']))}" >编辑</a>
<td>{$vo['name']}</td> |
<td><input style="width:50px;height:20px;background:#{$vo['colour']};" disabled/></td> <a href="{:U('Impression/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a>
<td align="center"> </td>
<a href="{:U('Impression/edit',array('id'=>$vo['id']))}" >编辑</a> </tr>
| </foreach>
<a href="{:U('Impression/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a> </tbody>
</td> </table>
</tr> <div class="pagination">{$page}</div>
</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>
</div> </div>
<script src="__PUBLIC__/js/common.js"></script> <script src="__PUBLIC__/js/common.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -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