index.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {extend name="public/container"}
  2. {block name="content"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox">
  6. <div class="ibox-content">
  7. <div class="row">
  8. <div class="m-b m-l">
  9. <form action="" class="form-inline">
  10. <!-- <select name="is_fail" aria-controls="editable" class="form-control input-sm">-->
  11. <!-- <option value="">是否有效</option>-->
  12. <!-- <option value="1" {eq name="where.is_fail" value="1"}selected="selected"{/eq}>是</option>-->
  13. <!-- <option value="0" {eq name="where.is_fail" value="0"}selected="selected"{/eq}>否</option>-->
  14. <!-- </select>-->
  15. <select name="status" aria-controls="editable" class="form-control input-sm">
  16. <option value="">状态</option>
  17. <option value="1" {eq name="where.status" value="1"}selected="selected"{/eq}>已使用</option>
  18. <option value="0" {eq name="where.status" value="0"}selected="selected"{/eq}>未使用</option>
  19. <option value="2" {eq name="where.status" value="2"}selected="selected"{/eq}>已过期</option>
  20. </select>
  21. <div class="input-group">
  22. <input type="text" name="nickname" value="{$where.nickname}" placeholder="请输入发放人姓名" class="input-sm form-control"> <span class="input-group-btn">
  23. </div>
  24. <div class="input-group">
  25. <input type="text" name="coupon_title" value="{$where.coupon_title}" placeholder="请输入优惠券名称" class="input-sm form-control"> <span class="input-group-btn">
  26. <button type="submit" class="btn btn-sm btn-primary"> <i class="fa fa-search" ></i>搜索</button> </span>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. <div class="table-responsive">
  32. <table class="table table-striped table-bordered">
  33. <thead>
  34. <tr>
  35. <th class="text-center">编号</th>
  36. <th class="text-center">优惠券名称</th>
  37. <th class="text-center">发放人</th>
  38. <th class="text-center">优惠券面值</th>
  39. <th class="text-center">优惠券最低消费</th>
  40. <th class="text-center">优惠券开始使用时间</th>
  41. <th class="text-center">优惠券结束使用时间</th>
  42. <th class="text-center">获取放方式</th>
  43. <th class="text-center">是否可用</th>
  44. <th class="text-center">状态</th>
  45. </tr>
  46. </thead>
  47. <tbody class="">
  48. {volist name="list" id="vo"}
  49. <tr>
  50. <td class="text-center">
  51. {$vo.id}
  52. </td>
  53. <td class="text-center">
  54. {$vo.coupon_title}
  55. </td>
  56. <td class="text-center">
  57. {$vo.nickname}
  58. </td>
  59. <td class="text-center">
  60. {$vo.coupon_price}
  61. </td>
  62. <td class="text-center">
  63. {$vo.use_min_price}
  64. </td>
  65. <td class="text-center">
  66. {$vo.add_time|date='Y-m-d H:i:s'}
  67. </td>
  68. <td class="text-center">
  69. {$vo.end_time|date='Y-m-d H:i:s'}
  70. </td>
  71. <td class="text-center">
  72. {$vo.type == 'send' ? '后台发放' : '手动领取'}
  73. </td>
  74. <td class="text-center">
  75. {if condition="$vo['status'] eq 0" && $vo['is_fail'] eq 0}
  76. <i class="fa fa-check text-navy"></i>
  77. {else/}
  78. <i class="fa fa-close text-danger"></i>
  79. {/if}
  80. </td>
  81. <td class="text-center">
  82. {if condition="$vo['status'] eq 2"}
  83. 已过期
  84. {elseif condition="$vo['status'] eq 1"/}
  85. 已使用
  86. {else/}
  87. 未使用
  88. {/if}
  89. </td>
  90. </tr>
  91. {/volist}
  92. </tbody>
  93. </table>
  94. </div>
  95. {include file="public/inner_page"}
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. {/block}