dlincoupon.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <link rel="stylesheet" type="text/css" href="../addons/zh_jdgjb/template/public/ygcsslist.css">
  4. <style type="text/css">
  5. .storespan2{font-size: 14px;color: white;margin: 5px;position: relative;background-color: #44abf7;}
  6. .storespan2:hover{color: #fff;}
  7. .storespan2:hover .bianji{display: block;}
  8. .rcbox{font-size: 14px;padding-top: 5px;padding-bottom: 5px;height: 44px;}
  9. .rcinput{width: 300px;height: 30px;border:1px solid #666;text-indent: 1em;}
  10. .rczuo,.rczuo2{display: none;position: absolute;z-index: 10;}
  11. </style>
  12. <ul class="nav nav-tabs">
  13. <span class="ygxian"></span>
  14. <div class="ygdangq">当前位置:</div>
  15. <li class="active"><a href="{php echo $this->createWebUrl2('dlincoupon')}">优惠券管理</a></li>
  16. <li><a href="{php echo $this->createWebUrl2('dlinaddcoupon')}">添加优惠券</a></li>
  17. </ul>
  18. </ul>
  19. <div class="row ygrow">
  20. <div class="col-lg-12">
  21. </div>
  22. </div>
  23. <div class="main">
  24. <div class="panel panel-default">
  25. <div class="panel-heading">全部优惠券</div>
  26. <div class="table-responsive">
  27. <table class="col-md-12">
  28. <tr class="yg5_tr1">
  29. <td class="store_td1 col-md-1">优惠券名称</td>
  30. <td class="col-md-1">优惠条件</td>
  31. <td class="col-md-1">优惠金额</td>
  32. <td class="col-md-1">开始时间</td>
  33. <td class="col-md-1">结束时间</td>
  34. <td class="col-md-1">数量</td>
  35. <td class="col-md-1">领取数量</td>
  36. <td class="col-md-2">操作</td>
  37. </tr>
  38. {loop $list $key $item}
  39. <tr class="yg5_tr2">
  40. <td>
  41. {$item['name']}
  42. </td>
  43. <td >
  44. {$item['conditions']}
  45. </td>
  46. <td >
  47. {$item['cost']}
  48. </td>
  49. <td >
  50. {$item['start_time']}
  51. </td>
  52. <td >
  53. {$item['end_time']}
  54. </td>
  55. <td >
  56. {$item['number']}
  57. </td>
  58. <td >
  59. {$item['lq_num']}
  60. </td>
  61. <td >
  62. <a href="{php echo $this->createWebUrl2('dlinlqlist',array('id'=>$item['id']));}" class="storespan btn btn-xs">
  63. <span class="fa fa-database"></span>
  64. <span class="bianji">查看领取记录
  65. <span class="aritemdown"></span>
  66. </span>
  67. </a>
  68. <a href="{php echo $this->createWebUrl2('dlinaddcoupon',array('id'=>$item['id']));}" class="storespan btn btn-xs">
  69. <span class="fa fa-pencil"></span>
  70. <span class="bianji">编辑
  71. <span class="arrowdown"></span>
  72. </span>
  73. </a>
  74. <a class="storespan btn btn-xs" href="{php echo $this->createWebUrl2('dlincoupon', array('id'=>$item['id'],'op'=>'delete'))}" onclick="return confirm('确认删除吗?');return false;">
  75. <span class="fa fa-trash-o"></span>
  76. <span class="bianji">删除
  77. <span class="arrowdown"></span>
  78. </span>
  79. </a>
  80. <!-- <a href="{php echo $this->createWebUrl('orderinfo',array('id'=>$item['id']));}"><button class="btn btn-success btn-xs">查看</button></a>
  81. <a class="btn btn-danger btn-xs" href="{php echo $this->createWebUrl('zcorder', array('id'=>$item['id'],'op'=>'delete'))}" onclick="return confirm('确认删除吗?');return false;" title="删除">删</a> -->
  82. </td>
  83. <!-- <td> {$pager}</td> -->
  84. </tr>
  85. {/loop}
  86. {if empty($list)}
  87. <tr>
  88. <td colspan="4" style="padding: 10px 30px;">
  89. 暂无优惠券信息
  90. </td>
  91. </tr>
  92. {/if}
  93. </table>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="text-right we7-margin-top">{$pager}</div>
  98. <script type="text/javascript">
  99. $(function(){
  100. $("#frame-4").show();
  101. $("#yframe-4").addClass("wyactive");
  102. })
  103. </script>
  104. {template 'common/footer'}