master.jsp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE html>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all.css" type="text/css"></link>
  12. <style type="text/css">
  13. .custom-button {
  14. cursor: pointer;
  15. border-top: 1px solid #96d1f8;
  16. background-color: #dce9f9;
  17. background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc),to(#dce9f9) );
  18. background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
  19. background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
  20. background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
  21. background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
  22. background-image: linear-gradient(top, #ebf3fc, #dce9f9);
  23. text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  24. -webkit-border-radius: 4px;
  25. -moz-border-radius: 4px;
  26. border-radius: 4px;
  27. font-size: 14px;
  28. font-family: Georgia, serif;
  29. vertical-align: middle;
  30. padding: 3px 5px;
  31. }
  32. .custom-button:hover {
  33. background: #96d1f8;
  34. color: #ccc;
  35. }
  36. .custom-button:active {
  37. background: #96d1f8;
  38. }
  39. </style>
  40. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  41. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  42. <script type="text/javascript">
  43. Ext.Loader.setConfig({
  44. enabled: true
  45. });//开启动态加载
  46. Ext.application({
  47. name: 'erp',//为应用程序起一个名字,相当于命名空间
  48. appFolder: basePath+'app',//app文件夹所在路径
  49. controllers: [//声明所用到的控制层
  50. 'common.Master'
  51. ],
  52. launch: function() {
  53. Ext.create('erp.view.common.init.Master');//创建视图
  54. }
  55. });
  56. </script>
  57. </head>
  58. <body>
  59. </body>
  60. </html>