site_list.html 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <div class="bjui-pageHeader">
  2. <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/system/cms/site" method="post">
  3. <input type="hidden" name="pageSize" value="${model.pageSize!}">
  4. <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
  5. <div class="bjui-searchBar">
  6. <label>站点状态:</label>
  7. <select name="status" data-toggle="selectpicker">
  8. @if( isEmpty(pojo.status)){
  9. <option value="" selected>所有</option>
  10. <option value="0"> 关闭</option>
  11. <option value="1"> 正常 </option>
  12. @}else if(!pojo.status){
  13. <option value="">所有</option>
  14. <option value="0" selected> 关闭</option>
  15. <option value="1"> 正常 </option>
  16. @}else{
  17. <option value="">所有</option>
  18. <option value="0"> 关闭</option>
  19. <option value="1" selected> 正常 </option>
  20. @}
  21. </select>&nbsp;
  22. <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
  23. <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
  24. &nbsp;
  25. <a href="${ctxPath}/system/cms/site/input" class="btn btn-green" data-icon="plus" data-toggle="dialog" data-maxable="false" data-resizable="true" data-width="500" data-height="360" data-id="add-admn-user" data-title="新增管理员">新增子站点</a>
  26. <div class="pull-right">
  27. <!--<button type="button" class="btn-blue" data-url="ajaxDone2.html?id={#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗?" data-icon="remove" title="可以在控制台(network)查看被删除ID">删除选中行</button>&nbsp;-->
  28. <div class="btn-group">
  29. <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
  30. <ul class="dropdown-menu right" role="menu">
  31. <!--<li><a href="book1.xlsx" data-toggle="doexport" data-confirm-msg="确定要导出信息吗?">导出<span style="color: green;">当前页</span></a></li>-->
  32. <!--<li class="divider"></li>-->
  33. <li><a href="${ctxPath}/system/cms/site/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗?" data-idname="clientId" data-group="ids">删除<font COLOR="#ff6347">选中</font>行</a></li>
  34. <!--<li><a href="ajaxDone2.html" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗?" data-idname="delids" data-group="ids">删除选中</a></li>-->
  35. </ul>
  36. </div>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. <div class="bjui-pageContent tableContent">
  42. <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
  43. <thead>
  44. <tr>
  45. <th align="center" width="25">No</th>
  46. <th align="center" width="100">站点名称</th>
  47. <!--th align="center" width="100">当地域名</th-->
  48. <th align="center" width="80">模板目录</th>
  49. <th align="center" width="80">站点标题</th>
  50. <th align="center" width="100">关键字</th>
  51. <th align="center" width="100">描述</th>
  52. <th align="center" width="80">状态</th>
  53. <th align="center" width="26" ><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
  54. <th align="center" width="80">操作</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. @for(site in model.list){
  59. <tr data-id="${siteLP.index}">
  60. <td align="center">${site.siteId!}</td>
  61. <td align="center">${site.siteName!,xss}</td>
  62. <!--td align="center"><a HREF="http://${site.domain!,xss}">${site.domain!,xss}</a></td-->
  63. <td align="center">${site.template!"N/A",xss}</td>
  64. <td align="center">${site.title!"N/A",xss}</td>
  65. <td align="center">${site.keyword!"N/A",xss}</td>
  66. <td align="center">${site.description!"N/A",xss}</td>
  67. <td align="center">${site.status?"正常":"停用"}</td>
  68. <td align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="${content.contentId!}"></td>
  69. <td align="center">
  70. @if(session.SysUser.siteId==site.siteId){
  71. <a class="btn btn-red" title="当前站点">当</a>
  72. @}else{
  73. <a href="${ctxPath}/system/cms/site/change?id=${site.siteId!}" class="btn btn-blue" data-toggle="doajax" title="切换站点" data-confirm-msg="确定要切换到[${site.siteName!,xss}]?">切</a>
  74. @}
  75. <a href="${ctxPath}/system/cms/site/input?id=${site.siteId!}" class="btn btn-green" data-toggle="dialog" title="编辑站点" data-maxable="false" data-resizable="false" data-width="500" data-height="330" data-id="edit-site-tab" data-title="用户修改">编辑</a>
  76. <a href="${ctxPath}/system/cms/site/delete?ids=${site.siteId!}" class="btn btn-red" data-toggle="doajax" title="删除站点" data-confirm-msg="确定要删除该行信息吗?">删</a>
  77. </td>
  78. </tr>
  79. @}
  80. </tbody>
  81. </table>
  82. </div>
  83. <div class="bjui-pageFooter">
  84. <div class="pages">
  85. <span>每页&nbsp;</span>
  86. <div class="selectPagesize">
  87. <select data-toggle="selectpicker" data-toggle-change="changepagesize">
  88. <option value="30">30</option>
  89. <option value="60">60</option>
  90. <option value="120">120</option>
  91. <option value="150">150</option>
  92. </select>
  93. </div>
  94. <span>&nbsp;条,共 ${model.total!} 条</span>
  95. </div>
  96. <div class="pagination-box" data-toggle="pagination" data-total="${model.total!}" data-page-size="30" data-page-current="1">
  97. </div>
  98. </div>