save.jsp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <%@ page import="com.sysmodel.assistant.ConfigService,
  4. com.sysmodel.datamodel.xmlmodel.ModelFactory"%>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  6. <html>
  7. <head>
  8. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  9. <link rel="stylesheet" href="../../../styles/css.css" type="text/css">
  10. <title>配置信息保存</title>
  11. <meta http-equiv="cache-control" content="no-cache">
  12. <meta http-equiv="expires" content="0">
  13. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  14. <script type="text/javascript" src="../../../scripts/dojo/dojo/dojo.js"
  15. djConfig="isDebug: false, parseOnLoad: true"></script>
  16. <script type="text/javascript">
  17. dojo.require("dijit.form.Form");
  18. dojo.require("dijit.Tooltip");
  19. dojo.require("dijit.form.Button");
  20. </script>
  21. <style type="text/css">
  22. @import "../../../scripts/dojo/dojo/resources/dojo.css";
  23. @import "../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  24. @import "../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  25. @import "../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  26. </style>
  27. <script language="javascript">
  28. function saveConfigs(){
  29. if(confirm("确定要保存生成新的配置文件吗?")){
  30. document.forms[0].submit();
  31. }
  32. }
  33. </script>
  34. </head>
  35. <body class="tundra">
  36. <%
  37. String save = request.getParameter("save") == null ? "" : request.getParameter("save");
  38. if(!save.equals("")){
  39. ConfigService XMLSave = new ConfigService();
  40. XMLSave.saveConfigFiles();
  41. out.print("成功保存配置信息!");
  42. }
  43. %>
  44. <form name="form0" action="progressbar.jsp" method="post">
  45. <div id=total>
  46. <div class="whiteborder">
  47. <div class="titback">
  48. <div class="floatleft"><img src="../../../images/index/arrow1.gif" width="20" height="24"/></div>
  49. <div class="dropshadow">保存新的版本配置</div>
  50. <div class="clear"></div>
  51. </div>
  52. <div class="report">
  53. 配置文件路径:<%=request.getLocalAddr() + " 机器 "+ ModelFactory.getSysmodel().getFileLoadFolder() %>
  54. <table align="center" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  55. <tr class="TableBgColorBlack">
  56. <td width="10%">&nbsp;</td>
  57. <td width="30%" align="left">配置描述</td>
  58. <td align="left">配置文件名</td>
  59. </tr>
  60. <tr>
  61. <td>&nbsp;</td>
  62. <td align="left">页面资源配置</td>
  63. <td align="left">&quot;PageResouce.xml&quot;</td>
  64. </tr>
  65. <tr>
  66. <td>&nbsp;</td>
  67. <td align="left">数据库信息配置</td>
  68. <td align="left">&quot;DataModel.xml&quot;</td>
  69. </tr>
  70. <tr>
  71. <td>&nbsp;</td>
  72. <td align="left">采集页面配置</td>
  73. <td align="left">&quot;PageCollection.xml&quot;</td>
  74. </tr>
  75. <tr>
  76. <td>&nbsp;</td>
  77. <td align="left">列表查询配置</td>
  78. <td align="left">&quot;PageList.xml&quot;</td>
  79. </tr>
  80. </table>
  81. </div>
  82. <div class="btmbox">
  83. <button id="save" dojoType="dijit.form.Button" onClick="saveConfigs();" type="button" iconClass="plusIcon">
  84. 保存
  85. </button>
  86. <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>&nbsp;&nbsp;
  87. </div>
  88. </div>
  89. </div>
  90. </form>
  91. </body>
  92. </html>