index.jsp 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ page session="true" %>
  4. <%
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. String baseUrl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
  8. String t = String.valueOf(System.currentTimeMillis());
  9. String theme = request.getParameter("theme");
  10. String viewAlarmType = request.getParameter("viewAlarmType");
  11. String pieAlarmType = request.getParameter("pieAlarmType");
  12. String statusType = request.getParameter("statusType");
  13. String css_name = "ext-all-access.css";
  14. String company_code = request.getParameter("company_code");
  15. if(viewAlarmType==null)
  16. viewAlarmType="11110010";
  17. if(pieAlarmType==null)
  18. pieAlarmType="11110010";
  19. if(statusType==null)
  20. statusType="11110010";
  21. if((company_code==null)||(company_code=="null"))
  22. company_code = "";
  23. if(theme!=null){
  24. if(theme.equals("gray"))
  25. css_name = "ext-all-gray.css";
  26. else if(theme.equals("access"))
  27. css_name = "ext-all-access.css";
  28. else if(theme.equals("neptune"))
  29. css_name = "ext-neptune.css";
  30. else if(theme.equals("default"))
  31. css_name = "ext-all.css";
  32. else if(theme.equals("scoped"))
  33. css_name = "ext-all-scoped";
  34. else if(theme.equals("ie"))
  35. css_name = "ext-ie.css";
  36. else if(theme.equals("sandbox"))
  37. css_name = "ext-sandbox.css";
  38. else if(theme.equals("standard"))
  39. css_name = "ext-standard.css";
  40. }else
  41. theme = "";
  42. %>
  43. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  44. <html>
  45. <head>
  46. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  47. <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
  48. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  49. <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
  50. <link type="text/css" rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
  51. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/img/myImages.css" %>"/>
  52. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/extjs/resources/css/"+css_name+"?t="+t %>"/>
  53. <script type="text/javascript" src ="<%=basePath+"res/extjs/ext-all.js" %>"></script>
  54. <script type="text/javascript" src="<%=basePath+"res/jquery/jquery-3.3.1.min.js" %>"></script>
  55. <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.13&key=246349bf278f6225fa80156828d0f061&plugin=AMap.Geocoder,Map3D"></script>
  56. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts.js" %>"></script>
  57. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts-3d.js" %>"></script>
  58. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts-more.js" %>"></script>
  59. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/solid-gauge.js" %>"></script>
  60. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/sunburst.js" %>"></script>
  61. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/exporting.js" %>"></script>
  62. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/export-data.js" %>"></script>
  63. <script type="text/javascript" src ="<%=basePath+"view/scripts/map.js" %>"></script>
  64. <title>Insert title here</title>
  65. <style>
  66. html, body,
  67. #container {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. </style>
  72. </head>
  73. <body>
  74. <div id="container">
  75. <div id="mask_l" class="mask_left"></div>
  76. <div id="mask_r" class="mask_right"></div>
  77. <div id="fp_backbtn" class="fp_backbtn" onmouseover="btn_over();" onmouseout="btn_out();" onclick="back_all();"></div>
  78. <table id="alarm_wrapper_table" class="alarm_warpper_table" border="0" cellpadding="0" cellspacing="0">
  79. <tr style="border:none;border-collapse: collapse;">
  80. <td style="border:none;border-collapse: collapse; width:35px; height:58px; background:url(../res/img/warpper-l1.png) no-repeat; overflow:hidden;">
  81. </td>
  82. <td style="border:none;border-collapse: collapse; width:730px; height:58px; overflow:hidden; padding:0px; margin:0px;">
  83. <table id="sub_warpper_table" class="sub_wrapper_table" border="0" cellpadding="0" cellspacing="0">
  84. <tr style="border:none;border-collapse: collapse;">
  85. <td style="border:none;border-collapse: collapse; width:256px; height:58px; background:url(../res/img/warpper-l2.png) no-repeat; overflow:hidden; padding:0px; margin:0px;"></td>
  86. <td style="border:none;border-collapse: collapse; width:228px; height:58px; background:url(../res/img/warpper-mid.png) repeat-x; overflow:hidden; padding:0px; margin:0px;"></td>
  87. <td style="border:none;border-collapse: collapse; width:256px; height:58px; background:url(../res/img/warpper-r2.png) no-repeat; overflow:hidden; padding:0px; margin:0px;"></td>
  88. </tr>
  89. </table>
  90. <marquee id="alarm_wrapper" class="alarm_wrapper" behavior="scroll" scrollamount=“1” scrolldelay=“10” onmouseover="this.stop()" onmouseout="this.start()" onclick="show_alarm_list()">Loading...</marquee>
  91. </td>
  92. <td style="border:none;border-collapse: collapse; width:35px; height:58px; background:url(../res/img/warpper-r1.png) no-repeat; overflow:hidden; padding:0px; margin:0px;">
  93. </td>
  94. </tr>
  95. </table>
  96. <div id="bar5" class="search bar5">
  97. <form>
  98. <table style="border:none;" border="0" cellpadding="0" cellspacing="0"><tr style="border:none;border-collapse: collapse;">
  99. <td style="border:none;border-collapse: collapse; padding:0px; margin:0px;">
  100. <input id="search_company" name="search_company" type="text" placeholder="请输入单位名称..." autocomplete="off"><div class="bar5_clear" onclick="clear_search();" style="cursor:pointer;"></div></td>
  101. </tr></table>
  102. </form>
  103. </div>
  104. <div id="saerch_company_list" class= "search_company_list" style="position:absolute;top:80px;right:200px;z-index:1001;font-size:14px;"></div>
  105. <div id="alarm_pie_bar" class="alarm_pie_bar" style="margin: 0px; overflow: hidden; z-index: 500; position: absolute; top: 141px; left:100px; border: 0px solid #000;"></div>
  106. <div id="device_pie_bar" class="device_pie_bar" style="margin: 0px; overflow: hidden; z-index: 500; position: absolute; top: 141px; right:100px; border: 0px solid #000;"></div>
  107. <div id="border_top_left" style="background:url(../res/img/border-tl.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; top:20px; left:20px;"></div>
  108. <div id="border_top_right" style="background:url(../res/img/border-tr.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; top:20px; right:20px;"></div>
  109. <div id="border_bottom_left" style="background:url(../res/img/border-bl.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; bottom:20px; left:20px;"></div>
  110. <div id="border_bottom_right" style="background:url(../res/img/border-br.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; bottom:20px; right:20px;"></div>
  111. </div>
  112. <input type="hidden" id="theme" name="theme" value="<%=theme %>"/>
  113. <input type="hidden" id="basePath" name="basePath" value="<%=basePath %>"/>
  114. <input type="hidden" id="viewAlarmType" name="viewAlarmType" value="<%=viewAlarmType %>"/>
  115. <input type="hidden" id="pieAlarmType" name="pieAlarmType" value="<%=pieAlarmType %>"/>
  116. <input type="hidden" id="statusType" name="statusType" value="<%=statusType %>"/>
  117. <input type="hidden" id="V_LOGINNAME" name="V_LOGINNAME" value=""/>
  118. <input type="hidden" id="V_PASSWORD" name="V_PASSWORD" value=""/>
  119. <input type="hidden" id="company_code" name="company_code" value="<%=company_code %>"/>
  120. </body>
  121. </html>