1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <table class="table" cellspacing="0" width="100%">
- <thead>
- <tr>
- <td>
- 商品
- </td>
- <td>
- 商品价格
- </td>
- <td>
- 库存
- </td>
- <td>
- 操作
- </td>
- </tr>
- </thead>
- <tbody class="ui-sortable container">
- <?php if( empty($list)){ ?>
- <tr>
- <td colspan="4" style="text-align: center">
- 查不到任何商品
- </td>
- </tr>
- <?php } ?>
- <?php foreach($list as $key => $goods){ ?>
- <tr>
- <td>
- <img src="{:tomedia($goods['thumb'])}"
- style="width:30px;height:30px;float:left;margin-right:12px">
- {$goods['goodsname']}
- </td>
- <td>
- ¥{$goods['price']}
- </td>
- <td>
- {$goods['total']}
- </td>
- <td>
- <a href="javascript:void(0);" class="label label-primary selectit" data-id="{$goods['id']}" data-json='{:json_encode($goods);}'>
- 选择
- </a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <div style="text-align:right;width:100%;position: absolute;bottom: 0;right:30px;">
- <div>
- <ul class="pagination pagination-centered">
- <?php foreach($page_num_arr as $k => $num){ ?>
- <li <?php if( $num == $page){ ?>class="active"<?php } ?>>
- <a href="javascript:;" page="{$num}" class="pager-nav">
- {$num}
- </a>
- </li>
- <?php } ?>
- <li>
- <a href="javascript:;" page="{php echo $page+1}" class="pager-nav">
- 下一页»
- </a>
- </li>
- <li>
- <a href="javascript:;" page="{$total}" class="pager-nav" class="page-raduis">
- 尾页
- </a>
- </li>
- <li>
- <input type="text" class="page-raduis" value="1">
- </li>
- <li>
- <a href="javascript:;" page="1" class="pager-nav">
- 跳转
- </a>
- </li>
- </ul>
- <span class="record">共{$count}条记录</span>
- </div>
- </div>
|