From 52cffc4ab8e9787a6f233295502c7c9788dddae1 Mon Sep 17 00:00:00 2001
From: fxl <473369119@qq.com>
Date: 星期二, 07 三月 2023 10:45:17 +0800
Subject: [PATCH] 3.7

---
 src/main/webapp/hxzk/fence/inspectionSettings.jsp |  514 +++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 316 insertions(+), 198 deletions(-)

diff --git a/src/main/webapp/hxzk/fence/inspectionSettings.jsp b/src/main/webapp/hxzk/fence/inspectionSettings.jsp
index 0d4a71f..3302eb6 100644
--- a/src/main/webapp/hxzk/fence/inspectionSettings.jsp
+++ b/src/main/webapp/hxzk/fence/inspectionSettings.jsp
@@ -3,82 +3,150 @@
 <%@ 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);
-		}
-		.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>
+<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;
+}
+
+#head {
+	background-color: #FFFF00;
+	width: 100%;
+	height: 100px;
+}
+
+#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);
+}
+
+.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  -->
+	<!-- 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  -->
-    <!--  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 modifyNew" tabindex="-1" role="dialog"
+	<!--  END NAVBAR  -->
+	<!--  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 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>
@@ -95,17 +163,17 @@
 					<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;">
-									<label for="quyu_m">鍖哄煙鍚嶇О:</label>
-									<input class="form-control" type="text" id="quyu_m" disabled="disabled" />
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
+									<label for="quyu_m">鍖哄煙鍚嶇О:</label> <input class="form-control"
+										type="text" id="quyu_m" disabled="disabled" />
 								</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="xunshu_m">宸℃椤哄簭:</label>
-									<select class="form-control form-control-lg" id="xunshu_m">
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
+									<label for="xunshu_m">宸℃椤哄簭:</label> <select
+										class="form-control form-control-lg" id="xunshu_m">
 										<option value="鏃�">鏃�</option>
 										<option value="1">1</option>
 										<option value="2">2</option>
@@ -123,17 +191,17 @@
 								</div>
 							</div>
 							<div
-								style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
-								<div style="width:60%; margin-left:20%;float:left;">
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
 									<label for="zuobiao_m">宸℃娆℃暟:</label> <input
 										class="form-control" type="text" id="cishu_m" />
 								</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="start_m">缁戝畾瀵硅薄:</label>
-									<select class="form-control form-control-lg" id="tagid_m">
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
+									<label for="start_m">缁戝畾瀵硅薄:</label> <select
+										class="form-control form-control-lg" id="tagid_m">
 										<c:forEach items="${tagidList}" var="list">
 											<option value="${list}">${list}</option>
 										</c:forEach>
@@ -141,21 +209,21 @@
 								</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="stop_m">鍋滅暀鏃堕棿/s:</label>  <input
-										class="form-control" type="text" id="needstoptime_m" />
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
+									<label for="stop_m">鍋滅暀鏃堕棿/s:</label> <input class="form-control"
+										type="text" id="needstoptime_m" />
 								</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="stop_m">鏈�鏅氬贰妫�鏃堕棿:</label>  <input
-										class="form-control" type="text" id="stoptime_m" />
+								style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+								<div style="width: 60%; margin-left: 20%; float: left;">
+									<label for="stop_m">鏈�鏅氬贰妫�鏃堕棿:</label> <input class="form-control"
+										type="text" id="stoptime_m" />
 								</div>
 							</div>
 							<div class="modal-footer"
-								style="margin-top:10%; margin-left:10%;float:left;">
+								style="margin-top: 10%; margin-left: 10%; float: left;">
 								<button type="button" class="btn btn-primary modify">淇濆瓨</button>
 								<a><c:forEach var="i" begin="1" end="28">&nbsp</c:forEach></a>
 								<button class="btn" data-dismiss="modal">
@@ -167,79 +235,146 @@
 				</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">
-                                <table id="html5-extension" class="table table-hover" style="width:100%">
-                                		<div style="margin-bottom:20px;">
-    										<button type="button" class="btn btn-secondary initModify" data-toggle="modal" data-target=".modifyNew" id="modifyButton">淇敼</button>
-    										<button type="button" class="btn btn-secondary reset">鍒锋柊</button>
-										
-										</div>
-											<thead>
-												<tr align="center">
-													<th class="noExl">閫夋嫨</th>
-													<th>鍚嶇О</th>
-													<th>鏈�鏅氬贰妫�鏃堕棿</th>
-													<th>宸℃椤哄簭</th>
-													<th>鏍囩ID</th>
-													<th>鍋滅暀鏃堕棿/绉�</th>
-													<th>瑕佹眰宸℃娆℃暟</th>
-													<th>娣诲姞鏃堕棿</th>
-												</tr>
-											</thead>
-											<tbody id="nr">
-												<c:forEach items="${inspectionSettingsList}" var="list">
-												 	<tr align="center" class="d">
-												 		<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:4px"></label></td>
-														<td>${list.quyu}</td>
-														<td>${list.stoptime}</td>
-														<td>${list.xunshu}</td>
-														<td>${list.tagid}</td>
-														<td>${list.needstoptime}</td>
-														<td>${list.cishu}</td>
-														<td>${list.addtime}</td>
-													</tr>
-												</c:forEach>
-											</tbody>
-										</table>
-                           		  </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">
+								<table id="html5-extension" class="table table-hover"
+									style="width: 100%">
+									<div style="margin-bottom: 20px;">
+										<button type="button" class="btn btn-secondary initModify"
+											data-toggle="modal" data-target=".modifyNew"
+											id="modifyButton">淇敼</button>
+										<button type="button" class="btn btn-secondary reset">鍒锋柊</button>
+
+									</div>
+									<thead>
+										<tr align="center">
+											<th class="noExl">閫夋嫨</th>
+											<th>鍚嶇О</th>
+											<th>鏈�鏅氬贰妫�鏃堕棿</th>
+											<th>宸℃椤哄簭</th>
+											<th>鏍囩ID</th>
+											<th>鍋滅暀鏃堕棿/绉�</th>
+											<th>瑕佹眰宸℃娆℃暟</th>
+											<th>娣诲姞鏃堕棿</th>
+										</tr>
+									</thead>
+									<tbody id="nr">
+										<c:forEach items="${inspectionSettingsList}" var="list">
+											<tr align="center" class="d">
+												<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: 4px"></label></td>
+												<td>${list.quyu}</td>
+												<td>${list.stoptime}</td>
+												<td>${list.xunshu}</td>
+												<td>${list.tagid}</td>
+												<td>${list.needstoptime}</td>
+												<td>${list.cishu}</td>
+												<td>${list.addtime}</td>
+											</tr>
+										</c:forEach>
+									</tbody>
+								</table>
+							</div>
+						</div>
 					</div>
