index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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>ID</th>
  13. <th>文章</th>
  14. <th>名字</th>
  15. <th>邮箱</th>
  16. <th>内容</th>
  17. <th>地区</th>
  18. <th>时间</th>
  19. <th>设备</th>
  20. <th>状态</th>
  21. <th>操作</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <volist name="list" id="data" empty="$empty">
  26. <tr>
  27. <td>{$data.reply_id}</td>
  28. <td><a target="_blank" href="__ROOT__/blog/{$data.blog_id}">{$data.blog_title}</a></td>
  29. <td>{$data.title}</td>
  30. <td>{$data.email}</td>
  31. <td>{$data.content}</td>
  32. <td>{$data.ip_region}</td>
  33. <td>{$data.create_time}</td>
  34. <td>{$data.device}</td>
  35. <td>
  36. <switch name="data.status">
  37. <case value="1">
  38. <span class="green bold">启用</span>
  39. </case>
  40. <case value="0">
  41. <span class="red bold">禁言</span>
  42. </case>
  43. </switch>
  44. </td>
  45. <td>
  46. <?php if($data['status']==0){ ?>
  47. <a class="delete btn btn-xs btn-info" href='{:U("BlogReply/set_status",array("id"=>$data["reply_id"],status=>1))}' >
  48. <i class="icon-eye-open bigger-120"></i>
  49. </a>
  50. <?php }else{ ?>
  51. <a class="delete btn btn-xs btn-danger" href='{:U("BlogReply/set_status",array("id"=>$data["reply_id"],status=>0))}' >
  52. <i class="icon-trash bigger-120"></i>
  53. </a>
  54. <?php } ?>
  55. </td>
  56. </tr>
  57. </volist>
  58. <tr>
  59. <td colspan="20" class="page">{$page}</td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. </div>
  64. </div>
  65. </div>
  66. </block>