index.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit" data-action="{:url('AdminPage/listOrder')}">{:lang('SORT')}</button>
  21. </div>
  22. <table class="table table-hover table-bordered table-list">
  23. <thead>
  24. <tr>
  25. <th width="16">
  26. <label>
  27. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  28. </label>
  29. </th>
  30. <th>排序</th>
  31. <th width="100">ID</th>
  32. <th>标题</th>
  33. <th>链接</th>
  34. <th width="80">作者</th>
  35. <th width="160">发布时间</th>
  36. <th width="80">状态</th>
  37. <th width="120">操作</th>
  38. </tr>
  39. </thead>
  40. <php>$status=array("1"=>'已发布',"0"=>'未发布');</php>
  41. <foreach name="pages" item="vo">
  42. <tr>
  43. <td>
  44. <if condition="$vo['id'] gt 18">
  45. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  46. value="{$vo.id}">
  47. </if>
  48. </td>
  49. <td><input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}"></td>
  50. <td>{$vo.id}</td>
  51. <td>
  52. <!-- <a href="{:url('portal/page/index',array('id'=>$vo['id']))}" target="_blank"> -->
  53. {$vo.post_title}
  54. <!-- </a> -->
  55. </td>
  56. <td>{:get_upload_path('/portal/page/index?id='.$vo['id'])}</td>
  57. <td>{$vo.user_nicename}</td>
  58. <td>
  59. <empty name="vo.published_time">
  60. 未发布
  61. <else/>
  62. {:date('Y-m-d H:i',$vo['published_time'])}
  63. </empty>
  64. </td>
  65. <td>
  66. <notempty name="vo.post_status">
  67. <a data-toggle="tooltip" title="已发布"><i class="fa fa-check"></i></a>
  68. <else/>
  69. <a data-toggle="tooltip" title="未发布"><i class="fa fa-close"></i></a>
  70. </notempty>
  71. </td>
  72. <td>
  73. <a class="btn btn-xs btn-primary" href="{:url('AdminPage/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  74. <if condition="$vo['id'] gt 18">
  75. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminPage/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  76. </if>
  77. </td>
  78. </tr>
  79. </foreach>
  80. <tfoot>
  81. <tr>
  82. <th width="16">
  83. <label>
  84. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  85. </label>
  86. </th>
  87. <th>排序</th>
  88. <th width="100">ID</th>
  89. <th>标题</th>
  90. <th>链接</th>
  91. <th width="80">作者</th>
  92. <th width="160">发布时间</th>
  93. <th width="80">状态</th>
  94. <th width="120">操作</th>
  95. </tr>
  96. </tfoot>
  97. </table>
  98. <div class="table-actions">
  99. <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" data-action="{:url('AdminPage/delete')}"
  100. data-subcheck="true" data-msg="你确定删除吗?">{:lang('DELETE')}
  101. </button>
  102. </div>
  103. <div class="pagination">{$page}</div>
  104. </form>
  105. </div>
  106. <script src="__STATIC__/js/admin.js"></script>
  107. </body>
  108. </html>