index.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@ page import="java.util.regex.Pattern" %>
  2. <%@ page import="java.util.regex.Matcher" %>
  3. <%@ page language="java" contentType="text/html; charset=UTF-8"
  4. pageEncoding="UTF-8"%>
  5. <%@ page session="true" %>
  6. <%
  7. String path = request.getContextPath();
  8. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  9. String baseUrl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
  10. String t = String.valueOf(System.currentTimeMillis());
  11. String company_code = request.getParameter("company_code");
  12. String theme = request.getParameter("theme");
  13. String css_name = "ext-all-access.css";
  14. if(company_code==null)
  15. company_code = "";
  16. if (!myRegex(company_code)){
  17. company_code = "";
  18. }
  19. if(theme!=null){
  20. if(theme.equals("gray"))
  21. css_name = "ext-all-gray.css";
  22. else if(theme.equals("access"))
  23. css_name = "ext-all-access.css";
  24. else if(theme.equals("neptune"))
  25. css_name = "ext-neptune.css";
  26. else if(theme.equals("default"))
  27. css_name = "ext-all.css";
  28. else if(theme.equals("scoped"))
  29. css_name = "ext-all-scoped";
  30. else if(theme.equals("ie"))
  31. css_name = "ext-ie.css";
  32. else if(theme.equals("sandbox"))
  33. css_name = "ext-sandbox.css";
  34. else if(theme.equals("standard"))
  35. css_name = "ext-standard.css";
  36. else {
  37. theme = "";
  38. }
  39. }else
  40. theme = "";
  41. %>
  42. <%!
  43. public boolean myRegex (String str){
  44. Pattern pattern = Pattern.compile("^[0-9]*$");
  45. Matcher matcher = pattern.matcher(str);
  46. return matcher.matches();
  47. }
  48. %>
  49. <!DOCTYPE html>
  50. <html>
  51. <head>
  52. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  53. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/extjs/resources/css/"+css_name+"?t="+t %>"/>
  54. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/img/myImages.css?t="+t %>"/>
  55. <script type="text/javascript" src ="<%=basePath+"res/extjs/ext-all.js" %>"></script>
  56. <script type="text/javascript" src ="<%=basePath+"res/extjs/locale/ext-lang-zh_CN.js" %>"></script>
  57. <script type="text/javascript" src="<%=basePath+"res/jquery/jquery-3.3.1.min.js" %>"></script>
  58. <script type="text/javascript" src ="<%=basePath+"view/proform/scripts/perform.js" %>"></script>
  59. <title>IoT-02型永天消防综合监控系统</title>
  60. </head>
  61. <body style="font-size:18pt;font-family:'微软雅黑', Microsoft YaHei; ">
  62. <div id="proform_bg_tl" class="proform_bg_tl"></div>
  63. <div id="proform_bg_tm" class="proform_bg_tm"></div>
  64. <div id="proform_bg_tr" class="proform_bg_tr"></div>
  65. <div id="proform_bg_ml" class="proform_bg_ml"></div>
  66. <div id="proform_bg_mm" class="proform_bg_mm"></div>
  67. <div id="proform_bg_mr" class="proform_bg_mr"></div>
  68. <div id="proform_bg_bl" class="proform_bg_bl"></div>
  69. <div id="proform_bg_bm" class="proform_bg_bm"></div>
  70. <div id="proform_bg_br" class="proform_bg_br"></div>
  71. <div id="proform_menu_1" class="proform_menu_1" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  72. <div id="proform_menu_2" class="proform_menu_2" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  73. <div id="proform_menu_3" class="proform_menu_3" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  74. <div id="proform_menu_4" class="proform_menu_4" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  75. <div id="proform_menu_5" class="proform_menu_5" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  76. <!--
  77. <div id="proform_fliter_btn" class="proform_fliter_btn" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  78. <div id="proform_modify_btn" class="proform_modify_btn" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  79. <div id="proform_delete_btn" class="proform_delete_btn" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  80. <div id="proform_append_btn" class="proform_append_btn" onmouseover="mouseon(this);" onmouseout="mouseoff(this);" onclick="menu_click(this);"></div>
  81. -->
  82. <div id="main_page" style="position:absolute;top:120px;left:360px;"></div>
  83. <input type="hidden" id="theme" name="theme" value="<%=theme %>"/>
  84. <input type="hidden" id="basePath" name="basePath" value="<%=basePath %>"/>
  85. <input type="hidden" id="V_LOGINNAME" name="V_LOGINNAME" value=""/>
  86. <input type="hidden" id="V_PASSWORD" name="V_PASSWORD" value=""/>
  87. <input type="hidden" id="company_code" name="company_code" value="<%=company_code %>"/>
  88. </body>
  89. </html>