-                </div>
+				</div>
 			</div>
-        <!--  END CONTENT PART  -->
-    </div>
-    <!-- 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;},});
+		</div>
+		<!--  END CONTENT PART  -->
+	</div>
+	<%
+	String username = (String) session.getAttribute("username");
+	if (username == null || username.equals("")) {
+		request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response);
+		return;
+	}
+	%>
+	<input type="hidden" name="xianusera" id="xianusera" value="<%=username%>">
+	<!-- 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");
-		});
+			document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value
+		};
 		// 鍔犺浇head澶嶇敤椤甸潰
-		$('.header-page').load('/hxzkoa/hxzk/top.html');$('.login-page').load('/hxzkoa/hxzk/head.html');
+		$('.header-page').load('/hxzkoa/hxzk/top.html');
+		$('.login-page').load('/hxzkoa/hxzk/head.html');
 		// 鍒锋柊鍔熻兘
 		$(".reset").click(function() {
 			setTimeout("window.location.reload()", 1000);
 		});
 		// 淇敼鍔熻兘鍒濆鍖�
 		$('.initModify').on('click', function() {
-			var tr,state,firstId;
-			$('input[name="selectIds"]').each(
-				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];
+					$("#quyu_m").val(tr.children[1].innerHTML);
+					$("#xunshu_m").val(tr.children[3].innerHTML);
+					$("#tagid_m").val(tr.children[4].innerHTML);
+					$("#cishu_m").val(tr.children[6].innerHTML);
+					$("#needstoptime_m").val(tr.children[7].innerHTML);
+					$("#stoptime_m").val(tr.children[2].innerHTML);
+					return false;
+				}
+			});
+			if (!state) {
+				$('input[name="selectIds"]').each(function() {
 					state = $(this).prop('checked');
-					if(state){
+					if (!state) {
 						firstId = $(this).attr('id');
 						tr = $(this).parent().parent()[0];
 						$("#quyu_m").val(tr.children[1].innerHTML);
@@ -250,26 +385,8 @@
 						$("#stoptime_m").val(tr.children[2].innerHTML);
 						return false;
 					}
-				}
-			);
-			if(!state){
-				$('input[name="selectIds"]').each(
-					function(){
-						state = $(this).prop('checked');
-						if(!state){
-							firstId = $(this).attr('id');
-							tr = $(this).parent().parent()[0];
-							$("#quyu_m").val(tr.children[1].innerHTML);
-							$("#xunshu_m").val(tr.children[3].innerHTML);
-							$("#tagid_m").val(tr.children[4].innerHTML);
-							$("#cishu_m").val(tr.children[6].innerHTML);
-							$("#needstoptime_m").val(tr.children[7].innerHTML);
-							$("#stoptime_m").val(tr.children[2].innerHTML);
-							return false;
-						}
-						
-					}
-				);
+
+				});
 				alert("璇烽�変腑涓�鏉℃暟鎹繘琛屼慨鏀�,褰撳墠榛樿绗竴鏉★紒");
 			}
 		});
@@ -295,27 +412,28 @@
 				},
 				dataType : "json"
 			});
-			swal({title:"Modified!",
-	           text:"淇敼鎴愬姛锛�",
-	           type:"success",
-	           showCancelButton:false,
-	           showConfirmButton:false,
-	           buttons: false
-	        })
-	        setTimeout("window.location.reload()",1000);
+			swal({
+				title : "Modified!",
+				text : "淇敼鎴愬姛锛�",
+				type : "success",
+				showCancelButton : false,
+				showConfirmButton : false,
+				buttons : false
+			})
+			setTimeout("window.location.reload()", 1000);
 		});
-		$(".table tbody").on('click', 'tr',function(e){
-				//console.log(e.target.type)
-                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;
-                } 
-        	});
-    </script>
+		$(".table tbody").on('click', 'tr', function(e) {
+			//console.log(e.target.type)
+			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;
+			}
+		});
+	</script>
 </body>
 </html>

--
Gitblit v1.10.0