usage.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <style>
  2. #categoryTable td {
  3. border: none;
  4. }
  5. </style>
  6. <?php
  7. use backend\widgets\TabWidget;
  8. echo TabWidget::widget(['list' => $this->context->menuList, 'currentMenu' => $this->context->id]);
  9. ?>
  10. <div class="panel panel-default">
  11. <?php
  12. use backend\widgets\SubTabWidget;
  13. echo SubTabWidget::widget(['list' => $this->context->subMenuList, 'currentMenu' => $this->context->action->id]);
  14. ?>
  15. <div class="panel-body">
  16. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  17. <!--
  18. <div class="row">
  19. <div class="col-xs-6" style="width:90%;">
  20. <div class="dataTables_length">
  21. <a href="/coupon/model" class="btn btn-secondary btn-single">老带新优惠券</a>
  22. </div>
  23. </div>
  24. </div>
  25. -->
  26. <div class="table-responsive">
  27. <table class="table table-bordered table-striped table-hover table-condensed">
  28. <thead>
  29. <tr class="active">
  30. <th class="no-sorting"><input type="checkbox"></th>
  31. <th>ID</th>
  32. <th>菜单名称</th>
  33. <th>用途</th>
  34. <th>优惠卷(最底消费 | 优惠额)</th>
  35. <th>前台显示</th>
  36. <th>操作</th>
  37. </tr>
  38. </thead>
  39. <tbody class="middle-align">
  40. <?php if(!empty($list)){ foreach ($list as $key => $val) { ?>
  41. <tr>
  42. <td><input type="checkbox"></td>
  43. <td><?= $val['id'] ?></td>
  44. <td><?= $val['showName'] ?></td>
  45. <td><?= $val['usageName'] ?></td>
  46. <td>
  47. <?php if(isset($couponList[$val['id']])){ ?>
  48. <?= $couponList[$val['id']]['meetAmount'] ?>元 | <?= $couponList[$val['id']]['amount'] ?>元
  49. <!--<a href="javascript:void(0);" onclick="modifyToShowCoupon(<?= $couponList[$val['id']]['id'] ?>)" style="color:blue;">修改</a>-->
  50. <?php }else{ ?>
  51. <!--<a href="javascript:void(0);" onclick="addToShowCoupon(2,<?= $val['id'] ?>,'<?= $val['usageName'] ?>')" style="color:blue;">添加</a>-->
  52. <?php } ?>
  53. </td>
  54. <td><?php if($val['isShow'] == 1){ echo '<a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a>'; } ?></td>
  55. <td>
  56. <!-- <a class="btn btn-secondary btn-single" href="javascript:void(0)" name="categoryButton" style="padding:2px 5px;">删除</a>-->
  57. </td>
  58. </tr>
  59. <?php } } ?>
  60. </tbody>
  61. </table>
  62. </div>
  63. <div class="row">
  64. <div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <!-- footer -->
  71. <?php
  72. use backend\widgets\FooterWidget;
  73. ?>
  74. <?= FooterWidget::widget() ?>
  75. <!-- footer -->