index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <a href="{:U('Special/add')}" class="btn btn-primary">添加专题</a>
  5. </div>
  6. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="alert alert-block alert-success">
  9. 1.点击添加专题按钮可以添加新的专题,专题描述可以点击后直接修改<br/>
  10. 2.点击编辑按钮对专题内容进行修改<br/>
  11. 3.点击删除按钮可以删除整个专题
  12. </div>
  13. </div>
  14. <div class="col-xs-12">
  15. <div class="table-responsive">
  16. <table class="table table-striped table-bordered table-hover">
  17. <thead>
  18. <tr>
  19. <th>专题编号</th>
  20. <th>专题描述</th>
  21. <th>专题地址</th>
  22. <th>背景颜色</th>
  23. <th>背景图片</th>
  24. <th>操作</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <volist name="list" id="data" empty="$empty">
  29. <tr>
  30. <td>{$data.special_id}</td>
  31. <td>{$data.special_desc}</td>
  32. <td>index.php?s=/Special/index/special_id/{$data.special_id}</td>
  33. <td>
  34. <?php if(empty($data['special_bgcolor']))
  35. {
  36. echo '白色';
  37. }else {
  38. echo $data['special_bgcolor'];
  39. }
  40. ?>
  41. </td>
  42. <td>
  43. <?php if(empty($data['special_bgimage']))
  44. {
  45. echo '无';
  46. }else { ?>
  47. <img src="{$data.image}" width="50" />
  48. <?php } ?>
  49. </td>
  50. <td>
  51. <a class="btn btn-xs btn-info" href='{:U("Special/edit",array("special_id"=>$data["special_id"]))}'>
  52. <i class="icon-edit bigger-120"></i>编辑
  53. </a>
  54. <a class="btn btn-xs btn-info" href='{:U("Special/addGoods",array("special_id"=>$data["special_id"]))}'>
  55. <i class="icon-edit bigger-120"></i>制作专题
  56. </a>
  57. <a class="delete btn btn-xs btn-danger" href='{:U("Special/del",array("special_id"=>$data["special_id"]))}' >
  58. <i class="icon-trash bigger-120"></i>删除
  59. </a>
  60. </td>
  61. </tr>
  62. </volist>
  63. <tr>
  64. <td colspan="20" class="page">{$page}</td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. </block>