| | |
| | | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
| | | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> |
| | | <html lang="en"> |
| | | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" |
| | | content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"> |
| | | <title>用户管理</title> |
| | | <link href="/hxzkoa/hxzk/bootstrap/css/bootstrap.min.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/img/favicon.ico" rel="icon" |
| | | type="image/x-icon" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-modal.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-sweetalert.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/dashboard/dash_2.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/custom-pagination.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" |
| | | <link href="/hxzkoa/hxzk/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/img/favicon.ico" rel="icon" type="image/x-icon" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-modal.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-sweetalert.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/scrollspyNav.css" rel="stylesheet" |
| | | <link href="/hxzkoa/hxzk/assets/css/dashboard/dash_2.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/custom-pagination.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/scrollspyNav.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/main.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/structure.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/search.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/apex/apexcharts.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/animate/animate.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/highlight/styles/monokai-sublime.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/main.css" rel="stylesheet" |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/datatables.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/custom_dt_html5.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/dt-global_style.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/structure.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/search.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/apex/apexcharts.css" rel="stylesheet" |
| | | type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/animate/animate.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/highlight/styles/monokai-sublime.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/datatables.css" |
| | | rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/custom_dt_html5.css" |
| | | rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/dt-global_style.css" |
| | | rel="stylesheet" type="text/css"> |
| | | <link |
| | | href="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.css" |
| | | rel="stylesheet" type="text/css" /> |
| | | <link href="https://fonts.gstatic.com" rel="preconnect"> |
| | | <link |
| | | href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" |
| | | rel="stylesheet"> |
| | | <link |
| | | href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap" |
| | | <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet"> |
| | | <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap" |
| | | rel="stylesheet"> |
| | | <style> |
| | | body { |
| | |
| | | background: none; |
| | | } |
| | | |
| | | .table-bordered td, .table-bordered th { |
| | | .table-bordered td, |
| | | .table-bordered th { |
| | | border: 1px solid #ebedf2; |
| | | } |
| | | </style> |
| | |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/bootstrap.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/popper.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/apex/apexcharts.min.js"></script> |
| | | <script |
| | | src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/jszip.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/jszip.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/jquery.table2excel.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/promise-polyfill.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/custom-sweetalert.js"></script> |
| | | <script |
| | | src="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script> |
| | | </head> |
| | | |
| | | <body class="alt-menu sidebar-noneoverflow"> |
| | | |
| | | <!-- BEGIN LOADER --> |
| | |
| | | </div> |
| | | <div class="border-right" |
| | | style="opacity: 0.4; float: right; position: absolute; z-index: 2; right: 120px;"> |
| | | <img alt="" src="/hxzkoa/resources/images/border2.png" |
| | | class="img-right"> |
| | | <img alt="" src="/hxzkoa/resources/images/border2.png" class="img-right"> |
| | | </div> |
| | | <!-- BEGIN NAVBAR --> |
| | | <div class="login-page"></div> |
| | |
| | | <!-- END TOPBAR --> |
| | | |
| | | <!-- BEGIN MODAL --> |
| | | <div class="modal fade addNew" tabindex="-1" role="dialog" |
| | | aria-labelledby="myExtraLargeModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" |
| | | style="width: 30%;"> |
| | | <div class="modal fade addNew" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" |
| | | aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 30%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">新增</h5> |
| | | <button type="button" class="close" data-dismiss="modal" |
| | | aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" |
| | | width="24" height="24" viewBox="0 0 24 24" fill="none" |
| | | stroke="currentColor" stroke-width="2" stroke-linecap="round" |
| | | stroke-linejoin="round" class="feather feather-x"> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line></svg> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | |
| | | class="form-group row mb-4"> |
| | | <label for="exampleFormControlInput1" |
| | | class="col-sm-4 col-form-label col-form-label-sm">密码:</label> |
| | | <input class="form-control col-sm-8" type="password" |
| | | id="password_a" required="required" /> |
| | | <input class="form-control col-sm-8" type="password" id="password_a" |
| | | required="required" /> |
| | | </div> |
| | | </div> |
| | | <div |
| | |
| | | class="form-group row mb-4"> |
| | | <label for="exampleFormControlInput1" |
| | | class="col-sm-4 col-form-label col-form-label-sm">重复密码:</label> |
| | | <input class="form-control col-sm-8" type="password" |
| | | id="repassword_a" required="required" /> |
| | | <input class="form-control col-sm-8" type="password" id="repassword_a" |
| | | required="required" /> |
| | | </div> |
| | | </div> |
| | | <div |
| | | style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;"> |
| | | <div |
| | | style="width: 60%; margin-left: 20%; float: left; margin-top: 10px;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left; margin-top: 10px;"> |
| | | <label for="exampleFormControlInput1">级别:</label> |
| | | <div class="custom-control custom-radio custom-control-inline"> |
| | | <input type="radio" id="admin_a" name="customRadioInline1" |
| | | class="custom-control-input" value="0"> <label |
| | | class="custom-control-label" for="admin_a">管理员</label> |
| | | class="custom-control-input" value="0" onclick="danxuan()"> |
| | | <label class="custom-control-label" for="admin_a">管理员</label> |
| | | </div> |
| | | <div class="custom-control custom-radio custom-control-inline"> |
| | | <input type="radio" id="visitor_a" name="customRadioInline1" |
| | | class="custom-control-input" value="1"> <label |
| | | class="custom-control-label" for="visitor_a">访客</label> |
| | | class="custom-control-input" value="1" onclick="danxuan()"> |
| | | <label class="custom-control-label" for="visitor_a">用户</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="exampleFormControlInput1">权限:</label> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="i_a"> <label |
| | | class="custom-control-label" for="i_a">新增</label> |
| | | </div> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="d_a"> <label |
| | | class="custom-control-label" for="d_a">删除</label> |
| | | </div> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="m_a"> <label |
| | | class="custom-control-label" for="m_a">修改</label> |
| | | </div> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="da_a"> <label |
| | | class="custom-control-label" for="da_a">全删</label> |
| | |
| | | </div> |
| | | <div class="modal fade modifyNew" tabindex="-1" role="dialog" |
| | | aria-labelledby="myExtraLargeModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" |
| | | style="width: 30%;"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 30%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">修改</h5> |
| | | <button type="button" class="close" data-dismiss="modal" |
| | | aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" |
| | | width="24" height="24" viewBox="0 0 24 24" fill="none" |
| | | stroke="currentColor" stroke-width="2" stroke-linecap="round" |
| | | stroke-linejoin="round" class="feather feather-x"> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line></svg> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | |
| | | class="form-group row mb-4"> |
| | | <label for="exampleFormControlInput1" |
| | | class="col-sm-4 col-form-label col-form-label-sm">密码:</label> |
| | | <input class="form-control col-sm-8" type="password" |
| | | id="password_m" required="required" /> |
| | | <input class="form-control col-sm-8" type="password" id="password_m" |
| | | required="required" /> |
| | | </div> |
| | | </div> |
| | | <div |
| | |
| | | class="form-group row mb-4"> |
| | | <label for="exampleFormControlInput1" |
| | | class="col-sm-4 col-form-label col-form-label-sm">重复密码:</label> |
| | | <input class="form-control col-sm-8" type="password" |
| | | id="repassword_m" required="required" /> |
| | | <input class="form-control col-sm-8" type="password" id="repassword_m" |
| | | required="required" /> |
| | | </div> |
| | | </div> |
| | | <div |
| | | style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;"> |
| | | <div |
| | | style="width: 60%; margin-left: 20%; float: left; margin-top: 10px;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left; margin-top: 10px;"> |
| | | <label for="exampleFormControlInput1">级别:</label> |
| | | <div class="custom-control custom-radio custom-control-inline"> |
| | | <input type="radio" id="admin_m" name="customRadioInline2" |
| | | class="custom-control-input" value="0"> <label |
| | | class="custom-control-input" value="0" onclick="danxuan2()"> <label |
| | | class="custom-control-label" for="admin_m">管理员</label> |
| | | </div> |
| | | <div class="custom-control custom-radio custom-control-inline"> |
| | | <input type="radio" id="visitor_m" name="customRadioInline2" |
| | | class="custom-control-input" value="1"> <label |
| | | class="custom-control-label" for="visitor_m">访客</label> |
| | | class="custom-control-input" value="1" onclick="danxuan2()"> <label |
| | | class="custom-control-label" for="visitor_m">用户</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="exampleFormControlInput1">权限:</label> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="i_m"> <label |
| | | class="custom-control-label" for="i_m">新增</label> |
| | | </div> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="d_m"> <label |
| | | class="custom-control-label" for="d_m">删除</label> |
| | | </div> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="m_m"> <label |
| | | class="custom-control-label" for="m_m">修改</label> |
| | | </div> |
| | | <div |
| | | class="custom-control custom-checkbox custom-control-inline"> |
| | | <div class="custom-control custom-checkbox custom-control-inline"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="da_m"> <label |
| | | class="custom-control-label" for="da_m">全删</label> |
| | |
| | | style="width: 15%; float: left; margin-left: 15px; height: 37px;"> |
| | | <div class="input-group-prepend" style="height: 37px;"> |
| | | <span class="input-group-text search" id="basic-addon1"><svg |
| | | xmlns="http://www.w3.org/2000/svg" width="24" height="24" |
| | | viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" |
| | | stroke-linejoin="round" class="feather feather-search"> |
| | | xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" |
| | | stroke="currentColor" stroke-width="2" |
| | | stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-search"> |
| | | <circle cx="11" cy="11" r="8"></circle> |
| | | <line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg> </span> |
| | | <line x1="21" y1="21" x2="16.65" y2="16.65"></line> |
| | | </svg> </span> |
| | | </div> |
| | | <input style="height: 37px;" type="text" id="search_input" |
| | | class="form-control" placeholder="请输入序号" |
| | | aria-label="Username" aria-describedby="basic-addon1"> |
| | | </div> |
| | | <div style="float: left; margin-left: 15px;"> |
| | | <button type="button" class="btn btn-secondary reset">刷新</button> |
| | | <button type="button" |
| | | class="btn btn-secondary reset">刷新</button> |
| | | <button type="button" class="btn btn-secondary" |
| | | data-toggle="modal" data-target=".addNew" id="addButton">新增用户</button> |
| | | data-toggle="modal" data-target=".addNew" |
| | | id="addButton">新增用户</button> |
| | | <button type="button" class="btn btn-secondary initModify" |
| | | data-toggle="modal" data-target=".modifyNew" |
| | | id="modifyButton">修改</button> |
| | |
| | | id="deleteButton">删除</button> |
| | | <button type="button" class="btn btn-secondary deleteAll" |
| | | id="deleteAllButton">全部删除</button> |
| | | <button type="button" class="btn btn-secondary toAllExcel">导出表格</button> |
| | | <button type="button" |
| | | class="btn btn-secondary toAllExcel">导出表格</button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <th>修改</th> |
| | | <th>全部删除</th> |
| | | <th>仅观看</th> |
| | | <th>新增</th> |
| | | <th>添加时间</th> |
| | | </tr> |
| | | </thead> |
| | |
| | | type="checkbox" class="custom-control-input" |
| | | id="${list.id}" name="selectIds"><label |
| | | class="custom-control-label" for="${list.id}" |
| | | style="position: raletive; left: 20px; bottom: 5px;"></label></td> |
| | | style="position: raletive; left: 20px; bottom: 5px;"></label> |
| | | </td> |
| | | <td>${list.id}</td> |
| | | <td>${list.username}</td> |
| | | <td>${list.superuser}</td> |
| | |
| | | <td>${list.alertq}</td> |
| | | <td>${list.deleteall}</td> |
| | | <td>${list.justlook}</td> |
| | | <td>${list.fenceq}</td> |
| | | <td>${list.addtime}</td> |
| | | </tr> |
| | | </c:forEach> |
| | |
| | | <!-- END CONTENT PART --> |
| | | |
| | | </div> |
| | | <% |
| | | String superuser = (String) session.getAttribute("superuser"); |
| | | String deleteq = (String) session.getAttribute("deleteq"); |
| | | String alertq = (String) session.getAttribute("alertq"); |
| | | String deleteall = (String) session.getAttribute("deleteall"); |
| | | String username = (String) session.getAttribute("username"); |
| | | if (username == null || username.equals("")) { |
| | | request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response); |
| | | return; |
| | | } |
| | | %> |
| | | <input type="hidden" name="superuser" id="superuser" |
| | | value="<%=superuser%>"> <input type="hidden" name="deleteq" |
| | | id="deleteq" value="<%=deleteq%>"> <input type="hidden" |
| | | name="alertq" id="alertq" value="<%=alertq%>"> <input |
| | | type="hidden" name="deleteall" id="deleteall" value="<%=deleteall%>"> |
| | | <% String superuser=(String) session.getAttribute("superuser"); String deleteq=(String) |
| | | session.getAttribute("deleteq"); String alertq=(String) session.getAttribute("alertq"); String |
| | | deleteall=(String) session.getAttribute("deleteall"); String username=(String) |
| | | session.getAttribute("username"); String fenceq = (String) session.getAttribute("fenceq"); if (username==null || username.equals("")) { |
| | | request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response); return; } %> |
| | | <input type="hidden" name="superuser" id="superuser" value="<%=superuser%>"> <input |
| | | type="hidden" name="deleteq" id="deleteq" value="<%=deleteq%>"> <input type="hidden" |
| | | name="alertq" id="alertq" value="<%=alertq%>"> <input type="hidden" name="deleteall" |
| | | id="deleteall" value="<%=deleteall%>"> <input type="hidden" name="xianusera" |
| | | id="xianusera" value="<%=username%>"> <input type="hidden" name="fenceq" id="fenceq" value="<%=fenceq%>"> |
| | | <!-- END MAIN CONTAINER --> |
| | | <script> |
| | | // 页面初始化 |
| | | $(document).ready(function() { |
| | | App.init();$.ajax({async : false, type : "POST",url : "/hxzkoa/getSysSetting_list.do",data : {},dataType : "json",success:function(data){/* title = data[0].title;document.title = title; */},}); |
| | | window.onload = function () { |
| | | App.init(); |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/getSysSetting_list2.do", |
| | | data: {}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | /* title = data[0].title;document.title = title; */ |
| | | if (data.dataList2[0].label == 0) { |
| | | $("#labela").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].achor == 0) { |
| | | $("#anchora").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].gps == 0) { |
| | | $("#gpsa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].fence == 0) { |
| | | $("#fencea").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].warning == 0) { |
| | | $("#warninga").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].history == 0) { |
| | | $("#historya").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].attendance == 0) { |
| | | $("#attendancea").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].basiclnfo == 0) { |
| | | $("#basiclnfoa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].video == 0) { |
| | | $("#videoa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].gas == 0) { |
| | | $("#gasa").css({ 'display': 'none' }); |
| | | }; |
| | | }, |
| | | }); |
| | | $("#page_1").addClass("active"); |
| | | var superuser = document.getElementById("superuser").value; |
| | | var deleteq = document.getElementById("deleteq").value; |
| | | var alertq = document.getElementById("alertq").value; |
| | | var deleteall = document.getElementById("deleteall").value; |
| | | var fenceq = document.getElementById("fenceq").value; |
| | | document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value |
| | | //console.log(superuser) |
| | | if (superuser == "访客"){ |
| | | $("#addButton").attr("disabled","true"); |
| | |
| | | if (deleteall == "否"){ |
| | | $("#deleteAllButton").attr("disabled","true"); |
| | | } |
| | | }); |
| | | if (fenceq == "否") { |
| | | $("#addButton").attr("disabled", "true"); |
| | | } |
| | | }; |
| | | $('.header-page').load('/hxzkoa/hxzk/top.html');$('.login-page').load('/hxzkoa/hxzk/head.html'); |
| | | $(".reset").click(function() { |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 单选事件 |
| | | function danxuan() { |
| | | var aaa = $("input[name='customRadioInline1']:checked").val(); |
| | | if (aaa == 0) { |
| | | $("#d_a").prop("checked", true); |
| | | $("#m_a").prop("checked", true); |
| | | $("#da_a").prop("checked", true); |
| | | $("#i_a").prop("checked", true); |
| | | $("#d_a").prop("disabled", false); |
| | | $("#m_a").prop("disabled", false); |
| | | $("#da_a").prop("disabled", false); |
| | | $("#i_a").prop("disabled", false); |
| | | } else { |
| | | $("#d_a").prop("checked", false); |
| | | $("#m_a").prop("checked", false); |
| | | $("#da_a").prop("checked", false); |
| | | $("#i_a").prop("checked", false); |
| | | $("#d_a").prop("disabled", true); |
| | | $("#m_a").prop("disabled", true); |
| | | $("#da_a").prop("disabled", true); |
| | | $("#i_a").prop("disabled", true); |
| | | } |
| | | } |
| | | function danxuan2() { |
| | | var aaa = $("input[name='customRadioInline2']:checked").val(); |
| | | if (aaa == 0) { |
| | | $("#d_m").prop("checked", true); |
| | | $("#m_m").prop("checked", true); |
| | | $("#da_m").prop("checked", true); |
| | | $("#i_m").prop("checked", true); |
| | | $("#d_m").prop("disabled", false); |
| | | $("#m_m").prop("disabled", false); |
| | | $("#da_m").prop("disabled", false); |
| | | $("#i_m").prop("disabled", false); |
| | | } else { |
| | | $("#d_m").prop("checked", false); |
| | | $("#m_m").prop("checked", false); |
| | | $("#da_m").prop("checked", false); |
| | | $("#i_m").prop("checked", false); |
| | | $("#d_m").prop("disabled", true); |
| | | $("#m_m").prop("disabled", true); |
| | | $("#da_m").prop("disabled", true); |
| | | $("#i_m").prop("disabled", true); |
| | | } |
| | | } |
| | | // 分页跳转 |
| | | function page(page) { |
| | | var curPage = $("#curPage").val(); |
| | |
| | | data.dataList[k].id + "</td><td>" + data.dataList[k].username + "</td><td>" + |
| | | data.dataList[k].superuser + "</td><td>" + data.dataList[k].deleteq + "</td><td>" + |
| | | data.dataList[k].alertq + "</td><td>" + data.dataList[k].deleteall + "</td><td>" + |
| | | data.dataList[k].justlook + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | data.dataList[k].justlook + "</td><td>" + data.dataList[k].fenceq + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | } |
| | | $("#nr").html(str); |
| | | if (!data.pageList.length == 0) { |
| | | str = ""; |
| | | str +="<li><a href=\"javascript:page('pre');\">上一页</a></li>"; |
| | | for (var k=0;k<data.pageList.length;k++) |
| | | { |
| | | for (var k = 0; k < data.pageList.length; k++) { |
| | | str += "<li id=\"page_"+data.pageList[k]+"\"><a href=\"javascript:page('"+data.pageList[k]+"');\">"+data.pageList[k]+"</a></li>"; |
| | | } |
| | | str += "<li><a href=\"javascript:page('next');\">下一页</a></li>"; |
| | |
| | | data.dataList[k].id + "</td><td>" + data.dataList[k].username + "</td><td>" + |
| | | data.dataList[k].superuser + "</td><td>" + data.dataList[k].deleteq + "</td><td>" + |
| | | data.dataList[k].alertq + "</td><td>" + data.dataList[k].deleteall + "</td><td>" + |
| | | data.dataList[k].justlook + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | data.dataList[k].justlook + "</td><td>" + data.dataList[k].fenceq + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | } |
| | | $("#nr").html(str); |
| | | for (var i = 0; i < 10; i++) { |
| | |
| | | } |
| | | var deleteq = tr.children[4].innerHTML |
| | | if(deleteq=="是"){ |
| | | $("#d_m").attr("checked",true); |
| | | $("#d_m").prop("checked", true); |
| | | } else { |
| | | $("#d_m").attr("checked",false); |
| | | $("#d_m").prop("checked", false); |
| | | } |
| | | var alertq = tr.children[5].innerHTML |
| | | if(alertq=="是"){ |
| | | $("#m_m").attr("checked",true); |
| | | $("#m_m").prop("checked", true); |
| | | } else { |
| | | $("#m_m").attr("checked",false); |
| | | $("#m_m").prop("checked", false); |
| | | } |
| | | var deleteall = tr.children[6].innerHTML |
| | | if(deleteall=="是"){ |
| | | $("#da_m").attr("checked",true); |
| | | $("#da_m").prop("checked", true); |
| | | } else { |
| | | $("#da_m").attr("checked",false); |
| | | $("#da_m").prop("checked", false); |
| | | } |
| | | var insert = tr.children[8].innerHTML |
| | | if (insert == "是") { |
| | | $("#i_m").prop("checked", true); |
| | | } else { |
| | | $("#i_m").prop("checked", false); |
| | | } |
| | | return false; |
| | | } |
| | |
| | | } |
| | | var deleteq = tr.children[4].innerHTML |
| | | if(deleteq=="是"){ |
| | | $("#d_m").attr("checked",true); |
| | | $("#d_m").prop("checked", true); |
| | | } else { |
| | | $("#d_m").attr("checked",false); |
| | | $("#d_m").prop("checked", false); |
| | | } |
| | | var alertq = tr.children[5].innerHTML |
| | | if(alertq=="是"){ |
| | | $("#m_m").attr("checked",true); |
| | | $("#m_m").prop("checked", true); |
| | | } else { |
| | | $("#m_m").attr("checked",false); |
| | | $("#m_m").prop("checked", false); |
| | | } |
| | | var deleteall = tr.children[6].innerHTML |
| | | if(deleteall=="是"){ |
| | | $("#da_m").attr("checked",true); |
| | | $("#da_m").prop("checked", true); |
| | | } else { |
| | | $("#da_m").attr("checked",false); |
| | | $("#da_m").prop("checked", false); |
| | | } |
| | | var insert = tr.children[8].innerHTML |
| | | if (insert == "是") { |
| | | $("#i_m").prop("checked", true); |
| | | } else { |
| | | $("#i_m").prop("checked", false); |
| | | } |
| | | return false; |
| | | } |
| | |
| | | if (document.getElementById("da_m").checked) { |
| | | var deleteall = "是" |
| | | } else {var deleteall = "否"} |
| | | if (document.getElementById("i_m").checked) { |
| | | var insert = "是" |
| | | } else { var insert = "否" } |
| | | var fistId,state; |
| | | $('input[name="selectIds"]').each( |
| | | function(){ |
| | |
| | | deleteq : deleteq, |
| | | deleteall : deleteall, |
| | | alertq : alertq, |
| | | insert: insert |
| | | }, |
| | | dataType : "json" |
| | | }); |
| | |
| | | if (document.getElementById("da_a").checked) { |
| | | var deleteall = "是" |
| | | } else {var deleteall = "否"} |
| | | if (document.getElementById("i_a").checked) { |
| | | var insert = "是" |
| | | } else { var insert = "否" } |
| | | $.ajax({ |
| | | async : false, //同步的 |
| | | type : "POST", |
| | |
| | | deleteq : deleteq, |
| | | deleteall : deleteall, |
| | | alertq : alertq, |
| | | insert: insert |
| | | }, |
| | | dataType : "json" |
| | | }); |
| | | swal({title:"Saved!", |
| | | swal({ |
| | | title: "Saved!", |
| | | text:"保存成功!", |
| | | type:"success", |
| | | showCancelButton:false, |
| | |
| | | // 导出表格 |
| | | $(".toAllExcel").click(function() { |
| | | window.location.href='/hxzkoa/userManagement_export.do'; |
| | | swal({title:"Exported!", |
| | | swal({ |
| | | title: "Exported!", |
| | | text:"导出成功!", |
| | | type:"success", |
| | | showCancelButton:false, |
| | |
| | | </script> |
| | | <!-- END GLOBAL MANDATORY SCRIPTS --> |
| | | </body> |
| | | |
| | | </html> |