goods_selector.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <table class="table" cellspacing="0" width="100%">
  2. <thead>
  3. <tr>
  4. <td>
  5. 商品
  6. </td>
  7. <td>
  8. 商品价格
  9. </td>
  10. <td>
  11. 库存
  12. </td>
  13. <td>
  14. 操作
  15. </td>
  16. </tr>
  17. </thead>
  18. <tbody class="ui-sortable container">
  19. <?php if( empty($list)){ ?>
  20. <tr>
  21. <td colspan="4" style="text-align: center">
  22. 查不到任何商品
  23. </td>
  24. </tr>
  25. <?php } ?>
  26. <?php foreach($list as $key => $goods){ ?>
  27. <tr>
  28. <td>
  29. <img src="{:tomedia($goods['thumb'])}"
  30. style="width:30px;height:30px;float:left;margin-right:12px">
  31. {$goods['goodsname']}
  32. </td>
  33. <td>
  34. ¥{$goods['price']}
  35. </td>
  36. <td>
  37. {$goods['total']}
  38. </td>
  39. <td>
  40. <a href="javascript:void(0);" class="label label-primary selectit" data-id="{$goods['id']}" data-json='{:json_encode($goods);}'>
  41. 选择
  42. </a>
  43. </td>
  44. </tr>
  45. <?php } ?>
  46. </tbody>
  47. </table>
  48. <div style="text-align:right;width:100%;position: absolute;bottom: 0;right:30px;">
  49. <div>
  50. <ul class="pagination pagination-centered">
  51. <?php foreach($page_num_arr as $k => $num){ ?>
  52. <li <?php if( $num == $page){ ?>class="active"<?php } ?>>
  53. <a href="javascript:;" page="{$num}" class="pager-nav">
  54. {$num}
  55. </a>
  56. </li>
  57. <?php } ?>
  58. <li>
  59. <a href="javascript:;" page="{php echo $page+1}" class="pager-nav">
  60. 下一页»
  61. </a>
  62. </li>
  63. <li>
  64. <a href="javascript:;" page="{$total}" class="pager-nav" class="page-raduis">
  65. 尾页
  66. </a>
  67. </li>
  68. <li>
  69. <input type="text" class="page-raduis" value="1">
  70. </li>
  71. <li>
  72. <a href="javascript:;" page="1" class="pager-nav">
  73. 跳转
  74. </a>
  75. </li>
  76. </ul>
  77. <span class="record">共{$count}条记录</span>
  78. </div>
  79. </div>