人人商城

coupon-model.html 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <table class="table table-hover table-bordered">
  2. <thead>
  3. <tr>
  4. <th width="130">标题</th>
  5. <th>类型</th>
  6. <th width="100">使用条件</th>
  7. <th>折扣/减免</th>
  8. <th>发行/已领</th>
  9. <th width="185">使用期限</th>
  10. <th class="text-right">操作</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {loop $data $da}
  15. <tr>
  16. <td>{$da['title']}</td>
  17. <td>
  18. {if $da['type'] == 1}
  19. <span class="label label-success">折扣券</span>
  20. {else}
  21. <span class="label label-danger">代金券</span>
  22. {/if}
  23. </td>
  24. <td>满{$da['condition']}元</td>
  25. <td>
  26. {if $da['type'] == 1}
  27. {$da['discount']}折
  28. {else}
  29. {$da['discount']}元
  30. {/if}
  31. </td>
  32. <td>
  33. {$da['amount']}/<strong class="text-danger">{$da['dosage']}</strong>
  34. </td>
  35. <td>
  36. {php echo date('Y-m-d', $da['starttime'])} ~ {php echo date('Y-m-d', $da['endtime'])}
  37. </td>
  38. <td align="right">
  39. <a href="javascript:;" class="btn btn-default" data-id="{$da['couponid']}" data-title="{$da['title']}">选取</a>
  40. </td>
  41. </tr>
  42. {/loop}
  43. </tbody>
  44. </table>