default.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <title>客户服务</title>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <link rel="icon" href="<%=basePath%>resource/images/icon_title.png"
  16. type="image/x-icon" />
  17. <link rel="stylesheet"
  18. href="<%=basePath%>resource/ext/4.2/resources/ext-theme-gray/ext-theme-gray-all.css"
  19. type="text/css"></link>
  20. <style type="text/css">
  21. .x-accordion-item .x-accordion-hd {
  22. border-top-color: white;
  23. padding: 8px 10px;
  24. }
  25. .x-accordion-hd .x-panel-header-text-container {
  26. font-weight: bold;
  27. font-family: helvetica, arial, verdana, sans-serif;
  28. text-transform: none;
  29. }
  30. .x-toolbar-sencha {
  31. background: #e0e0e0;
  32. color: #304c33;
  33. border: none !important;
  34. }
  35. .x-toolbar-sencha .x-logo {
  36. padding: 10px 10px 10px 31px;
  37. /* background: url(../images/logo.png) no-repeat 10px 11px; */
  38. color: #fff;
  39. text-align: center;
  40. font-size: 22px;
  41. font-weight: bold;
  42. text-shadow: 0 1px 0 #4e691f;
  43. }
  44. .header-btn {
  45. -webkit-border-radius: 3px;
  46. -moz-border-radius: 3px;
  47. -ms-border-radius: 3px;
  48. -o-border-radius: 3px;
  49. border-radius: 27px;
  50. padding: 3px 3px 3px 3px;
  51. border-width: 1px;
  52. border-style: solid;
  53. border-color: #bbb;
  54. background-image: none;
  55. background-color: #f8f8f8;
  56. background-image: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0%, #fff),
  57. color-stop(50%, #E5E5E5), color-stop(51%, #fff),
  58. color-stop(100%, #E5E5E5));
  59. background-image: -webkit-linear-gradient(top, #fff, #f5f5f5 50%, #E5E5E5 51%, #f5f5f5);
  60. }
  61. .ux-shortcut {
  62. cursor: pointer;
  63. text-align: center;
  64. padding: 4px;
  65. margin: 4px;
  66. width: 90px;
  67. float: left;
  68. }
  69. .ux-shortcut-icon {
  70. width: 48px;
  71. height: 48px;
  72. padding-left:20px;
  73. background-color: transparent;
  74. background-repeat: no-repeat;
  75. }
  76. .ux-shortcut-text {
  77. /* font: normal 10px tahoma, arial, verdana, sans-serif; */
  78. text-decoration: none;
  79. font-size: 12px;
  80. height: 23px;
  81. /* padding-top: 5px; */
  82. color: #000;
  83. }
  84. .bottom-left {
  85. float: left;
  86. cursor: pointer;
  87. padding-bottom: 6px;
  88. border:none;
  89. margin-left: 3px;
  90. text-decoration: none;
  91. font-weight: lighter;
  92. }
  93. .main-btn-left {
  94. border: none;
  95. float: left;
  96. font-size: 13px;
  97. }
  98. .main-btn-right {
  99. border: none;
  100. float: right;
  101. font-size: 13px;
  102. }
  103. .main-btn-left a:hover,.main-btn-right font:hover {
  104. text-decoration: underline;
  105. }
  106. .main-btn-left :hover {
  107. background-color: #E8E8E8 !important;
  108. }
  109. .main-btn-right:hover {
  110. background: #E7E7E7 !important;
  111. }
  112. .main-btn-user {
  113. background-image: url('<%=basePath%>resource/images/wishmaster.gif');
  114. }
  115. .main-btn-link {
  116. background-image: url('<%=basePath%>resource/images/ie.png');
  117. }
  118. </style>
  119. <script type="text/javascript"
  120. src="<%=basePath%>resource/ext/4.2/ext-all.js"></script>
  121. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  122. <script type="text/javascript" src="<%=basePath%>resource/ext/IFrame.js"></script>
  123. <script type="text/javascript">
  124. var msgCt;
  125. var showResult = function(title, s) {
  126. if (!msgCt) {
  127. msgCt = Ext.DomHelper.insertFirst(document.body, {
  128. id : 'msg-div'
  129. }, true);
  130. }
  131. var m = Ext.DomHelper.append(msgCt, createBox(title, s), true);
  132. m.hide();
  133. m.slideIn('t').ghost("t", {
  134. delay : 1000,
  135. remove : true
  136. });
  137. };
  138. function createBox(t, s) {
  139. return '<div class="msg"><h3>' + t + '</h3><p>' + s + '</p></div>';
  140. }
  141. Ext.Loader.setConfig({
  142. enabled : true
  143. });//开启动态加载
  144. Ext.application({
  145. name : 'erp',//为应用程序起一个名字,相当于命名空间
  146. appFolder : basePath + 'app',//app文件夹所在路径
  147. controllers : [//声明所用到的控制层
  148. 'opensys.Default' ],
  149. launch : function() {
  150. Ext.create('erp.view.opensys.default.ViewPort');//创建视图
  151. }
  152. });
  153. var enUU = '<%=session.getAttribute("enUU")%>';
  154. var em_code ='<%=session.getAttribute("em_code")%>';
  155. var em_name ='<%=session.getAttribute("em_name")%>';
  156. var cu_name ='<%=session.getAttribute("cu_name")%>';
  157. var em_id ='<%=session.getAttribute("em_id")%>';
  158. var emUU = '<%=session.getAttribute("em_uu")%>';
  159. var cu_code = '<%=session.getAttribute("cu_code")%>';
  160. var role = '<%=session.getAttribute("role")%>';
  161. var cu_uu = '<%=session.getAttribute("cu_uu")%>';
  162. </script>
  163. </head>
  164. <body>
  165. </body>
  166. </html>