index.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('AdminPage/index')}">页面管理</a></li>
  7. <li><a href="{:url('AdminPage/add')}">添加页面</a></li>
  8. </ul>
  9. <form class="well form-inline margin-top-20" method="post" action="{:url('AdminPage/index')}">
  10. 标题:
  11. <input type="text" class="form-control" name="keyword" style="width: 200px;"
  12. value="{$keyword|default=''}" placeholder="请输入关键字">
  13. <button class="btn btn-primary">搜索</button>
  14. </form>
  15. <form class="js-ajax-form" method="post">
  16. <div class="table-actions">
  17. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" data-action="{:url('AdminPage/delete')}"
  18. data-subcheck="true" data-msg="{:lang('DELETE_CONFIRM_MESSAGE')}">{:lang('DELETE')}
  19. </button>
  20. </div>
  21. <table class="table table-hover table-bordered table-list">
  22. <thead>
  23. <tr>
  24. <th width="16">
  25. <label>
  26. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  27. </label>
  28. </th>
  29. <th width="100">ID</th>
  30. <th>标题</th>
  31. <th width="80">作者</th>
  32. <th width="160">发布时间</th>
  33. <th width="80">状态</th>
  34. <th width="120">操作</th>
  35. </tr>
  36. </thead>
  37. <php>$status=array("1"=>'已发布',"0"=>'未发布');</php>
  38. <foreach name="pages" item="vo">
  39. <tr>
  40. <td>
  41. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  42. value="{$vo.id}">
  43. </td>
  44. <td>{$vo.id}</td>
  45. <td>
  46. <a href="{:url('portal/page/index',array('id'=>$vo['id']))}" target="_blank">
  47. {$vo.post_title}
  48. </a>
  49. </td>
  50. <td>{$vo.user_nickname}</td>
  51. <td>
  52. <empty name="vo.published_time">
  53. 未发布
  54. <else/>
  55. {:date('Y-m-d H:i',$vo['published_time'])}
  56. </empty>
  57. </td>
  58. <td>
  59. <notempty name="vo.post_status">
  60. <a data-toggle="tooltip" title="已发布"><i class="fa fa-check"></i></a>
  61. <else/>
  62. <a data-toggle="tooltip" title="未发布"><i class="fa fa-close"></i></a>
  63. </notempty>
  64. </td>
  65. <td>
  66. <a class="btn btn-xs btn-primary" href="{:url('AdminPage/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  67. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminPage/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  68. </td>
  69. </tr>
  70. </foreach>
  71. <tfoot>
  72. <tr>
  73. <th width="16">
  74. <label>
  75. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  76. </label>
  77. </th>
  78. <th width="100">ID</th>
  79. <th>标题</th>
  80. <th width="80">作者</th>
  81. <th width="160">发布时间</th>
  82. <th>状态</th>
  83. <th width="120">操作</th>
  84. </tr>
  85. </tfoot>
  86. </table>
  87. <div class="table-actions">
  88. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" data-action="{:url('AdminPage/delete')}"
  89. data-subcheck="true" data-msg="你确定删除吗?">{:lang('DELETE')}
  90. </button>
  91. </div>
  92. <div class="pagination">{$page}</div>
  93. </form>
  94. </div>
  95. <script src="__STATIC__/js/admin.js"></script>
  96. </body>
  97. </html>