template.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme() + "://"
  5. + request.getServerName() + ":" + request.getServerPort()
  6. + path + "/";
  7. %>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <link rel="stylesheet" href="<%=basePath%>resource/ext/resources/css/ext-all.css" type="text/css"></link>
  13. <link rel="stylesheet" type="text/css" href="<%=basePath%>resource/ux/css/CheckHeader.css" />
  14. <style type="text/css">
  15. .export {
  16. background-image: url('<%=basePath%>resource/images/download.png');
  17. }
  18. .upexcel {
  19. background-image: url('<%=basePath%>resource/images/excel.png');
  20. }
  21. .history {
  22. background-image: url('<%=basePath%>resource/images/drink.png');
  23. }
  24. .rule {
  25. background-image: url('<%=basePath%>resource/images/query.png');
  26. }
  27. .check {
  28. background-image: url('<%=basePath%>resource/images/hourglass.png');
  29. }
  30. .save {
  31. background-image: url('<%=basePath%>resource/images/drink.png');
  32. }
  33. .delete {
  34. background-image: url('<%=basePath%>resource/images/icon/trash.png');
  35. }
  36. .x-button-icon-add {
  37. background-image: url('<%=basePath%>resource/images/add.png');
  38. }
  39. .x-button-icon-close {
  40. background-image: url('<%=basePath%>resource/images/icon/trash.png');
  41. }
  42. .x-button-icon-copy {
  43. background-image: url('<%=basePath%>resource/images/copy.png');
  44. }
  45. .x-button-icon-paste {
  46. background-image: url('<%=basePath%>resource/images/paste.png');
  47. }
  48. .x-button-icon-up {
  49. background-image: url('<%=basePath%>resource/images/up.png');
  50. }
  51. .x-button-icon-down {
  52. background-image: url('<%=basePath%>resource/images/down.png');
  53. }
  54. .x-btn-tb {
  55. border: none;
  56. }
  57. .x-btn-bar-s {
  58. border: 1px solid gray;
  59. }
  60. .x-td-warn {
  61. background: #FF7F24 !important;
  62. }
  63. .x-grid-row-selected .x-grid-cell-special {
  64. border-right: 1px solid #d4b7b7;
  65. background: #CECECE url('<%=basePath%>resource/images/grid/header-bg.png') repeat center center;
  66. }
  67. .x-panel .x-box-item .x-accordion-item .x-panel-default .x-collapsed .x-panel-collapsed .x-panel-default-collapsed {
  68. height: 26px !important;
  69. }
  70. .custom .x-grid-header-ct,.custom .x-column-header {
  71. cursor: pointer;
  72. border-top: 1px solid #92c9eb;
  73. background: #65a9d7;
  74. background: -webkit-gradient(linear, left top, left bottom, from(#ced3d9), to(#65a9d7) );
  75. background: -webkit-linear-gradient(top, #ced3d9, #65a9d7);
  76. background: -moz-linear-gradient(top, #ced3d9, #65a9d7);
  77. background: -ms-linear-gradient(top, #ced3d9, #65a9d7);
  78. background: -o-linear-gradient(top, #ced3d9, #65a9d7);
  79. }
  80. .custom-button {
  81. cursor: pointer;
  82. border-top: 1px solid #96d1f8;
  83. background: #8eb6d1;
  84. background: -webkit-gradient(linear, left top, left bottom, from(#dfebf2), to(#8eb6d1) );
  85. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1);
  86. background: -moz-linear-gradient(top, #dfebf2, #8eb6d1);
  87. background: -ms-linear-gradient(top, #dfebf2, #8eb6d1);
  88. background: -o-linear-gradient(top, #dfebf2, #8eb6d1);
  89. -webkit-border-radius: 4px;
  90. -moz-border-radius: 4px;
  91. border-radius: 4px;
  92. font-size: 14px;
  93. font-family: Georgia, serif;
  94. vertical-align: middle;
  95. padding: 3px 5px;
  96. }
  97. .custom-button:hover {
  98. background: #5aa4d6;
  99. color: #ccc;
  100. }
  101. .custom-button:active {
  102. background: #96d1f8;
  103. }
  104. .up {
  105. border: none;
  106. background: transparent;
  107. margin-top: -2px;
  108. }
  109. </style>
  110. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  111. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  112. <script type="text/javascript" src="<%=basePath%>resource/ux/RowExpander.js"></script>
  113. <script type="text/javascript" src="<%=basePath%>resource/ux/CheckColumn.js"></script>
  114. <script type="text/javascript">
  115. Ext.Loader.setConfig({
  116. enabled: true
  117. });//开启动态加载
  118. Ext.application({
  119. name: 'erp',//为应用程序起一个名字,相当于命名空间
  120. appFolder: basePath + 'app',//app文件夹所在路径
  121. controllers : [//声明所用到的控制层
  122. 'common.Template' ],
  123. launch : function() {
  124. Ext.create('erp.view.common.init.Template');//创建视图
  125. }
  126. });
  127. var caller = 'InitDetail';
  128. </script>
  129. </head>
  130. <body>
  131. </body>
  132. </html>