15832144755
2021-08-27 3516f02277035cdc7ff137422709b16efe97ca4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<%@ 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);
        }
        .table-bordered td, .table-bordered th { border: 1px solid #ebedf2; }   
        .form-control{width:200px;}
        
    </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/assets/js/DateToStringUtil.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  -->
 
    <!--  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 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">
                    <form action="form_action.asp" method="get" id="settingForm">
                        <div class="partTitle" style ="margin:20px 20px;"><label for="exampleFormControlInput1">基础设置</label></div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
                            <div style="width:110px;margin-left:2%;float:left;line-height:37px;"> <label for="exampleFormControlInput1">数据库名称:</label></div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="dataname" id="dataname" value="${settingList[0].dataname}" required="required"/></div> 
                            <div style="width:165px; margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">轨迹保存的时长(天):</label> </div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="gui_ji" id="gui_ji" value="${settingList[0].gui_ji}" required="required"/></div> 
                            <div style="width:105px; margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">TCP接收端口:</label></div>
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="bei_fen_di_zhi"id="bei_fen_di_zhi"  value="${settingList[0].bei_fen_di_zhi}" required="required"/></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">
                            <div style="width:110px;margin-left:2%;float:left;line-height:37px;"> <label for="exampleFormControlInput1">数据库密码:</label> </div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="password" name="datapass" id="datapass"  value="${settingList[0].datapass}" required="required"/></div> 
                            <div style="width:165px;margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">数据库备份频率(周):</label></div> 
                            <div style="width:15%; margin-left:1%;float:left;"> <input  class="form-control" type="text" name="data_time" id="data_time" value="${settingList[0].data_time}" required="required"/></div> 
                            <div style="width:105px;margin-left:1%;float:left;line-height:37px;"> <label for="exampleFormControlInput1">系统标题设置:</label> </div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="title" id="title" value="${settingList[0].title}" required="required"/></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;"> 
                            <div style="width:110px;margin-left:2%;float:left;line-height:37px;"><label for="exampleFormControlInput1">UDP接收端口:</label> </div>  
                            <div style="width:15%; margin-left:1%;float:left;"> <input  class="form-control" type="text" name="udpPort" id="udpPort" value="${settingList[0].bs_udp}" required="required"/></div>
                            <div style="width:165px;margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">服务器地址:</label></div> 
                            <div style="width:15%; margin-left:1%;float:left;"> <input  class="form-control" type="text" name="udpAdress" id="udpAdress" value="${settingList[0].udpAdress}" required="required"/></div>
                            <div style="width:105px;margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">乱序回溯:</label> </div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="rssid" id="rssid" value="${settingList[0].rssid}" required="required"/></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;"> 
                            <div style="width:110px;margin-left:2%;float:left;line-height:37px;"><label for="exampleFormControlInput1">首页地图选择:</label> </div>  
                            <div style="width:15%; margin-left:1%;float:left;"> <input type="hidden" name="prodId" id="prodId3" value="${settingList[0].yulan_map}"/>
                                <select  class="form-control form-control-lg" id="yulan_map_tu" style="font-size:6px;height:37px;padding: 0px 0px;width:200px;">
                                    <option value="百度地图">百度地图</option>
                                    <option value="${maplist[0].mapname}">${maplist[0].mapname}</option>
                                    <option value="${maplist[1].mapname}">${maplist[1].mapname}</option>
                                    <option value="${maplist[2].mapname}">${maplist[2].mapname}</option>
                                    <option value="${maplist[3].mapname}">${maplist[3].mapname}</option>
                              </select>
                            </div>
                            <div style="width:165px;margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">中心点经度:</label></div> 
                            <div style="width:15%; margin-left:1%;float:left;"> <input  class="form-control" type="text" name="baidu_j" id="baidu_j" value="${settingList[0].baidu_j}" required="required"/></div>
                            <div style="width:105px;margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">中心点纬度:</label> </div> 
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="baidu_w" id="baidu_w" value="${settingList[0].baidu_w}" required="required"/></div>  
                        </div>
                        <div style="width:90%; margin:10px auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check1" value="${settingList[0].openudp}"> <label class="custom-control-label" for="check1" >开启UDP监听</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check2" value="${settingList[0].know_tag_zu}"> <label class="custom-control-label" for="check2" >已知标签所在组</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check3" value="${settingList[0].wifi_mdel}"> <label class="custom-control-label" for="check3" >WIFI模式</label></div>  
                        </div>
                        <div class="partTitle" style ="margin:20px 20px;"><label for="exampleFormControlInput1">视图相关设置</label></div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check4" value="${settingList[0].tagZb}"> <label class="custom-control-label" for="check4" >标签坐标显示</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check5" value="${settingList[0].diskaoqing}"> <label class="custom-control-label" for="check5" >出考勤区消失</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check6" value="${settingList[0].viewAnckid}"> <label class="custom-control-label" for="check6" >显示基站的ID</label></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check7" value="${settingList[0].viewName}"> <label class="custom-control-label" for="check7" >显示姓名</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check8" value="${settingList[0].tunlDw}"> <label class="custom-control-label" for="check8" >隧道定位</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check9" value="${settingList[0].guiji_sava}"><label class="custom-control-label" for="check9" >开启轨迹保存</label></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check10" value="${settingList[0].viewPower}"> <label class="custom-control-label" for="check10" >显示实时电量</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check11" value="${settingList[0].viewTagid}"> <label class="custom-control-label" for="check11" >显示标签 的ID</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check12" value="${settingList[0].viewAnckzb}"> <label class="custom-control-label" for="check12" >显示基站坐标</label></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check13" value="${settingList[0].offView}"> <label class="custom-control-label" for="check13" >离线消失</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check20" value="${settingList[0].fence_show}"> <label class="custom-control-label" for="check20" >围栏显示</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" value="1" id="check16" value="${settingList[0].quiet}"> <label class="custom-control-label" for="check16" >静止坐标固定 </label></div>
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check14" value="${settingList[0].anckicon}"> <label class="custom-control-label" for="check14" >基站显示</label></div>
                            <div style="width:32%; margin-left:1%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check15" value="${settingList[0].gas_show}"> <label class="custom-control-label" for="check15" >开启气体显示</label></div>  
                        </div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;height:37px;">
                                <input id="prodId1" name="prodId" type="hidden" value="${settingList[0].real_trak_time}"> 
                                <select  class="form-control form-control-lg" id="real_trak_time" style="font-size:6px;height:20px;padding: 0px 0px;width:200px;">
                                    <option value="不显示实时轨迹">不显示实时轨迹</option>
                                    <option value="10秒钟">10秒钟</option>
                                    <option value="30秒钟">30秒钟</option>
                                    <option value="1分钟">1分钟</option>
                                    <option value="10分钟">10分钟</option>
                                    <option value="30分钟">30分钟</option>
                                    <option value="1小时">1小时</option>
                                </select>
                            </div>
                            <div style="width:32%; margin-left:1%;float:left;height:37px;" >
                                <input id="prodId2" name="prodId" type="hidden" value="${settingList[0].real_trak_color}">
                                <select  class="form-control form-control-lg" id="real_trak_color" style="font-size:6px;height:20px;padding: 0px 0px;width:200px;">
                                    <option value="红色">红色</option>
                                    <option value="蓝色">蓝色</option>
                                    <option value="黑色">黑色</option>
                                    <option value="白色">白色</option>
                                    <option value="绿色">绿色</option>
                                    <option value="黄色">黄色</option>
                                </select>
                            </div>                           
                        </div>
                        <div class="partTitle" style ="margin:20px 20px;"><label for="exampleFormControlInput1">其他设置</label></div>
                        <div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;">  
                            <div style="width:32%; margin-left:2%;float:left;" class="custom-control custom-checkbox"><input class="custom-control-input" type="checkbox" name="checkSetting" id="check19" value="${settingList[0].gas_open}"><label class="custom-control-label" for="check19" >开启气体监听</label></div>
                            <div style="margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">监听端口:</label> </div>
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="gas_port" id="gas_port" value="${settingList[0].gas_port}" required="required"/></div>
                            <div style=" margin-left:1%;float:left;line-height:37px;"><label for="exampleFormControlInput1">气体采样频率:</label> </div>
                            <div style="width:15%; margin-left:1%;float:left;"><input  class="form-control" type="text" name="gas_hz" id="gas_hz" value="${settingList[0].gas_hz}" required="required"/></div>  
                        </div>
                        <div style="justify-content: center;align-items: center;display: flex;margin-top:20px;">
                            <div><button type="button"  class="btn btn-secondary modify">确定修改</button>
                            <button type="button"  class="btn btn-secondary" onclick="resetSetting()">参数重置</button> </div>                          
                        </div>
                    </form>
                    </div>
                     </div>
                        </div>
                    </div>
 
                </div>
 
             </div>
        <!--  END CONTENT PART  -->
 
    </div>
    <!-- END MAIN CONTAINER -->
    <%
                String username=(String)session.getAttribute("username");
                if(username==null || username.equals("")){
                request.getRequestDispatcher("/hxzk/login.jsp").forward(request,response);
                return;
                }
                %>
    <!-- BEGIN GLOBAL MANDATORY SCRIPTS -->      
    <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; */},});
        });
        $('.header-page').load('/hxzkoa/hxzk/top.html');$('.login-page').load('/hxzkoa/hxzk/head.html');
        $(".modify").click(function() {
            var dataname = $("#dataname").val();
            var datapass = $("#datapass").val();
            var gui_ji = $("#gui_ji").val();
            var bei_fen_di_zhi = $("#bei_fen_di_zhi").val();
            var data_time = $("#data_time").val();
            var title = $("#title").val();
            var udpPort = $("#udpPort").val(); 
            var udpAdress = $("#udpAdress").val();
            var rssid = $("#rssid").val();
            //console.log(document.getElementById("check1").checked)
            if (document.getElementById("check1").checked) {
                var openudp = "1"
            } else {var openudp = "0"}
            if (document.getElementById("check2").checked) {
                var know_tag_zu = "1"
            } else {var know_tag_zu = "0"}
            if (document.getElementById("check3").checked) {
                var wifi_mdel = "1"
            } else {var wifi_mdel = "0"}
            if (document.getElementById("check4").checked) {
                var tagZb = "1"
            } else {var tagZb = "0"}
            if (document.getElementById("check5").checked) {
                var diskaoqing = "1"
            } else {var diskaoqing = "0"}
            if (document.getElementById("check6").checked) {
                var viewAnckid = "1"
            } else {var viewAnckid = "0"}
            if (document.getElementById("check7").checked) {
                var viewName = "1"
            } else {var viewName = "0"}
            if (document.getElementById("check8").checked) {
                var tunlDw = "1"
            } else {var tunlDw = "0"}
            if (document.getElementById("check9").checked) {
                var guiji_sava = "1"
            } else {var guiji_sava = "0"}
            if (document.getElementById("check10").checked) {
                var viewPower = "1"
            } else {var viewPower = "0"}
            if (document.getElementById("check11").checked) {
                var viewTagid = "1"
            } else {var viewTagid = "0"}
            if (document.getElementById("check12").checked) {
                var viewAnckzb = "1"
            } else {var viewAnckzb = "0"}
            if (document.getElementById("check13").checked) {
                var offView = "1"
            } else {var offView = "0"}
            if (document.getElementById("check14").checked) {
                var anckicon = "1"
            } else {var anckicon = "0"}
            if (document.getElementById("check15").checked) {
                var gas_show = "1"
            } else {var gas_show = "0"}
            if (document.getElementById("check16").checked) {
                var quiet = "1"
            } else {var quiet = "0"}
            if (document.getElementById("check20").checked) {
                var fence_show = "1"
            } else {var fence_show = "0"}
            var real_trak_time = $("#real_trak_time").val();
            var real_trak_color = $("#real_trak_color").val();
            var yulan_map_tu = $("#yulan_map_tu").val();
            var baidu_j = $("#baidu_j").val();
            var baidu_w = $("#baidu_w").val();
            if (document.getElementById("check19").checked) {
                var gas_open = "1"
            } else {var gas_open = "0"}
            var gas_port = $("#gas_port").val();
            var gas_hz = $("#gas_hz").val();
            $.ajax({
                async : false, //同步的
                type : "POST",
                url : "/hxzkoa/sysSetting_modify.do",
                data : {
                    dataname : dataname,
                    datapass  : datapass ,
                    gui_ji  : gui_ji ,
                    bei_fen_di_zhi  : bei_fen_di_zhi ,
                    data_time  : data_time ,
                    title  : title ,
                    udpPort  : udpPort ,
                    udpAdress  : udpAdress ,
                    rssid  : rssid ,
                    openudp  : openudp ,
                    know_tag_zu  : know_tag_zu ,
                    wifi_mdel  : wifi_mdel ,
                    tagZb  : tagZb ,
                    diskaoqing  : diskaoqing ,
                    viewAnckid  : viewAnckid ,
                    viewName  : viewName ,
                    tunlDw  : tunlDw ,
                    guiji_sava  : guiji_sava ,
                    viewPower  : viewPower ,
                    viewTagid  : viewTagid ,
                    viewAnckzb  : viewAnckzb ,
                    offView  : offView ,
                    anckicon  : anckicon ,
                    gas_show  : gas_show ,
                    quiet  : quiet ,
                    real_trak_time  : real_trak_time ,
                    real_trak_color  : real_trak_color ,
                    yulan_map_tu  : yulan_map_tu ,
                    baidu_j  : baidu_j,
                    baidu_w  : baidu_w,
                    gas_open  : gas_open ,
                    gas_port  : gas_port ,
                    gas_hz  : gas_hz ,
                    fence_show  : fence_show ,
                },
                dataType : "json"
            });
            swal({title:"修改!",
               text:"修改成功!",
               type:"success",
               showCancelButton:false,
               showConfirmButton:false,
               buttons: false,
               timer: 1000
            })
        });
        $(function(){
            var boxObj = $("input:checkbox[name='checkSetting']");
            boxObj.each(function () {
            if($(this).val() == "1") {
                $(this).attr("checked",true);
            } else{
                $(this).attr("checked",false);
            }
            $("#real_trak_time").val($("#prodId1").val());
            $("#real_trak_color").val($("#prodId2").val());
            $("#yulan_map_tu").val($("#prodId3").val());
            });
        });
        function resetSetting(){
            $(':input','#settingForm')  //'#addMenuModal'为form表单id值
            .not(':button',':submit',':reset',':hidden') //排除form中type为button,submit,reset,hidden的input元素  
            .val('')  //将input的value设置为空
            .removeAttr('checked'); // 删除radio/checkbox/select中的checked或selected属性
        }
    </script>
    <!-- END GLOBAL MANDATORY SCRIPTS -->
 
 
</body>
</html>