home.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <%@ page language="java" pageEncoding="utf-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  10. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  11. <style type="text/css">
  12. font{
  13. font-size: 14px;
  14. }
  15. ul li a{
  16. font-size: 13.5px;
  17. text-decoration: none;
  18. }
  19. .x-panel-body-default {
  20. background: #f1f2f5;
  21. border-left: none !important;
  22. border-top: none !important;
  23. border-bottom: none !important;
  24. }
  25. .bench{
  26. background: url('<%=basePath %>resource/images/background_1.jpg');
  27. }
  28. .mydiv{
  29. height: 100%;
  30. background: #f1f1f1;
  31. }
  32. .home-div{
  33. height: 100%;
  34. background: url('<%=basePath %>resource/images/background_2.jpg');
  35. }
  36. .home-img{
  37. cursor: pointer;
  38. }
  39. .home-img:hover{
  40. background: url('<%=basePath %>resource/images/background_2.jpg');
  41. }
  42. .home-img span{
  43. font-size: 1;
  44. color: red;
  45. }
  46. .news,.notify{
  47. height: 100%;
  48. background: url('<%=basePath %>resource/images/background_1.jpg');
  49. }
  50. #bench_news,#bench_notify {
  51. width: 100%;
  52. }
  53. .schedule{
  54. background: url('<%=basePath %>resource/images/background_1.jpg');
  55. }
  56. .news ul{
  57. list-style: none;
  58. }
  59. .div-more a{
  60. color: #CD9B9B;
  61. }
  62. .subscription{
  63. height: 100%;
  64. background: url('<%=basePath %>resource/images/background_1.jpg');
  65. }
  66. .div-link{
  67. padding-left:10px;
  68. margin-top:3px;
  69. }
  70. a:hover{
  71. color: #8B8B00;
  72. }
  73. .btn-title{
  74. font-size: 13px;
  75. color: blue;
  76. margin-bottom: 0px;
  77. }
  78. .btn-title:hover{
  79. color: red;
  80. }
  81. .news-img{
  82. cursor: pointer;
  83. margin-left: 5px;
  84. }
  85. .news-img:hover{
  86. background: transparent;
  87. background-color: #D6BEF9;
  88. height: 38px;
  89. width: 38px;
  90. }
  91. .div-left {
  92. display: inline;
  93. float: left;
  94. color: green
  95. }
  96. .div-right{
  97. display: inline;
  98. float: right;
  99. }
  100. .div-right a{
  101. color: blue;
  102. text-decoration: none;
  103. font-size: 13px;
  104. }
  105. .div-right a:hover{
  106. color: red;
  107. cursor: pointer;
  108. font-weight: bold;
  109. }
  110. .div-left font{
  111. float: left;
  112. color:green;
  113. font-size: 13px;
  114. display: inline;
  115. }
  116. .x-panel-header-text {
  117. font-size: 13px;
  118. color: #09a471;
  119. font-weight: normal;
  120. }
  121. .x-panel-header-text-default-framed {
  122. font-size: 13px;
  123. color: #09a471;
  124. font-weight: normal;
  125. }
  126. #bench .x-panel-header .x-box-inner .x-box-item {
  127. display: inline;
  128. height: 18px;
  129. }
  130. .number {
  131. height: 24px;
  132. width: 24px;
  133. background: url('<%=basePath %>resource/images/number/number.png');
  134. margin-top: -30px;
  135. }
  136. .custom-grid .x-grid-row .x-grid-row-alt {
  137. height : 20px;
  138. }
  139. .custom-grid .x-grid-row .x-grid-cell{
  140. height : 20px;
  141. line-height : 20px;
  142. vertical-align : top;
  143. }
  144. .custom-grid .x-grid-row .x-grid-cell-inner{
  145. height : 20px;
  146. line-height : 20px;
  147. vertical-align : top;
  148. }
  149. .custom-grid .x-grid-row .x-grid-cell:hover{
  150. height : 26px;
  151. line-height : 26px;
  152. }
  153. .custom-grid a {
  154. text-decoration: none;
  155. }
  156. .custom-grid a:hover {
  157. font-weight: 800;
  158. }
  159. .custom-grid .x-action-col-icon {
  160. margin: 0px 5px 0px 5px;
  161. cursor: pointer;
  162. }
  163. .task-grid .x-grid-row .x-grid-row-alt {
  164. background-color: red !important;
  165. }
  166. .x-grid-cell-topic b {
  167. display: block;
  168. }
  169. .x-grid-cell-topic .x-grid-cell-inner {
  170. white-space: normal;
  171. height : auto !important ;
  172. background-color: #f1f1f1;
  173. border-color: #ededed;
  174. border-style: solid;
  175. border-width: 1px 0;
  176. border-top-color: #FAFAFA;
  177. border-bottom:none;
  178. line-height : 26 px;
  179. white-space: nowrap
  180. }
  181. .x-grid-cell-topic a {
  182. text-decoration: none;
  183. }
  184. .x-grid-cell-topic a:hover {
  185. text-decoration:underline;
  186. }
  187. .x-grid-cell-topic .x-grid-cell-innerf {
  188. padding: 5px;
  189. }
  190. .x-grid-rowbody {
  191. padding: 0 5px 5px 5px;
  192. }
  193. </style>
  194. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  195. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  196. <script type="text/javascript">
  197. window.em_code = '<%=session.getAttribute("em_code")%>';
  198. window.em_uu = '<%=session.getAttribute("em_uu")%>';
  199. </script>
  200. <script type="text/javascript" src="<%=basePath %>resource/other/workBench.js?_em=<%=session.getAttribute("em_uu") %>"></script>
  201. <script type="text/javascript">
  202. Ext.Loader.setConfig({
  203. enabled: true
  204. });//开启动态加载
  205. Ext.application({
  206. name: 'erp',//为应用程序起一个名字,相当于命名空间
  207. appFolder: '<%=basePath %>'+'app',//app文件夹所在路径
  208. controllers: [//声明所用到的控制层
  209. 'common.Home'
  210. ],
  211. launch: function() {
  212. Ext.create('erp.view.common.home.Viewport');
  213. getMyBench();//调我的工作台设置
  214. }
  215. });
  216. var height = window.innerHeight;
  217. var width = window.innerWidth;
  218. if(Ext.isIE){
  219. height = screen.height*0.75;
  220. width = screen.width*0.8;
  221. }
  222. </script>
  223. </head>
  224. <body>
  225. <div id='myflow' class='mydiv'></div>
  226. <div id='myoverflow' class='mydiv'></div>
  227. <div id='notify' class='notify'></div>
  228. <div id='news' class='news'></div>
  229. <div id='subscription' class='subscription'></div>
  230. <div id='check' class='check'></div>
  231. <div id='note2' class='mydiv'></div>
  232. <div id='plan' class='mydiv'></div>
  233. <div id='meeting' class='mydiv'></div>
  234. </body>
  235. </html>