From 726603df43447f8cfedfeaae4267209adbd01699 Mon Sep 17 00:00:00 2001
From: yzt <Xynz17@163.com>
Date: 星期三, 27 九月 2023 13:48:58 +0800
Subject: [PATCH] BSV1.8
---
src/main/webapp/hxzk/sysSetting/userManagement.jsp | 1811 ++++++++++++++++++++++++++++++++-------------------------
1 files changed, 1,014 insertions(+), 797 deletions(-)
diff --git a/src/main/webapp/hxzk/sysSetting/userManagement.jsp b/src/main/webapp/hxzk/sysSetting/userManagement.jsp
index fc77645..43eddeb 100644
--- a/src/main/webapp/hxzk/sysSetting/userManagement.jsp
+++ b/src/main/webapp/hxzk/sysSetting/userManagement.jsp
@@ -1,818 +1,1035 @@
-<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
-<%@ 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">
- <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" 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/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" rel="stylesheet">
- <style>
- .panel-head{
- font-size: 1rem; color: rgba(255,255,255,.7); line-height: 2rem; text-align: center;
- background: linear-gradient(rgb(0,20,30), rgb(0,40,70));
- border: 2px solid rgba(0,90,120,.3);
- }
- tr:hover td{background:none;}
- .table-bordered td, .table-bordered th { border: 1px solid #ebedf2; }
-
-
- </style>
- <script src="/hxzkoa/hxzk/assets/js/app.js"></script>
- <script src="/hxzkoa/hxzk/assets/js/dashboard/dash_2.js"></script>
- <script src="/hxzkoa/hxzk/assets/js/loader.js"></script>
- <script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script>
- <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/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>
-</head>
-<body class="alt-menu sidebar-noneoverflow">
-
- <!-- BEGIN LOADER -->
- <div id="load_screen"> <div class="loader"> <div class="loader-content">
- <div class="spinner-grow align-self-center"></div>
- </div></div></div>
- <!-- END LOADER -->
- <div class="border-left" style="opacity:0.4;float:left;position:absolute;z-index:1;left:120px;height:20px;"><img alt="" src="/hxzkoa/resources/images/border.png" class="img-left"></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"></div>
- <!-- BEGIN NAVBAR -->
- <div class="login-page"></div>
- <!-- END NAVBAR -->
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
+ <%@ 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">
- <!-- BEGIN MAIN CONTAINER -->
- <div class="main-container" id="container">
+ <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">
+ <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" 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/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"
+ rel="stylesheet">
+ <style>
+ body {
+ margin: 0px;
+ width: 100%;
+ min-width: 1500px;
+ max-width: 100%;
+ height: 100%;
+ background-color: #F0F0F0;
+ background: url("/hxzkoa/resources/images/bottomBackground2.jpg");
+ }
- <div class="overlay"></div>
- <div class="search-overlay"></div>
+ #head {
+ background-color: #FFFF00;
+ width: 100%;
+ height: 100px;
+ }
- <!-- BEGIN TOPBAR -->
- <div class="header-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-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">
- <line x1="18" y1="6" x2="6" y2="18"></line>
- <line x1="6" y1="6" x2="18" y2="18"></line></svg>
- </button>
- </div>
- <div class="modal-body">
- <form action="form_action.asp" method="get">
- <div
- style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
- <div style="width:60%; margin-left:20%;float:left;" 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="text" id="user_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;" 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"/>
- </div>
- </div>
- <div
- style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
- <div style="width:60%; margin-left:20%;float:left;" 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"/>
- </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;">
- <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>
- </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>
- </div>
- </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">
- <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">
- <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">
- <input class="custom-control-input" type="checkbox" name="checkSetting" id="da_a">
- <label class="custom-control-label" for="da_a" >鍏ㄥ垹</label></div>
- </div>
- </div>
-
- <div class="modal-footer">
- <button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> 鍙栨秷</button>
- <button type="button" class="btn btn-primary add">淇濆瓨</button>
- </div>
- </form>
+ #center {
+ background-color: #00FFFF;
+ width: 100%;
+ min-height: 100%;
+ }
+
+ #foot {
+ background-color: #FF00FF;
+ width: 100%;
+ height: 100px;
+ }
+
+ .panel-head {
+ font-size: 1rem;
+ color: rgba(255, 255, 255, .7);
+ line-height: 2rem;
+ text-align: center;
+ background: linear-gradient(rgb(0, 20, 30), rgb(0, 40, 70));
+ border: 2px solid rgba(0, 90, 120, .3);
+ }
+
+ tr:hover td {
+ background: none;
+ }
+
+ .table-bordered td,
+ .table-bordered th {
+ border: 1px solid #ebedf2;
+ }
+ </style>
+ <script src="/hxzkoa/hxzk/assets/js/app.js"></script>
+ <script src="/hxzkoa/hxzk/assets/js/dashboard/dash_2.js"></script>
+ <script src="/hxzkoa/hxzk/assets/js/loader.js"></script>
+ <script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script>
+ <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/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>
+ </head>
+
+ <body class="alt-menu sidebar-noneoverflow">
+
+ <!-- BEGIN LOADER -->
+ <div id="load_screen">
+ <div class="loader">
+ <div class="loader-content">
+ <div class="spinner-grow align-self-center"></div>
+ </div>
</div>
</div>
- </div>
- </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-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">
- <line x1="18" y1="6" x2="6" y2="18"></line>
- <line x1="6" y1="6" x2="18" y2="18"></line></svg>
- </button>
- </div>
- <div class="modal-body">
- <form action="form_action.asp" method="get">
- <div
- style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
- <div style="width:60%; margin-left:20%;float:left;" 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="text" id="user_m" readonly="readonly"/>
- </div>
- </div>
- <div
- style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
- <div style="width:60%; margin-left:20%;float:left;" 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"/>
- </div>
- </div>
- <div
- style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
- <div style="width:60%; margin-left:20%;float:left;" 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"/>
- </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;">
- <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-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>
- </div>
- </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">
- <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">
- <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">
- <input class="custom-control-input" type="checkbox" name="checkSetting" id="da_m">
- <label class="custom-control-label" for="da_m" >鍏ㄥ垹</label></div>
- </div>
- </div>
- <div class="modal-footer">
- <button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> 鍙栨秷</button>
- <button type="button" class="btn btn-primary modify">淇濆瓨</button>
- </div>
- </form>
- </div>
+ <!-- END LOADER -->
+ <div class="border-left"
+ style="opacity: 0.4; float: left; position: absolute; z-index: 1; left: 120px; height: 20px;">
+ <img alt="" src="/hxzkoa/resources/images/border.png" class="img-left">
</div>
- </div>
- </div>
- <!-- END MODAL -->
-
- <!-- BEGIN CONTENT PART -->
- <div id="content" class="main-content">
- <div class="layout-px-spacing">
-
- <div class="row layout-top-spacing" id="cancel-row">
-
- <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
- <div class="widget-content widget-content-area br-6">
- <div class="table-responsive mb-4 mt-4">
+ <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">
+ </div>
+ <!-- BEGIN NAVBAR -->
+ <div class="login-page"></div>
+ <!-- END NAVBAR -->
- <table id="html5-extension" class="table table-hover" style="width:100% ;overflow:none;">
- <div><div class="search-input-group-style input-group mb-3"
- 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">
- <circle cx="11" cy="11" r="8"></circle>
- <line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
- </span>
+ <!-- BEGIN MAIN CONTAINER -->
+ <div class="main-container" id="container">
+
+ <div class="overlay"></div>
+ <div class="search-overlay"></div>
+
+ <!-- BEGIN TOPBAR -->
+ <div class="header-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-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">
+ <line x1="18" y1="6" x2="6" y2="18"></line>
+ <line x1="6" y1="6" x2="18" y2="18"></line>
+ </svg>
+ </button>
+ </div>
+ <div class="modal-body">
+ <form action="form_action.asp" method="get">
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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="text" id="user_a"
+ required="required" />
</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"
- 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>
- <button type="button" class="btn btn-secondary delete" id="deleteButton">鍒犻櫎</button>
- <button type="button" class="btn btn-secondary deleteAll" id="deleteAllButton">鍏ㄩ儴鍒犻櫎</button>
- <button type="button" class="btn btn-secondary toAllExcel" >瀵煎嚭琛ㄦ牸</button>
- </div>
-
</div>
- <thead>
- <tr align="center">
- <th class="noExl">閫夋嫨</th>
- <th>搴忓彿</th>
- <th>鐢ㄦ埛鍚�</th>
- <th>绾у埆</th>
- <th>鍒犻櫎</th>
- <th>淇敼</th>
- <th>鍏ㄩ儴鍒犻櫎</th>
- <th>浠呰鐪�</th>
- <th>娣诲姞鏃堕棿</th>
- </tr>
- </thead>
- <tbody id="nr">
- <c:forEach items="${userManagementList}" var="list">
- <tr align="center">
- <td class="noExl custom-control custom-checkbox"><input 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>
- <td>${list.id}</td>
- <td>${list.username}</td>
- <td>${list.superuser}</td>
- <td>${list.deleteq}</td>
- <td>${list.alertq}</td>
- <td>${list.deleteall}</td>
- <td>${list.justlook}</td>
- <td>${list.addtime}</td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- <div class="paginating-container pagination-solid">
- <input type="hidden" id="curPage" value="${curPage}"></input>
- <ul class="pagination" id="pageListId">
- <li><a href="javascript:page('pre');">涓婁竴椤�</a></li>
- <c:forEach items="${pageList}" var="list">
- <li id="page_${list}"><a
- href="javascript:page('${list}');">${list}</a></li>
- </c:forEach>
- <li><a href="javascript:page('next');">涓嬩竴椤�</a></li>
- </ul>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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" />
+ </div>
+ </div>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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" />
+ </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;">
+ <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" 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" onclick="danxuan()">
+ <label class="custom-control-label" for="visitor_a">鐢ㄦ埛</label>
+ </div>
+ </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">
+ <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">
+ <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">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="da_a"> <label
+ class="custom-control-label" for="da_a">鍏ㄥ垹</label>
+ </div>
+ </div>
+ </div>
+
+ <div class="modal-footer">
+ <button class="btn" data-dismiss="modal">
+ <i class="flaticon-cancel-12"></i> 鍙栨秷
+ </button>
+ <button type="button" class="btn btn-primary add">淇濆瓨</button>
+ </div>
+ </form>
+ </div>
</div>
- </div>
- </div>
+ </div>
+ </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-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">
+ <line x1="18" y1="6" x2="6" y2="18"></line>
+ <line x1="6" y1="6" x2="18" y2="18"></line>
+ </svg>
+ </button>
+ </div>
+ <div class="modal-body">
+ <form action="form_action.asp" method="get">
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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="text" id="user_m"
+ readonly="readonly" />
+ </div>
+ </div>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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" />
+ </div>
+ </div>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 60%; margin-left: 20%; float: left;"
+ 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" />
+ </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;">
+ <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" 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" onclick="danxuan2()"> <label
+ class="custom-control-label" for="visitor_m">鐢ㄦ埛</label>
+ </div>
+ </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">
+ <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">
+ <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">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="da_m"> <label
+ class="custom-control-label" for="da_m">鍏ㄥ垹</label>
+ </div>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button class="btn" data-dismiss="modal">
+ <i class="flaticon-cancel-12"></i> 鍙栨秷
+ </button>
+ <button type="button" class="btn btn-primary modify">淇濆瓨</button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- END MODAL -->
- </div>
+ <!-- BEGIN CONTENT PART -->
+ <div id="content" class="main-content">
+ <div class="layout-px-spacing">
- </div>
- <!-- END CONTENT PART -->
+ <div class="row layout-top-spacing" id="cancel-row">
- </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%>">
- <!-- 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; */},});
- $("#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;
- //console.log(superuser)
- if (superuser == "璁垮"){
- $("#addButton").attr("disabled","true");
- $("#deleteButton").attr("disabled","true");
- $("#modifyButton").attr("disabled","true");
- $("#deleteAllButton").attr("disabled","true");
- $("#modifyAllButton").attr("disabled","true");
- $("#importButton").attr("disabled","true");
- }
- if (deleteq == "鍚�"){
- $("#deleteButton").attr("disabled","true");
- }
- if (alertq == "鍚�"){
- $("#modifyButton").attr("disabled","true");
- $("#modifyAllButton").attr("disabled","true");
- }
- if (deleteall == "鍚�"){
- $("#deleteAllButton").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 page(page) {
- var curPage = $("#curPage").val();
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_page.do",
- data : {
- page : page,
- curPage : curPage
- },
- dataType : "json",
- success : function(data) {
- var str = "";
- for (var k in data.dataList) {
- str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" +
- data.dataList[k].id + "\" name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id +
- "\" style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" +
- 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>";
- }
- $("#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++)
- {
- 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>";
- $("#pageListId").html(str);
- }
- $("#pageListId>li.active").removeClass("active");
- $("#page_"+data.curPage).addClass("active");
- $("#curPage").val(data.curPage);
- },
- error : function() {
- //console.log('error');
- }
- });
- }
- // 鎼滅储鍔熻兘
- $(".search").click(function() {
- var input = $("#search_input").val();
- if (input == "") {
- swal('杈撳叆鏈夎','杈撳叆涓嶈兘涓虹┖锛�','error');return;
- }
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_search.do",
- data : {
- input : input
- },
- dataType : "json",
- success : function(data) {
- //鎼滅储瀹屾垚鍚庡埛鏂伴〉闈�,鍙樉绀烘煡鍒扮殑閮ㄥ垎
- var str = "";
- for (var k in data.dataList) {
- str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" +
- data.dataList[k].id + "\" name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id +
- "\" style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" +
- 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>";
- }
- $("#nr").html(str);
- for (var i = 0; i < 10; i++) {
- $("#page_" + i).removeClass("active");
- }
- $("#page_" + data.curPage).addClass("active");
- },
- error : function() {
- //console.log('error');
- }
- });
- });
-
- // 鍒犻櫎鍔熻兘
- $('.delete').on('click', function() {
- swal({
- title : '纭畾瑕佸垹闄や箞?',
- text : "鍒犻櫎涔嬪悗鏃犳硶鎭㈠!",
- type : 'warning',
- showCancelButton : true,
- confirmButtonText : '鍒犻櫎',
- cancelButtonText : '鍙栨秷',
- padding : '2em'
- }).then(function(result) {
- if (result.value) {
- //鑾峰彇閫変腑鏁版嵁
- var checkVal = [];
- var obj = document.getElementsByName("selectIds");
- for (var k in obj) {
- if (obj[k].checked) {
- checkVal.push(obj[k].id);
- }
- }
- if (checkVal.length>0){
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_delete.do",
- data : {
- checkVal : checkVal.toString()
- },
- dataType : "json"
+ <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
+ <div class="widget-content widget-content-area br-6">
+ <div class="table-responsive mb-4 mt-4">
+
+ <table id="html5-extension" class="table table-hover"
+ style="width: 100%; overflow: none;">
+ <div>
+ <div class="search-input-group-style input-group mb-3"
+ 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">
+ <circle cx="11" cy="11" r="8"></circle>
+ <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"
+ 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>
+ <button type="button" class="btn btn-secondary delete"
+ id="deleteButton">鍒犻櫎</button>
+ <button type="button" class="btn btn-secondary deleteAll"
+ id="deleteAllButton">鍏ㄩ儴鍒犻櫎</button>
+ <button type="button"
+ class="btn btn-secondary toAllExcel">瀵煎嚭琛ㄦ牸</button>
+ </div>
+
+ </div>
+ <thead>
+ <tr align="center">
+ <th class="noExl">閫夋嫨</th>
+ <th>搴忓彿</th>
+ <th>鐢ㄦ埛鍚�</th>
+ <th>绾у埆</th>
+ <th>鍒犻櫎</th>
+ <th>淇敼</th>
+ <th>鍏ㄩ儴鍒犻櫎</th>
+ <th>浠呰鐪�</th>
+ <th>鏂板</th>
+ <th>娣诲姞鏃堕棿</th>
+ </tr>
+ </thead>
+ <tbody id="nr">
+ <c:forEach items="${userManagementList}" var="list">
+ <tr align="center">
+ <td class="noExl custom-control custom-checkbox"><input
+ 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>
+ <td>${list.id}</td>
+ <td>${list.username}</td>
+ <td>${list.superuser}</td>
+ <td>${list.deleteq}</td>
+ <td>${list.alertq}</td>
+ <td>${list.deleteall}</td>
+ <td>${list.justlook}</td>
+ <td>${list.fenceq}</td>
+ <td>${list.addtime}</td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+ </div>
+ <div class="paginating-container pagination-solid">
+ <input type="hidden" id="curPage" value="${curPage}"></input>
+ <ul class="pagination" id="pageListId">
+ <li><a href="javascript:page('pre');">涓婁竴椤�</a></li>
+ <c:forEach items="${pageList}" var="list">
+ <li id="page_${list}"><a
+ href="javascript:page('${list}');">${list}</a></li>
+ </c:forEach>
+ <li><a href="javascript:page('next');">涓嬩竴椤�</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ </div>
+
+ </div>
+ <!-- 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"); 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>
+ // 椤甸潰鍒濆鍖�
+ 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");
+ $("#deleteButton").attr("disabled", "true");
+ $("#modifyButton").attr("disabled", "true");
+ $("#deleteAllButton").attr("disabled", "true");
+ $("#modifyAllButton").attr("disabled", "true");
+ $("#importButton").attr("disabled", "true");
+ }
+ if (deleteq == "鍚�") {
+ $("#deleteButton").attr("disabled", "true");
+ }
+ if (alertq == "鍚�") {
+ $("#modifyButton").attr("disabled", "true");
+ $("#modifyAllButton").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);
});
- swal(
- 'Deleted!',
- '鍒犻櫎鎴愬姛锛�',
+ // 鍗曢�変簨浠�
+ 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();
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_page.do",
+ data: {
+ page: page,
+ curPage: curPage
+ },
+ dataType: "json",
+ success: function (data) {
+ var str = "";
+ for (var k in data.dataList) {
+ str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" +
+ data.dataList[k].id + "\" name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id +
+ "\" style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" +
+ 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].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++) {
+ 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>";
+ $("#pageListId").html(str);
+ }
+ $("#pageListId>li.active").removeClass("active");
+ $("#page_" + data.curPage).addClass("active");
+ $("#curPage").val(data.curPage);
+ },
+ error: function () {
+ //console.log('error');
+ }
+ });
+ }
+ // 鎼滅储鍔熻兘
+ $(".search").click(function () {
+ var input = $("#search_input").val();
+ if (input == "") {
+ swal('杈撳叆鏈夎', '杈撳叆涓嶈兘涓虹┖锛�', 'error'); return;
+ }
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_search.do",
+ data: {
+ input: input
+ },
+ dataType: "json",
+ success: function (data) {
+ //鎼滅储瀹屾垚鍚庡埛鏂伴〉闈�,鍙樉绀烘煡鍒扮殑閮ㄥ垎
+ var str = "";
+ for (var k in data.dataList) {
+ str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" +
+ data.dataList[k].id + "\" name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id +
+ "\" style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" +
+ 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].fenceq + "</td><td>" + data.dataList[k].addtime + "</td></tr>";
+ }
+ $("#nr").html(str);
+ for (var i = 0; i < 10; i++) {
+ $("#page_" + i).removeClass("active");
+ }
+ $("#page_" + data.curPage).addClass("active");
+ },
+ error: function () {
+ //console.log('error');
+ }
+ });
+ });
+
+ // 鍒犻櫎鍔熻兘
+ $('.delete').on('click', function () {
+ swal({
+ title: '纭畾瑕佸垹闄や箞?',
+ text: "鍒犻櫎涔嬪悗鏃犳硶鎭㈠!",
+ type: 'warning',
+ showCancelButton: true,
+ confirmButtonText: '鍒犻櫎',
+ cancelButtonText: '鍙栨秷',
+ padding: '2em'
+ }).then(function (result) {
+ if (result.value) {
+ //鑾峰彇閫変腑鏁版嵁
+ var checkVal = [];
+ var obj = document.getElementsByName("selectIds");
+ for (var k in obj) {
+ if (obj[k].checked) {
+ checkVal.push(obj[k].id);
+ }
+ }
+ if (checkVal.length > 0) {
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_delete.do",
+ data: {
+ checkVal: checkVal.toString()
+ },
+ dataType: "json"
+ });
+ swal(
+ 'Deleted!',
+ '鍒犻櫎鎴愬姛锛�',
+ 'success'
+ )
+ setTimeout("window.location.reload()", 1000);
+ } else {
+ swal(
+ '鍒犻櫎澶辫触!',
+ '璇峰厛閫夋嫨鍒犻櫎鐨勫唴瀹�',
+ 'error'
+ )
+ }
+ }
+ })
+ });
+ // 鍏ㄩ儴鍒犻櫎
+ $('.deleteAll').on('click', function () {
+ swal({
+ title: '纭畾瑕佸叏閮ㄥ垹闄や箞?',
+ text: "鍒犻櫎涔嬪悗鏃犳硶鎭㈠!",
+ type: 'warning',
+ showCancelButton: true,
+ confirmButtonText: '鍒犻櫎',
+ cancelButtonText: '鍙栨秷',
+ padding: '2em'
+ }).then(function (result) {
+ if (result.value) {
+ //鑾峰彇閫変腑鏁版嵁
+ var checkVal = [];
+ var obj = document.getElementsByName("selectIds");
+ for (var k in obj) {
+ if (obj[k].checked) {
+ checkVal.push(obj[k].id);
+ }
+ }
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_deleteAll.do",
+ data: {
+ checkVal: checkVal.toString()
+ },
+ dataType: "json"
+ });
+ swal(
+ 'Deleted!',
+ '宸插垹闄�',
+ 'success'
+ )
+ setTimeout("window.location.reload()", 1000);
+ }
+ })
+ });
+ $(".table tbody").on('click', 'tr', function (e) {
+ if (e.target.type != 'checkbox') {
+ if ($(this).find(":checkbox").prop("checked") == true) {
+ $(this).find(":checkbox").prop("checked", false);
+ } else {
+ $(this).find(":checkbox").prop("checked", true);
+ }
+ } else {
+ return false;
+ }
+ });
+ // 淇敼鍔熻兘鍒濆鍖�
+ $('.initModify').on('click', function () {
+ var tr, state, firstId;
+ $('input[name="selectIds"]').each(
+ function () {
+ state = $(this).prop('checked');
+ if (state) {
+ firstId = $(this).attr('id');
+ tr = $(this).parent().parent()[0];
+ $("#user_m").val(tr.children[2].innerHTML);
+ var superuser = tr.children[3].innerHTML
+ if (superuser == "瓒呯骇绠$悊鍛�") {
+ $('input[name=customRadioInline2]').get(0).checked = true;
+ } else {
+ $('input[name=customRadioInline2]').get(1).checked = true;
+ }
+ var deleteq = tr.children[4].innerHTML
+ if (deleteq == "鏄�") {
+ $("#d_m").prop("checked", true);
+ } else {
+ $("#d_m").prop("checked", false);
+ }
+ var alertq = tr.children[5].innerHTML
+ if (alertq == "鏄�") {
+ $("#m_m").prop("checked", true);
+ } else {
+ $("#m_m").prop("checked", false);
+ }
+ var deleteall = tr.children[6].innerHTML
+ if (deleteall == "鏄�") {
+ $("#da_m").prop("checked", true);
+ } else {
+ $("#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 (!state) {
+ $('input[name="selectIds"]').each(
+ function () {
+ state = $(this).prop('checked');
+ if (!state) {
+ firstId = $(this).attr('id');
+ tr = $(this).parent().parent()[0];
+ $("#user_m").val(tr.children[2].innerHTML);
+ var superuser = tr.children[3].innerHTML
+ if (superuser == "瓒呯骇绠$悊鍛�") {
+ $('input[name=customRadioInline2]').get(0).checked = true;
+ } else {
+ $('input[name=customRadioInline2]').get(1).checked = true;
+ }
+ var deleteq = tr.children[4].innerHTML
+ if (deleteq == "鏄�") {
+ $("#d_m").prop("checked", true);
+ } else {
+ $("#d_m").prop("checked", false);
+ }
+ var alertq = tr.children[5].innerHTML
+ if (alertq == "鏄�") {
+ $("#m_m").prop("checked", true);
+ } else {
+ $("#m_m").prop("checked", false);
+ }
+ var deleteall = tr.children[6].innerHTML
+ if (deleteall == "鏄�") {
+ $("#da_m").prop("checked", true);
+ } else {
+ $("#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;
+ }
+
+ }
+ );
+ alert("璇烽�変腑涓�鏉℃暟鎹繘琛屼慨鏀�,褰撳墠榛樿绗竴鏉★紒");
+ }
+ });
+ // 淇敼鍔熻兘
+ $('.modify').on('click', function () {
+ var username = $("#user_m").val();
+ var password = $("#password_m").val();
+ var repassword = $("#repassword_m").val();
+ if (username == '' || password == '' || repassword == '') {
+ swal(
+ '澶辫触!',
+ '璇疯ˉ鍏ㄦ暟鎹�',
+ 'error'
+ )
+ return
+ }
+ if (password != repassword) {
+ swal(
+ '澶辫触!',
+ '瀵嗙爜涓嶄竴鑷达紒',
+ 'error'
+ )
+ return
+ }
+ if ($('input:radio[name="customRadioInline2"]:checked').val() == "0") {
+ var superuser = "瓒呯骇绠$悊鍛�"
+ var justlook = "鍚�"
+ } else {
+ var superuser = "璁垮"
+ var justlook = "鏄�"
+ }
+ if (document.getElementById("d_m").checked) {
+ var deleteq = "鏄�"
+ } else { var deleteq = "鍚�" }
+ if (document.getElementById("m_m").checked) {
+ var alertq = "鏄�"
+ } else { var alertq = "鍚�" }
+ 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 () {
+ state = $(this).prop('checked');
+ if (state) {
+ firstId = $(this).attr('id');
+ return false;
+ }
+ }
+ );
+ if (!state) {
+ $('input[name="selectIds"]').each(
+ function () {
+ state = $(this).prop('checked');
+ if (!state) {
+ firstId = $(this).attr('id');
+ return false;
+ }
+
+ }
+ );
+ }
+ //console.log(document.getElementById("d_m").checked,firstId)
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_modify.do",
+ data: {
+ id: firstId,
+ username: username,
+ password: password,
+ superuser: superuser,
+ justlook: justlook,
+ deleteq: deleteq,
+ deleteall: deleteall,
+ alertq: alertq,
+ insert: insert
+ },
+ dataType: "json"
+ });
+ swal(
+ 'Modified!',
+ '淇敼鎴愬姛锛�',
'success'
)
- setTimeout("window.location.reload()",1000);
- }else{
- swal(
- '鍒犻櫎澶辫触!',
- '璇峰厛閫夋嫨鍒犻櫎鐨勫唴瀹�',
- 'error'
- )
- }
- }
- })
- });
- // 鍏ㄩ儴鍒犻櫎
- $('.deleteAll').on('click', function() {
- swal({
- title : '纭畾瑕佸叏閮ㄥ垹闄や箞?',
- text : "鍒犻櫎涔嬪悗鏃犳硶鎭㈠!",
- type : 'warning',
- showCancelButton : true,
- confirmButtonText : '鍒犻櫎',
- cancelButtonText : '鍙栨秷',
- padding : '2em'
- }).then(function(result) {
- if (result.value) {
- //鑾峰彇閫変腑鏁版嵁
- var checkVal = [];
- var obj = document.getElementsByName("selectIds");
- for (var k in obj) {
- if (obj[k].checked) {
- checkVal.push(obj[k].id);
- }
- }
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_deleteAll.do",
- data : {
- checkVal : checkVal.toString()
- },
- dataType : "json"
- });
- swal(
- 'Deleted!',
- '宸插垹闄�',
- 'success'
- )
- setTimeout("window.location.reload()",1000);
- }
- })
- });
- $(".table tbody").on('click', 'tr',function(e){
- if(e.target.type!='checkbox'){
- if($(this).find(":checkbox").prop("checked")==true){
- $(this).find(":checkbox").prop("checked",false);
- }else{
- $(this).find(":checkbox").prop("checked",true);
- }
- } else {
- return false;
- }
- });
- // 淇敼鍔熻兘鍒濆鍖�
- $('.initModify').on('click', function() {
- var tr,state,firstId;
- $('input[name="selectIds"]').each(
- function(){
- state = $(this).prop('checked');
- if(state){
- firstId = $(this).attr('id');
- tr = $(this).parent().parent()[0];
- $("#user_m").val(tr.children[2].innerHTML);
- var superuser = tr.children[3].innerHTML
- if(superuser=="瓒呯骇绠$悊鍛�"){
- $( 'input[name=customRadioInline2]' ).get(0).checked = true ;
- } else {
- $( 'input[name=customRadioInline2]' ).get(1).checked = true ;
- }
- var deleteq = tr.children[4].innerHTML
- if(deleteq=="鏄�"){
- $("#d_m").attr("checked",true);
- } else {
- $("#d_m").attr("checked",false);
- }
- var alertq = tr.children[5].innerHTML
- if(alertq=="鏄�"){
- $("#m_m").attr("checked",true);
- } else {
- $("#m_m").attr("checked",false);
- }
- var deleteall = tr.children[6].innerHTML
- if(deleteall=="鏄�"){
- $("#da_m").attr("checked",true);
- } else {
- $("#da_m").attr("checked",false);
- }
- return false;
- }
-
- }
- );
- if(!state){
- $('input[name="selectIds"]').each(
- function(){
- state = $(this).prop('checked');
- if(!state){
- firstId = $(this).attr('id');
- tr = $(this).parent().parent()[0];
- $("#user_m").val(tr.children[2].innerHTML);
- var superuser = tr.children[3].innerHTML
- if(superuser=="瓒呯骇绠$悊鍛�"){
- $( 'input[name=customRadioInline2]' ).get(0).checked = true ;
- } else {
- $( 'input[name=customRadioInline2]' ).get(1).checked = true ;
+ setTimeout("window.location.reload()", 1000);
+ });
+ // 鏂板鍔熻兘
+ $('.add').on('click', function () {
+ var username = $("#user_a").val();
+ var password = $("#password_a").val();
+ var repassword = $("#repassword_a").val();
+ if (username == '' || password == '' || repassword == '') {
+ swal(
+ '澶辫触!',
+ '璇疯ˉ鍏ㄦ暟鎹�',
+ 'error'
+ )
+ return
}
- var deleteq = tr.children[4].innerHTML
- if(deleteq=="鏄�"){
- $("#d_m").attr("checked",true);
- } else {
- $("#d_m").attr("checked",false);
+ if (password != repassword) {
+ swal(
+ '澶辫触!',
+ '瀵嗙爜涓嶄竴鑷达紒',
+ 'error'
+ )
+ return
}
- var alertq = tr.children[5].innerHTML
- if(alertq=="鏄�"){
- $("#m_m").attr("checked",true);
+ if ($('input:radio[name="customRadioInline1"]:checked').val() == "0") {
+ var superuser = "瓒呯骇绠$悊鍛�"
+ var justlook = "鍚�"
} else {
- $("#m_m").attr("checked",false);
+ var superuser = "璁垮"
+ var justlook = "鏄�"
}
- var deleteall = tr.children[6].innerHTML
- if(deleteall=="鏄�"){
- $("#da_m").attr("checked",true);
- } else {
- $("#da_m").attr("checked",false);
- }
- return false;
- }
-
- }
- );
- alert("璇烽�変腑涓�鏉℃暟鎹繘琛屼慨鏀�,褰撳墠榛樿绗竴鏉★紒");
- }
- });
- // 淇敼鍔熻兘
- $('.modify').on('click', function() {
- var username = $("#user_m").val();
- var password = $("#password_m").val();
- var repassword = $("#repassword_m").val();
- if(username =='' || password=='' || repassword ==''){
- swal(
- '澶辫触!',
- '璇疯ˉ鍏ㄦ暟鎹�',
- 'error'
- )
- return
- }
- if(password !=repassword){
- swal(
- '澶辫触!',
- '瀵嗙爜涓嶄竴鑷达紒',
- 'error'
- )
- return
- }
- if($('input:radio[name="customRadioInline2"]:checked').val() == "0"){
- var superuser = "瓒呯骇绠$悊鍛�"
- var justlook="鍚�"
- } else {
- var superuser = "璁垮"
- var justlook="鏄�"
- }
- if (document.getElementById("d_m").checked) {
- var deleteq = "鏄�"
- } else {var deleteq = "鍚�"}
- if (document.getElementById("m_m").checked) {
- var alertq = "鏄�"
- } else {var alertq = "鍚�"}
- if (document.getElementById("da_m").checked) {
- var deleteall = "鏄�"
- } else {var deleteall = "鍚�"}
- var fistId,state;
- $('input[name="selectIds"]').each(
- function(){
- state = $(this).prop('checked');
- if(state){
- firstId = $(this).attr('id');
- return false;
- }
- }
- );
- if(!state){
- $('input[name="selectIds"]').each(
- function(){
- state = $(this).prop('checked');
- if(!state){
- firstId = $(this).attr('id');
- return false;
- }
-
- }
- );
- }
- //console.log(document.getElementById("d_m").checked,firstId)
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_modify.do",
- data : {
- id : firstId,
- username : username,
- password : password,
- superuser : superuser,
- justlook : justlook,
- deleteq : deleteq,
- deleteall : deleteall,
- alertq : alertq,
- },
- dataType : "json"
- });
- swal(
- 'Modified!',
- '淇敼鎴愬姛锛�',
- 'success'
- )
- setTimeout("window.location.reload()",1000);
- });
- // 鏂板鍔熻兘
- $('.add').on('click', function() {
- var username = $("#user_a").val();
- var password = $("#password_a").val();
- var repassword = $("#repassword_a").val();
- if(username =='' || password=='' || repassword ==''){
- swal(
- '澶辫触!',
- '璇疯ˉ鍏ㄦ暟鎹�',
- 'error'
- )
- return
- }
- if(password !=repassword){
- swal(
- '澶辫触!',
- '瀵嗙爜涓嶄竴鑷达紒',
- 'error'
- )
- return
- }
- if($('input:radio[name="customRadioInline1"]:checked').val() == "0"){
- var superuser = "瓒呯骇绠$悊鍛�"
- var justlook="鍚�"
- } else {
- var superuser = "璁垮"
- var justlook="鏄�"
- }
- if (document.getElementById("d_a").checked) {
- var deleteq = "鏄�"
- } else {var deleteq = "鍚�"}
- if (document.getElementById("m_a").checked) {
- var alertq = "鏄�"
- } else {var alertq = "鍚�"}
- if (document.getElementById("da_a").checked) {
- var deleteall = "鏄�"
- } else {var deleteall = "鍚�"}
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_check.do",
- data : {
- name : username,
- },
- dataType : "json",
- success:function(data){
- //console.log("data:",data)
- if (data == "0"){
- $.ajax({
- async : false, //鍚屾鐨�
- type : "POST",
- url : "/hxzkoa/userManagement_add.do",
- data : {
- username : username,
- password : password,
- superuser : superuser,
- justlook : justlook,
- deleteq : deleteq,
- deleteall : deleteall,
- alertq : alertq,
- },
- dataType : "json"
- });
- swal({title:"Saved!",
- text:"淇濆瓨鎴愬姛锛�",
- type:"success",
- showCancelButton:false,
- showConfirmButton:false,
- buttons: false
- })
- setTimeout("window.location.reload()",1000);
- } else {
- swal(
- '鏂板澶辫触!',
- '鐢ㄦ埛鍚嶉噸澶�',
- 'error'
- )
- }
- },
- });
-
- });
- // 瀵煎嚭琛ㄦ牸
- $(".toAllExcel").click(function() {
- window.location.href='/hxzkoa/userManagement_export.do';
- swal({title:"Exported!",
- text:"瀵煎嚭鎴愬姛锛�",
- type:"success",
- showCancelButton:false,
- showConfirmButton:false,
- buttons: false
- })
- setTimeout("window.location.reload()",1000);
- });
- </script>
- <!-- END GLOBAL MANDATORY SCRIPTS -->
+ if (document.getElementById("d_a").checked) {
+ var deleteq = "鏄�"
+ } else { var deleteq = "鍚�" }
+ if (document.getElementById("m_a").checked) {
+ var alertq = "鏄�"
+ } else { var alertq = "鍚�" }
+ 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",
+ url: "/hxzkoa/userManagement_check.do",
+ data: {
+ name: username,
+ },
+ dataType: "json",
+ success: function (data) {
+ //console.log("data:",data)
+ if (data == "0") {
+ $.ajax({
+ async: false, //鍚屾鐨�
+ type: "POST",
+ url: "/hxzkoa/userManagement_add.do",
+ data: {
+ username: username,
+ password: password,
+ superuser: superuser,
+ justlook: justlook,
+ deleteq: deleteq,
+ deleteall: deleteall,
+ alertq: alertq,
+ insert: insert
+ },
+ dataType: "json"
+ });
+ swal({
+ title: "Saved!",
+ text: "淇濆瓨鎴愬姛锛�",
+ type: "success",
+ showCancelButton: false,
+ showConfirmButton: false,
+ buttons: false
+ })
+ setTimeout("window.location.reload()", 1000);
+ } else {
+ swal(
+ '鏂板澶辫触!',
+ '鐢ㄦ埛鍚嶉噸澶�',
+ 'error'
+ )
+ }
+ },
+ });
-</body>
-</html>
+ });
+ // 瀵煎嚭琛ㄦ牸
+ $(".toAllExcel").click(function () {
+ window.location.href = '/hxzkoa/userManagement_export.do';
+ swal({
+ title: "Exported!",
+ text: "瀵煎嚭鎴愬姛锛�",
+ type: "success",
+ showCancelButton: false,
+ showConfirmButton: false,
+ buttons: false
+ })
+ setTimeout("window.location.reload()", 1000);
+ });
+ </script>
+ <!-- END GLOBAL MANDATORY SCRIPTS -->
+ </body>
+
+ </html>
\ No newline at end of file
--
Gitblit v1.10.0