afterinit.jsp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. <style type="text/css">
  14. .custom-button {
  15. cursor: pointer;
  16. border-top: 1px solid #96d1f8;
  17. background-color: #dce9f9;
  18. background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc),to(#dce9f9) );
  19. background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
  20. background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
  21. background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
  22. background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
  23. background-image: linear-gradient(top, #ebf3fc, #dce9f9);
  24. text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  25. -webkit-border-radius: 4px;
  26. -moz-border-radius: 4px;
  27. border-radius: 4px;
  28. font-size: 14px;
  29. font-family: Georgia, serif;
  30. vertical-align: middle;
  31. padding: 3px 5px;
  32. }
  33. .custom-button:hover {
  34. background: #96d1f8;
  35. color: #ccc;
  36. }
  37. .custom-button:active {
  38. background: #96d1f8;
  39. }
  40. </style>
  41. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  42. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  43. <script type="text/javascript">
  44. Ext.Loader.setConfig({
  45. enabled: true
  46. });
  47. Ext.application({
  48. name: 'erp',
  49. appFolder: basePath + 'app',
  50. controllers : [ 'common.AfterInit' ],
  51. launch : function() {
  52. Ext.create('erp.view.common.init.AfterInit');
  53. }
  54. });
  55. var caller = 'AfterInit';
  56. </script>
  57. </head>
  58. <body>
  59. </body>
  60. </html>