sysinit.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String url = request.getRequestURL().toString();
  5. String basePath = url.substring(0, url.length()
  6. - request.getRequestURI().length())
  7. + request.getContextPath() + "/";
  8. String caller = request.getParameter("caller");
  9. %>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <style type="text/css">
  15. .search-item {
  16. font: normal 11px tahoma, arial, helvetica, sans-serif;
  17. padding: 3px 10px 3px 10px;
  18. border: 1px solid #fff;
  19. border-bottom: 1px solid #eeeeee;
  20. white-space: normal;
  21. color: #555;
  22. }
  23. .search-item h3 {
  24. display: block;
  25. font: inherit;
  26. font-weight: bold;
  27. color: #222;
  28. }
  29. .search-item h3 span {
  30. float: right;
  31. font-weight: normal;
  32. margin: 0 0 5px 5px;
  33. width: 150px;
  34. display: block;
  35. clear: none;
  36. }
  37. .msg .x-box-mc {
  38. font-size: 14px;
  39. }
  40. #msg-div {
  41. position: absolute;
  42. left: 50%;
  43. top: 10px;
  44. width: 400px;
  45. margin-left: -200px;
  46. z-index: 20000;
  47. }
  48. #msg-div .msg {
  49. border-radius: 8px;
  50. -moz-border-radius: 8px;
  51. background: #F6F6F6;
  52. border: 2px solid #ccc;
  53. margin-top: 2px;
  54. padding: 10px 15px;
  55. color: #555;
  56. }
  57. #msg-div .msg h3 {
  58. margin: 0 0 8px;
  59. font-weight: bold;
  60. font-size: 15px;
  61. }
  62. #msg-div .msg p {
  63. margin: 0;
  64. }
  65. </style>
  66. <link rel="icon" href="<%=basePath%>resource/images/icon_title.png"
  67. type="image/x-icon" />
  68. <link rel="stylesheet"
  69. href="<%=basePath%>resource/ext/4.2/resources/ext-theme-gray/ext-theme-gray-all.css"
  70. type="text/css"></link>
  71. <link rel="stylesheet"
  72. href="<%=basePath%>resource/ext/4.2/resources/ext-theme-neptune/tree-neptune.css"
  73. type="text/css"></link>
  74. <link rel="stylesheet" type="text/css"
  75. href="<%=basePath%>resource/ux/css/CheckHeader.css" />
  76. <link rel="stylesheet" type="text/css"
  77. href="<%=basePath%>jsps/sys/css/GroupTabPanel.css" />
  78. <link rel="stylesheet" type="text/css"
  79. href="<%=basePath%>jsps/sys/css/init.css" />
  80. <style type="text/css">
  81. .x-toolbar-sencha {
  82. background: #e0e0e0;
  83. color: #304c33;
  84. border: none !important;
  85. }
  86. .x-toolbar-sencha .x-logo {
  87. padding: 10px 10px 10px 31px;
  88. /* background: url(../images/logo.png) no-repeat 10px 11px; */
  89. color: #fff;
  90. text-align:center;
  91. font-size: 22px;
  92. font-weight: bold;
  93. text-shadow: 0 1px 0 #4e691f;
  94. }
  95. </style>
  96. <style>
  97. .loading {
  98. background: url("<%=basePath %>resource/images/loading.gif") no-repeat center!important;
  99. }
  100. .checked {
  101. background: url("<%=basePath %>resource/images/renderer/finishrecord.png") no-repeat center!important;
  102. }
  103. .error {
  104. background: url("<%=basePath %>resource/images/renderer/important.png") no-repeat center!important;
  105. }
  106. .refresh{
  107. background: url('<%=basePath %>resource/images/refresh.gif') no-repeat;
  108. }
  109. </style>
  110. <script type="text/javascript"
  111. src="<%=basePath%>resource/ext/4.2/ext-all.js"></script>
  112. <%-- <script type="text/javascript"
  113. src="<%=basePath%>resource/ext/4.2/ext-all-debug.js"></script> --%>
  114. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  115. <script type="text/javascript" src="<%=basePath%>jsps/sys/sysinit.js"></script>
  116. <script type="text/javascript">
  117. var msgCt;
  118. var showResult =function(title,s){
  119. if(!msgCt){
  120. msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);
  121. }
  122. var m = Ext.DomHelper.append(msgCt, createBox(title, s), true);
  123. m.hide();
  124. m.slideIn('t').ghost("t", { delay: 1000, remove: true});
  125. };
  126. function createBox(t, s){
  127. return '<div class="msg"><h3>' + t + '</h3><p>' + s + '</p></div>';
  128. }
  129. Ext.Loader.setConfig({
  130. enabled: true
  131. });//开启动态加载
  132. Ext.application({
  133. name: 'erp',//为应用程序起一个名字,相当于命名空间
  134. appFolder: basePath+'app',//app文件夹所在路径
  135. controllers: [//声明所用到的控制层
  136. 'sys.SysInit'
  137. ],
  138. launch: function() {
  139. Ext.create('erp.view.sys.ViewPort');//创建视图
  140. }
  141. });
  142. var emid = <%=session.getAttribute("em_uu")%>;
  143. var activeItem = null;
  144. var installtype='${installtype}';
  145. </script>
  146. </head>
  147. <body>
  148. <div id="legalese" style="display: none;">
  149. <h2>使用条款</h2>
  150. </div>
  151. </body>
  152. </html>