user.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. use yii\widgets\LinkPager;
  3. use common\components\stringUtil;
  4. ?>
  5. <div class="page-title">
  6. <div class="title-env">
  7. <h1 class="title"><?= $user['userName'] ?>的购物车明细</h1>
  8. </div>
  9. <div class="breadcrumb-env">
  10. <ol class="breadcrumb bc-1">
  11. <li>
  12. <a href="/"><i class="fa-home"></i>Home</a>
  13. </li>
  14. <li>
  15. <a href="javascript:void(0)">商城管理</a>
  16. </li>
  17. <li class="active">
  18. <strong>购物车</strong>
  19. </li>
  20. </ol>
  21. </div>
  22. </div>
  23. <div class="panel panel-default">
  24. <div class="panel-body">
  25. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  26. <div class="table-responsive">
  27. <table class="table table-bordered table-striped table-hover" >
  28. <thead>
  29. <tr class="active">
  30. <th>图片</th>
  31. <th>商品名</th>
  32. <th>数量</th>
  33. <th>操作</th>
  34. </tr>
  35. </thead>
  36. <tbody class="middle-align">
  37. <?php if(!empty($cart)){ foreach($cart as $key => $val){ ?>
  38. <tr>
  39. <td>
  40. <img src="/images/newGrey.gif" class="lazy" data-original="<?php echo Yii::$app->params['imgUrl'].$val['goodsInfo']['cover'];?>" onerror="javascript:this.src='/images/nopicture.png';" width="20" />
  41. </td>
  42. <td><?php echo $val['goodsInfo']['goodsName'];?></td>
  43. <td class="hidden-xs"><?php echo $val['num'];?></td>
  44. <td>
  45. <a href="/cart/detail?userId=<?= $user['id'] ?>&goodsId=<?= $val['goodsInfo']['id'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">详细</a>
  46. </td>
  47. </tr>
  48. <?php } } ?>
  49. </tbody>
  50. </table>
  51. </div>
  52. <div class="row">
  53. <div>
  54. <!--
  55. <div style="display:inline-block;margin-left:15px;">
  56. <label><select name="example-1_length"
  57. aria-controls="example-1" class="form-control">
  58. <option value="0">批量操作</option>
  59. <option value="1">批量下架</option>
  60. <option value="2">批量删除</option>
  61. </select>
  62. </label>
  63. <input class="btn btn-secondary btn-single" type="submit" name="" value="确认" />
  64. </div>
  65. -->
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- footer -->
  72. <?php
  73. use backend\widgets\FooterWidget;
  74. ?>
  75. <?= FooterWidget::widget()?>
  76. <!-- footer -->