index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <a href="{:U('Option/add')}" class="btn btn-primary">新增选项</a>
  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. <th>操作</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <volist name="list" id="o" empty="$empty">
  20. <tr>
  21. <td>{$o.name}</td>
  22. <td>{$o.value}</td>
  23. <td>
  24. <switch name="o.type">
  25. <case value="select">下拉列表</case>
  26. <case value="radio">单选组</case>
  27. <case value="checkbox">多选组</case>
  28. </switch>
  29. </td>
  30. <td>
  31. <a class="btn btn-xs btn-info" href='{:U("Option/edit",array("id"=>$o["option_id"]))}'>
  32. <i class="icon-edit bigger-120"></i>
  33. </a>
  34. <a class="delete btn btn-xs btn-danger" href='{:U("Option/del",array("id"=>$o["option_id"]))}' >
  35. <i class="icon-trash bigger-120"></i>
  36. </a>
  37. </td>
  38. </tr>
  39. </volist>
  40. <tr>
  41. <td colspan="20" class="page">{$page}</td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. </div>
  48. </block>