userIndex.jsp 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>用户管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <%@ include file="/webpage/include/bootstraptable.jsp"%>
  8. <link href="${ctxStatic}/plugin/bootstrapTree/bootstrap-treeview.css" rel="stylesheet" type="text/css"/>
  9. <script src="${ctxStatic}/plugin/bootstrapTree/bootstrap-treeview.js" type="text/javascript"></script>
  10. <%@ include file="userIndex.js"%>
  11. </head>
  12. <body>
  13. <div class="wrapper wrapper-content">
  14. <div class="panel panel-primary">
  15. <div class="panel-heading">
  16. <h3 class="panel-title">用户列表</h3>
  17. </div>
  18. <div class="panel-body">
  19. <div class="row">
  20. <div class="col-sm-3 col-md-4" >
  21. <div id="jstree"></div>
  22. </div>
  23. <div class="col-sm-9 col-md-8 animated fadeInRight">
  24. <!-- 搜索框-->
  25. <div id="search-collapse" class="collapse">
  26. <div class="accordion-inner">
  27. <form id="searchForm" class="form form-horizontal well clearfix" >
  28. <div class="col-sm-4">
  29. <label class="label-item single-overflow pull-left" title="登录名:">登录名:</label>
  30. <input type="text" name="loginName" maxlength="100" class=" form-control"/>
  31. </div>
  32. <div class="col-sm-4">
  33. <label class="label-item single-overflow pull-left" title="姓名:">姓名:</label>
  34. <input type="text" name="name" maxlength="100" class=" form-control"/>
  35. </div>
  36. <%--<div class="col-sm-4">
  37. <label class="label-item single-overflow pull-left" title="公司:">归属公司:</label>
  38. <sys:treeselect id="company" name="company.id"
  39. title="公司" url="/sys/office/treeData?type=1" cssClass=" form-control" allowClear="true"/>
  40. </div>--%>
  41. <div class="col-sm-4">
  42. <label class="label-item single-overflow pull-left" title="员工:">归属部门:</label>
  43. <sys:treeselect id="office" name="office.id"
  44. title="部门" url="/sys/office/treeData" cssClass=" form-control" allowClear="true" />
  45. </div>
  46. <div class="col-sm-10">
  47. <div style="margin-top:26px;text-align: center">
  48. <a id="search" class="btn btn-primary btn-rounded btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
  49. <a id="reset" class="btn btn-primary btn-rounded btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div><!-- 搜索框结束 -->
  55. <!-- 工具栏 -->
  56. <div id="toolbar">
  57. <shiro:hasPermission name="sys:user:add">
  58. <a id="add" class="btn btn-primary" onclick="jp.openSaveDialog('新建用户', '${ctx}/sys/user/form','1000px', '680px')"><i class="glyphicon glyphicon-plus"></i> 新建</a>
  59. </shiro:hasPermission>
  60. <shiro:hasPermission name="sys:user:edit">
  61. <button id="edit" class="btn btn-success" disabled onclick="edit()">
  62. <i class="glyphicon glyphicon-edit"></i> 修改
  63. </button>
  64. </shiro:hasPermission>
  65. <shiro:hasPermission name="sys:user:del">
  66. <button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
  67. <i class="glyphicon glyphicon-remove"></i> 删除
  68. </button>
  69. </shiro:hasPermission>
  70. </div><!-- 工具栏结束 -->
  71. <!-- 表格 -->
  72. <table id="table"
  73. data-toolbar="#toolbar">
  74. </table>
  75. <!-- context menu -->
  76. <ul id="context-menu" class="dropdown-menu">
  77. <li data-item="edit"><a>编辑</a></li>
  78. <li data-item="delete"><a>删除</a></li>
  79. <li data-item="cancel"><a>取消</a></li>
  80. </ul>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </body>
  87. </html>