| | |
| | | <%@ 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 --> |
| | | <%@ 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; |
| | | } |
| | | |
| | | <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 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> |
| | | #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; |
| | | } |
| | | |
| | | .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 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> |
| | | <!-- 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 --> |
| | | |
| | | </div> |
| | | <!-- BEGIN MAIN CONTAINER --> |
| | | <div class="main-container" id="container"> |
| | | |
| | | </div> |
| | | <!-- END CONTENT PART --> |
| | | <div class="overlay"></div> |
| | | <div class="search-overlay"></div> |
| | | |
| | | </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 --> |
| | | <!-- 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="三维地图">三维地图</option> |
| | | <c:forEach items="${maplist}" var="map"> |
| | | <option value="${map.mapname}">${map.mapname} |
| | | </option> |
| | | </c:forEach> |
| | | </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" id="check16" |
| | | value="${settingList[0].quiet}"> <label |
| | | class="custom-control-label" for="check16">静止坐标固定 </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="check14" |
| | | value="${settingList[0].anckicon}"> <label |
| | | class="custom-control-label" for="check14">基站显示</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="check15" |
| | | value="${settingList[0].gas_show}"> <label |
| | | class="custom-control-label" for="check15">开启气体显示</label> |
| | | </div> |
| | | <div |
| | | style="width: 32%; margin-left: 1%; float: left; height: 37px;"> |
| | | <input id="prodId1" name="prodId" type="hidden" |
| | | value="${settingList[0].real_trak_time}"> |
| | | <label for="real_trak_time">轨迹时长</label> |
| | | <select class="form-control form-control-lg" id="real_trak_time" |
| | | style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;"> |
| | | <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}"> |
| | | <label for="real_trak_time">轨迹颜色</label> |
| | | <select class="form-control form-control-lg" id="real_trak_color" |
| | | style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;"> |
| | | <option value="红色">红色</option> |
| | | <option value="蓝色">蓝色</option> |
| | | <option value="黑色">黑色</option> |
| | | <option value="白色">白色</option> |
| | | <option value="绿色">绿色</option> |
| | | <option value="黄色">黄色</option> |
| | | </select> |
| | | </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}"> |
| | | <label for="real_trak_time">轨迹时长</label> |
| | | <select class="form-control form-control-lg" id="real_trak_time" |
| | | style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;"> |
| | | <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}"> |
| | | <label for="real_trak_time">轨迹颜色</label> |
| | | <select class="form-control form-control-lg" id="real_trak_color" |
| | | style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;"> |
| | | <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: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="labelb" |
| | | value="${dataList[0].label}"> <label |
| | | class="custom-control-label" for="labelb">标签管理</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="achorb" |
| | | value="${dataList[0].achor}"> <label |
| | | class="custom-control-label" for="achorb">基站管理</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="gpsb" |
| | | value="${dataList[0].gps}"> <label |
| | | class="custom-control-label" for="gpsb">卫星定位</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="fenceb" |
| | | value="${dataList[0].fence}"> <label |
| | | class="custom-control-label" for="fenceb">围栏管理</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="warningb" |
| | | value="${dataList[0].warning}"> <label |
| | | class="custom-control-label" for="warningb">告警管理</label> |
| | | </div> |
| | | </div> |
| | | <div |
| | | style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;"> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="historyb" |
| | | value="${dataList[0].history}"> <label |
| | | class="custom-control-label" for="historyb">历史轨迹</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="attendanceb" |
| | | value="${dataList[0].attendance}"> <label |
| | | class="custom-control-label" for="attendanceb">人员管理</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="basiclnfob" |
| | | value="${dataList[0].basiclnfo}"> <label |
| | | class="custom-control-label" for="basiclnfob">基础信息</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="videob" |
| | | value="${dataList[0].video}"> <label |
| | | class="custom-control-label" for="videob">视频联动</label> |
| | | </div> |
| | | <div style="width: 19%; margin-left: 1%; float: left;" |
| | | class="custom-control custom-checkbox"> |
| | | <input class="custom-control-input" type="checkbox" |
| | | name="checkSetting" id="gasb" |
| | | value="${dataList[0].gas}"> <label |
| | | class="custom-control-label" for="gasb">气体检测</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="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; } %> |
| | | <input type="hidden" name="xianusera" id="xianusera" value="<%=username%>"> |
| | | <!-- BEGIN GLOBAL MANDATORY SCRIPTS --> |
| | | <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' }); |
| | | }; |
| | | }, |
| | | }); |
| | | document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value |
| | | }; |
| | | $('.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" |
| | | } |
| | | if (document.getElementById("labelb").checked) { |
| | | var label = "1" |
| | | } else { |
| | | var label = "0" |
| | | } |
| | | if (document.getElementById("achorb").checked) { |
| | | var achor = "1" |
| | | } else { |
| | | var achor = "0" |
| | | } |
| | | if (document.getElementById("gpsb").checked) { |
| | | var gps = "1" |
| | | } else { |
| | | var gps = "0" |
| | | } |
| | | if (document.getElementById("fenceb").checked) { |
| | | var fence = "1" |
| | | } else { |
| | | var fence = "0" |
| | | } |
| | | if (document.getElementById("warningb").checked) { |
| | | var warning = "1" |
| | | } else { |
| | | var warning = "0" |
| | | } |
| | | if (document.getElementById("historyb").checked) { |
| | | var history = "1" |
| | | } else { |
| | | var history = "0" |
| | | } |
| | | if (document.getElementById("attendanceb").checked) { |
| | | var attendance = "1" |
| | | } else { |
| | | var attendance = "0" |
| | | } |
| | | if (document.getElementById("basiclnfob").checked) { |
| | | var basiclnfo = "1" |
| | | } else { |
| | | var basiclnfo = "0" |
| | | } |
| | | if (document.getElementById("videob").checked) { |
| | | var video = "1" |
| | | } else { |
| | | var video = "0" |
| | | } |
| | | if (document.getElementById("gasb").checked) { |
| | | var gas = "1" |
| | | } else { |
| | | var gas = "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, |
| | | label:label, |
| | | achor:achor, |
| | | gps:gps, |
| | | fence:fence, |
| | | warning:warning, |
| | | history:history, |
| | | attendance:attendance, |
| | | basiclnfo:basiclnfo, |
| | | video:video, |
| | | gas:gas, |
| | | }, |
| | | 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> |
| | | </body> |
| | | |
| | | </html> |