index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <span class="btn btn-primary">支付方式</span>
  5. </div>
  6. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="table-responsive">
  9. <table class="table table-striped table-bordered table-hover">
  10. <thead>
  11. <tr>
  12. <th>支付方式</th>
  13. <th>状态</th>
  14. <th>操作</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <volist name="list" id="data" empty="$empty">
  19. <tr>
  20. <td>{$data.payment_name}</td>
  21. <td>
  22. <switch name="data.payment_state">
  23. <case value="1">
  24. <span class="green bold">启用</span>
  25. </case>
  26. <case value="0">
  27. <span class="red bold">禁用</span>
  28. </case>
  29. </switch>
  30. </td>
  31. <td>
  32. <a class="btn btn-xs btn-info" href='{:U("Payment/edit",array("code"=>$data["payment_code"]))}' >
  33. <i class="icon-edit bigger-120"></i>
  34. </a>
  35. </td>
  36. </tr>
  37. </volist>
  38. <tr>
  39. <td colspan="5" class="page">{$page}</td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. </div>
  46. </block>