userIndex.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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-2" >
  21. <div id="jstree"></div>
  22. </div>
  23. <div class="col-sm-9 col-md-10 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?type=2" cssClass=" form-control" allowClear="true" notAllowSelectParent="true"/>
  45. </div>
  46. <div class="col-sm-4">
  47. <div style="margin-top:26px">
  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','800px', '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. <shiro:hasPermission name="sys:user:import">
  71. <button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>
  72. <div id="importBox" class="hide">
  73. <form id="importForm" action="${ctx}/sys/user/import" method="post" enctype="multipart/form-data"
  74. style="padding-left:20px;text-align:center;" ><br/>
  75. <input id="uploadFile" name="file" type="file" style="width:330px"/>导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!<br/>  
  76. </form>
  77. </div>
  78. </shiro:hasPermission>
  79. <shiro:hasPermission name="sys:user:export">
  80. <a id="export" class="btn btn-warning" href="${ctx}/sys/user/export"><i class="fa fa-file-excel-o"></i> 导出</a>
  81. </shiro:hasPermission>
  82. </div><!-- 工具栏结束 -->
  83. <!-- 表格 -->
  84. <table id="table"
  85. data-toolbar="#toolbar">
  86. </table>
  87. <!-- context menu -->
  88. <ul id="context-menu" class="dropdown-menu">
  89. <li data-item="edit"><a>编辑</a></li>
  90. <li data-item="delete"><a>删除</a></li>
  91. <li data-item="cancel"><a>取消</a></li>
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </body>
  99. </html>