right.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. use yii\widgets\LinkPager;
  3. ?>
  4. <?php
  5. use backend\widgets\TabWidget;
  6. echo TabWidget::widget(['list' => $this->context->menuList, 'currentMenu' => $this->context->id]);
  7. ?>
  8. <div class="panel panel-default">
  9. <?php
  10. use backend\widgets\SubTabWidget;
  11. echo SubTabWidget::widget(['list' => $this->context->subMenuList, 'currentMenu' => $this->context->action->id]);
  12. ?>
  13. <div class="panel-body">
  14. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  15. <div class="table-responsive">
  16. <table class="table table-bordered table-striped table-hover" >
  17. <thead>
  18. <tr class="active">
  19. <th class="no-sorting hidden-xs"><input type="checkbox"></th>
  20. <th class="hidden-xs">ID</th>
  21. <th>发卷人</th>
  22. <th>手机</th>
  23. <th>适用范围</th>
  24. <th>优惠金额</th>
  25. <th>最底消费额</th>
  26. <th>领卷人数</th>
  27. <th>操作</th>
  28. </tr>
  29. </thead>
  30. <tbody class="middle-align">
  31. <?php if(!empty($list)){ foreach($list as $key => $val){ ?>
  32. <tr>
  33. <td class="hidden-xs"><input type="checkbox"></td>
  34. <td class="hidden-xs"><?= $val['id'];?></td>
  35. <td><?= isset($userInfo[$val['userId']]['userName']) ? $userInfo[$val['userId']]['userName'] : ''; ?></td>
  36. <td></td>
  37. <td>
  38. <?php
  39. if($val['type'] == 0){
  40. //0通用卷 1产品分类卷 2商品用途卷
  41. echo '所有';
  42. }elseif($val['type']==1){
  43. echo isset($categoryList[$val['targetId']]) ? $categoryList[$val['targetId']]['categoryName'] : '';
  44. }elseif($val['type']==2){
  45. echo isset($usageList[$val['targetId']]) ? $usageList[$val['targetId']]['usageName'] : '';
  46. }else{
  47. }
  48. ?>
  49. </td>
  50. <td><?= $val['amount'];?></td>
  51. <td><?= $val['meetAmount'];?></td>
  52. <td><?= $val['getNum'];?></td>
  53. <td>
  54. </td>
  55. </tr>
  56. <?php }} ?>
  57. </tbody>
  58. </table>
  59. </div>
  60. <div class="row">
  61. <div>
  62. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  63. <?= LinkPager::widget(['pagination' => $pages]); ?>
  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 -->