admin_index.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <include file="public@head" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a>评论管理</a></li>
  7. </ul>
  8. <form class="well form-inline margin-top-20" method="post" action="{:cmf_plugin_url('DComment://AdminIndex/index')}">
  9. 状态:
  10. <select class="form-control" name="status" style="width: 80px;">
  11. <option value='-1'>全部</option>
  12. <option value="0" <eq name='status' value='0'>selected</eq>>待审核</option>
  13. <option value="1" <eq name='status' value='1'>selected</eq>>已通过</option>
  14. </select> &nbsp;&nbsp;
  15. 时间:
  16. <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
  17. value="{$start_time|default=''}"
  18. style="width: 140px;" autocomplete="off">-
  19. <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
  20. value="{$end_time|default=''}"
  21. style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
  22. 用户:
  23. <input type="text" class="form-control" name="username" style="width: 120px;"
  24. value="{$username|default=''}" placeholder="请输入用户名">&nbsp; &nbsp;
  25. 关键字:
  26. <input type="text" class="form-control" name="keyword" style="width: 120px;"
  27. value="{$keyword|default=''}" placeholder="请输入关键字...">
  28. <input type="submit" class="btn btn-primary" value="搜索"/>
  29. <a class="btn btn-danger" href="{:cmf_plugin_url('DComment://AdminIndex/index')}">清空</a>
  30. </form>
  31. <form class="js-ajax-form" action="" method="post">
  32. <div class="table-actions">
  33. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit" data-action="{:cmf_plugin_url('DComment://AdminIndex/pass')}" data-subcheck="true">审核通过
  34. </button>
  35. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
  36. data-action="{:cmf_plugin_url('DComment://AdminIndex/delall')}" data-subcheck="true" data-msg="您确定删除吗?">
  37. {:lang('DELETE')}
  38. </button>
  39. </div>
  40. <table class="table table-hover table-bordered table-list margin-top-10">
  41. <thead>
  42. <tr>
  43. <th width="15">
  44. <label>
  45. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  46. </label>
  47. </th>
  48. <th width="50">ID</th>
  49. <th width="200">文章标题</th>
  50. <th width="100">评论用户</th>
  51. <th>评论内容</th>
  52. <th width="80">状态</th>
  53. <th width="200">评论时间</th>
  54. <th width="100">操作</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <foreach name="list" item="vo">
  59. <php>$url = json_decode(base64_decode($vo['url']),true);</php>
  60. <tr>
  61. <td>
  62. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  63. value="{$vo.id}" title="ID:{$vo.id}">
  64. </td>
  65. <td>{$vo.id}</td>
  66. <td>{$vo.more}</td>
  67. <td >{$vo.username}</td>
  68. <td><gt name="vo.parent_id" value="0">@{$vo.to_username}&nbsp;<br /></gt>{$vo.content}</td>
  69. <td><eq name="vo.status" value="1">通过<else/>待审核</eq></td>
  70. <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
  71. <td>
  72. <a target="_blank" href="{:cmf_url($url['action'],array('id'=>$url['param']['id'],'cid'=>$url['param']['cid']))}#comment{$vo.id}">查看</a>
  73. <a href="{:cmf_plugin_url('DComment://AdminIndex/del',array('id'=>$vo.id,'oid'=>$vo.object_id))}" class="js-ajax-delete">{:lang('DELETE')}</a>
  74. </td>
  75. </tr>
  76. </foreach>
  77. </tbody>
  78. </table>
  79. </form>
  80. <ul class="pagination">{$page|default=''}</ul>
  81. </div>
  82. <script src="__STATIC__/js/admin.js"></script>
  83. </body>
  84. </html>