home.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. font-family: sans-serif;
  100. }
  101. .div-right a{
  102. color: blue;
  103. text-decoration: none;
  104. font-size: 13px;
  105. }
  106. .div-right a:hover{
  107. color: red;
  108. cursor: pointer;
  109. font-weight: bold;
  110. }
  111. .div-left font{
  112. float: left;
  113. color:green;
  114. font-size: 13px;
  115. display: inline;
  116. }
  117. .x-panel-header-text {
  118. font-size: 13px;
  119. color: #09a471;
  120. font-weight: normal;
  121. }
  122. .x-panel-header-text-default-framed {
  123. font-size: 13px;
  124. color: #09a471;
  125. font-weight: normal;
  126. }
  127. #bench .x-panel-header .x-box-inner .x-box-item {
  128. display: inline;
  129. height: 18px;
  130. }
  131. .number {
  132. height: 24px;
  133. width: 24px;
  134. background: url('<%=basePath %>resource/images/number/number.png');
  135. margin-top: -30px;
  136. }
  137. .custom-grid .x-grid-row .x-grid-row-alt {
  138. height : 20px;
  139. }
  140. .custom-grid .x-grid-row .x-grid-cell{
  141. height : 20px;
  142. line-height : 20px;
  143. vertical-align : top;
  144. }
  145. .custom-grid .x-grid-row .x-grid-cell-inner{
  146. height : 20px;
  147. line-height : 20px;
  148. vertical-align : top;
  149. }
  150. .custom-grid .x-grid-row .x-grid-cell:hover{
  151. height : 26px;
  152. line-height : 26px;
  153. }
  154. .custom-grid a {
  155. text-decoration: none;
  156. }
  157. .custom-grid a:hover {
  158. font-weight: 800;
  159. }
  160. .custom-grid .x-action-col-icon {
  161. margin: 0px 5px 0px 5px;
  162. cursor: pointer;
  163. }
  164. .task-grid .x-grid-row .x-grid-row-alt {
  165. background-color: red !important;
  166. }
  167. .x-grid-cell-topic b {
  168. display: block;
  169. }
  170. .x-grid-cell-topic .x-grid-cell-inner {
  171. white-space: normal;
  172. height : auto !important ;
  173. background-color: #f1f1f1;
  174. border-color: #ededed;
  175. border-style: solid;
  176. border-width: 1px 0;
  177. border-top-color: #FAFAFA;
  178. border-bottom:none;
  179. line-height : 26 px;
  180. white-space: nowrap
  181. }
  182. .x-grid-cell-topic a {
  183. text-decoration: none;
  184. }
  185. .x-grid-cell-topic a:hover {
  186. text-decoration:underline;
  187. }
  188. .x-grid-cell-topic .x-grid-cell-innerf {
  189. padding: 5px;
  190. }
  191. .x-grid-rowbody {
  192. padding: 0 5px 5px 5px;
  193. }
  194. .list-default>li {
  195. padding: 2px 5px;
  196. overflow: hidden;
  197. text-overflow: ellipsis;
  198. white-space: nowrap;
  199. }
  200. </style>
  201. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  202. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  203. <script type="text/javascript">
  204. window.em_code = '<%=session.getAttribute("em_code")%>';
  205. window.em_uu = '<%=session.getAttribute("em_uu")%>';
  206. window.em_id = '<%=session.getAttribute("em_id")%>';
  207. window.em_name = '<%=session.getAttribute("em_name")%>';
  208. window.em_defaulthsid = '<%=session.getAttribute("em_defaulthsid")%>';
  209. window.em_defaultorid = '<%=session.getAttribute("em_defaultorid")%>';
  210. </script>
  211. <script type="text/javascript" src="<%=basePath %>resource/other/workBench.js?_em=<%=session.getAttribute("em_uu") %>"></script>
  212. <script type="text/javascript">
  213. Ext.Loader.setConfig({
  214. enabled: true
  215. });//开启动态加载
  216. Ext.application({
  217. name: 'erp',//为应用程序起一个名字,相当于命名空间
  218. appFolder: basePath+'app',//app文件夹所在路径
  219. controllers: [//声明所用到的控制层
  220. 'common.Home'
  221. ],
  222. launch: function() {
  223. Ext.create('erp.view.common.home.Viewport');
  224. getMyBench();//调我的工作台设置
  225. }
  226. });
  227. var height = window.innerHeight;
  228. var width = window.innerWidth;
  229. if(Ext.isIE){
  230. height = screen.height*0.75;
  231. width = screen.width*0.8;
  232. }
  233. </script>
  234. </head>
  235. <body>
  236. <div id='myflow' class='mydiv'></div>
  237. <div id='myoverflow' class='mydiv'></div>
  238. <div id='notify' class='notify'></div>
  239. <div id='news' class='news'></div>
  240. <div id='subscription' class='subscription'></div>
  241. <div id='check' class='check'></div>
  242. <div id='note2' class='mydiv'></div>
  243. <div id='plan' class='mydiv'></div>
  244. <div id='meeting' class='mydiv'></div>
  245. </body>
  246. </html>