charts.jsp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <title>订阅</title>
  9. <%
  10. String basePath = request.getScheme() + "://"
  11. + request.getServerName() + ":" + request.getServerPort()
  12. + request.getContextPath() + "/";
  13. %>
  14. <script type="text/javascript" src="<%=basePath%>resource/jquery/jquery-1.11.3.min.js"></script>
  15. <script type="text/javascript" src="<%=basePath%>resource/jquery/jquery.json-2.2.min.js"></script>
  16. <script type="text/javascript" src="<%=basePath%>resource/other/highcharts-4.2.5.js"></script>
  17. <link rel="stylesheet" href="<%=basePath%>resource/jquery/jsgrid/css/jsgrid.css" type="text/css" />
  18. <link rel="stylesheet" href="<%=basePath%>resource/jquery/jsgrid/css/theme.css" type="text/css" />
  19. <script type="text/javascript" src="<%=basePath%>resource/jquery/jsgrid/jsgrid.min.js"></script>
  20. <base href="<%=basePath%>jsps/mobile/" />
  21. <link rel="stylesheet" href="charts.css" type="text/css" />
  22. <script type="text/javascript" src="charts.js"></script>
  23. <script type="text/javascript" src="chartsBase.js"></script>
  24. </head>
  25. <body style="background-color:#EDEDED;">
  26. <div>
  27. <div id='sum'></div>
  28. <div id='container'></div>
  29. <div id='list'></div>
  30. </div>
  31. <!-- modal -->
  32. <div class="modal-backdrop in" style="z-index: 9998; display: none"></div>
  33. <div class="modal in" style="z-index: 9999; display: none">
  34. <div class="modal-dialog modal-sm">
  35. <div class="modal-content">
  36. <div class="modal-header">
  37. <strong class="modal-title text-lg"></strong>
  38. <a class="clearbutton" id="clearbutton"></a>
  39. </div>
  40. <div class="modal-body"></div>
  41. </div>
  42. </div>
  43. </div>
  44. </body>
  45. <script>
  46. var emId = '<%=request.getAttribute("emId")%>';
  47. var numId= '<%=request.getAttribute("numId")%>';
  48. var mainId= '<%=request.getAttribute("mainId")%>';
  49. var insId= '<%=request.getAttribute("insId")%>';
  50. var title= '<%=request.getAttribute("title")%>';
  51. var dialog;
  52. var basePath = (function() {
  53. var fullPath = window.document.location.href;
  54. var path = window.document.location.pathname;
  55. var subpos = fullPath.indexOf('//');
  56. var subpath = subpos > -1 ? fullPath.substring(0, subpos + 2) : '';
  57. if (subpos > -1)
  58. fullPath = fullPath.substring(subpos + 2);
  59. var pos = fullPath.indexOf(path), sname = path.substring(0, path.substr(1).indexOf('/') + 1);
  60. return subpath + fullPath.substring(0, pos) + (sname == '/ERP' ? '/ERP/' : '/');
  61. })();
  62. </script>
  63. </html>