recyclebin.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <admintpl file="header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:U('AdminPost/recyclebin')}">{:L('PORTAL_ADMINPOST_RECYCLEBIN')}</a></li>
  7. </ul>
  8. <form class="well form-inline margin-top-20" method="post" action="{:U('AdminPost/recyclebin')}">
  9. 分类:
  10. <select class="form-control" name="term" style="width: 140px;">
  11. <option value='0'>全部</option>{$taxonomys}
  12. </select> &nbsp;&nbsp;
  13. 时间:
  14. <input type="text" class="form-control js-datetime" name="start_time" value="{$formget.start_time|default=''}" style="width: 140px;" autocomplete="off">-
  15. <input type="text" class="form-control js-datetime" name="end_time" value="{$formget.end_time}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
  16. 关键字:
  17. <input type="text" class="form-control" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入关键字...">
  18. <input type="submit" class="btn btn-primary" value="搜索" />
  19. <a class="btn btn-danger" href="{:U('AdminPost/recyclebin')}">清空</a>
  20. </form>
  21. <form class="js-ajax-form" method="post">
  22. <div class="table-actions">
  23. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" data-action="{:U('AdminPost/clean')}" data-subcheck="true" data-msg="你确定删除吗?删除后无法恢复!">{:L('DELETE')}</button>
  24. </div>
  25. <table class="table table-hover table-bordered table-list">
  26. <thead>
  27. <tr>
  28. <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
  29. <th width="50">ID</th>
  30. <th>{:L('TITLE')}</th>
  31. <th width="50">{:L('AUTHOR')}</th>
  32. <th width="60">{:L('HITS')}</th>
  33. <th width="60">{:L('COMMENT_COUNT')}</th>
  34. <th>{:L('KEYWORDS')}/{:L('SOURCE')}/{:L('ABSTRACT')}/{:L('THUMBNAIL')}</th>
  35. <th width="130">{:L('PUBLISH_DATE')}</th>
  36. <th width="70">{:L('STATUS')}</th>
  37. <th width="90">{:L('ACTIONS')}</th>
  38. </tr>
  39. </thead>
  40. <php>
  41. $status=array("1"=>"已审核","0"=>"未审核");
  42. $top_status=array("1"=>"已置顶","0"=>"未置顶");
  43. $recommend_status=array("1"=>"已推荐","0"=>"未推荐");
  44. </php>
  45. <foreach name="posts" item="vo">
  46. <tr>
  47. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[{$vo.id}]" value="{$vo.id}"></td>
  48. <td><b>{$vo.id}</b></td>
  49. <td>{$vo.post_title}</td>
  50. <td>{$vo.user_nicename|default=$vo.user_login}</td>
  51. <td>{$vo.post_hits}</td>
  52. <td>
  53. <notempty name="vo.comment_count">
  54. <a href="javascript:parent.openIframeDialog('{:U('comment/commentadmin/index',array('post_id'=>$vo['id']))}','评论列表')">{$vo.comment_count}</a>
  55. <else/>
  56. {$vo.comment_count}
  57. </notempty>
  58. </td>
  59. <td>
  60. <notempty name="vo.post_keywords">
  61. <i class="fa fa-check fa-fw"></i>
  62. <else/>
  63. <i class="fa fa-close fa-fw"></i>
  64. </notempty>
  65. <notempty name="vo.post_source">
  66. <i class="fa fa-check fa-fw"></i>
  67. <else/>
  68. <i class="fa fa-close fa-fw"></i>
  69. </notempty>
  70. <notempty name="vo.post_excerpt">
  71. <i class="fa fa-check fa-fw"></i>
  72. <else/>
  73. <i class="fa fa-close fa-fw"></i>
  74. </notempty>
  75. <php>$smeta=json_decode($vo['smeta'],true);</php>
  76. <notempty name="smeta.thumb">
  77. <a href="javascript:imagePreviewDialog('{:sp_get_image_preview_url($smeta['thumb'])}');">
  78. <i class="fa fa-photo fa-fw"></i>
  79. </a>
  80. </notempty>
  81. </td>
  82. <td>{:date('Y-m-d H:i',strtotime($vo['post_date']))}</td>
  83. <td>
  84. <notempty name="vo.post_status">
  85. <a data-toggle="tooltip" title="已审核"><i class="fa fa-check"></i></a>
  86. <else/>
  87. <a data-toggle="tooltip" title="未审核"><i class="fa fa-close"></i></a>
  88. </notempty>
  89. <notempty name="vo.istop">
  90. <a data-toggle="tooltip" title="已置顶"><i class="fa fa-arrow-up"></i></a>
  91. </notempty>
  92. <notempty name="vo.recommended">
  93. <a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
  94. </notempty>
  95. </td>
  96. <td>
  97. <a href="{:U('AdminPost/restore',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定还原吗?">还原</a>|
  98. <a href="{:U('AdminPost/clean',array('id'=>$vo['id'],'id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
  99. </td>
  100. </tr>
  101. </foreach>
  102. <tfoot>
  103. <tr>
  104. <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
  105. <th width="50">ID</th>
  106. <th>{:L('TITLE')}</th>
  107. <th width="50">{:L('AUTHOR')}</th>
  108. <th width="60">{:L('HITS')}</th>
  109. <th width="60">{:L('COMMENT_COUNT')}</th>
  110. <th>{:L('KEYWORDS')}/{:L('SOURCE')}/{:L('ABSTRACT')}/{:L('THUMBNAIL')}</th>
  111. <th width="130">{:L('PUBLISH_DATE')}</th>
  112. <th width="70">{:L('STATUS')}</th>
  113. <th width="90">{:L('ACTIONS')}</th>
  114. </tr>
  115. </tfoot>
  116. </table>
  117. <div class="table-actions">
  118. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" data-action="{:U('AdminPost/clean')}" data-subcheck="true" data-msg="你确定删除吗?删除后无法恢复!">{:L('DELETE')}</button>
  119. </div>
  120. <div class="pagination">{$page}</div>
  121. </form>
  122. </div>
  123. <script src="__PUBLIC__/js/common.js"></script>
  124. </body>
  125. </html>