conf.jsp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <%
  3. request.setCharacterEncoding("utf-8");
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme() + "://"
  6. + request.getServerName() + ":" + request.getServerPort()
  7. + path + "/";
  8. %>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <link rel="stylesheet" href="<%=basePath%>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  14. <link rel="stylesheet" href="<%=basePath%>resource/css/main.css" type="text/css"></link>
  15. <style>
  16. .checked {
  17. padding-left: 12px;
  18. background-image: url("<%=basePath%>resource/images/accept.png") !important;
  19. background-repeat: no-repeat !important;
  20. }
  21. .error {
  22. padding-left: 12px;
  23. background-image: url("<%=basePath%>resource/images/renderer/important.png") !important;
  24. background-repeat: no-repeat !important;
  25. }
  26. .custom-alt .x-grid-cell {
  27. border-top-color: #999;
  28. border-top-style: dashed;
  29. background-color: #EAEAEA;
  30. }
  31. </style>
  32. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  33. <script type="text/javascript" src="<%=basePath%>resource/ux/RowExpander.js"></script>
  34. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  35. <script type="text/javascript">
  36. /**
  37. * 配置同步
  38. */
  39. Ext.Loader.setConfig({
  40. enabled: true
  41. });//开启动态加载
  42. Ext.application({
  43. name: 'erp',//为应用程序起一个名字,相当于命名空间
  44. appFolder: basePath + 'app',//app文件夹所在路径
  45. controllers : [//声明所用到的控制层
  46. 'ma.Conf' ],
  47. launch : function() {
  48. Ext.create('erp.view.ma.Conf');//创建视图
  49. }
  50. });
  51. </script>
  52. </head>
  53. <body>
  54. </body>
  55. </html>