index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <a href="{:U('Blog/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、文章类型为:“拼团介绍” 的目前仅需要添加1篇文章即可
  11. </div>
  12. </div>
  13. <div class="col-xs-12">
  14. <div class="table-responsive">
  15. <table class="table table-striped table-bordered table-hover">
  16. <thead>
  17. <tr>
  18. <th>ID</th>
  19. <th>文章标题</th>
  20. <th>文章类型</th>
  21. <th>发布</th>
  22. <th>创建时间</th>
  23. <th>操作</th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <volist name="list" id="data" empty="$empty">
  28. <tr>
  29. <td>{$data.blog_id}</td>
  30. <td>{$data.title}</td>
  31. <td>{$data.}
  32. <?php if(empty($data['type']))
  33. {
  34. echo '无效类型';
  35. }else {
  36. echo $blog_type[$data['type']];
  37. }
  38. ?>
  39. </td>
  40. <td>
  41. <switch name="data.status">
  42. <case value="1">
  43. <span class="green bold">是</span>
  44. </case>
  45. <case value="0">
  46. <span class="red bold">否</span>
  47. </case>
  48. </switch>
  49. </td>
  50. <td>{$data.create_time}</td>
  51. <td>
  52. <a class="btn btn-xs btn-info" href='{:U("Blog/edit",array("id"=>$data["blog_id"]))}'>
  53. <i class="icon-edit bigger-120"></i>
  54. </a>
  55. <a class="delete btn btn-xs btn-danger" href='{:U("Blog/del",array("id"=>$data["blog_id"]))}' >
  56. <i class="icon-trash bigger-120"></i>
  57. </a>
  58. </td>
  59. </tr>
  60. </volist>
  61. <tr>
  62. <td colspan="20" class="page">{$page}</td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </div>
  67. </div>
  68. </div>
  69. </block>