config.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <%@ page
  4. import ="java.util.*"%>
  5. <%@ page language="java"
  6. import="com.sysmodel.XFormFactory,
  7. com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
  8. com.sysmodel.datamodel.xmlmodel.ModelFactory,
  9. com.sysmodel.datamodel.xmlmodel.able.SysModel,
  10. com.sysmodel.datamodel.xmlmodel.impl.MdpModuleImpl"%>
  11. <%
  12. String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
  13. SysModel sysmodel = ModelFactory.getSysmodel();
  14. String refreshTime = "";
  15. String listWidth = "";
  16. String type = "";
  17. String description = "";
  18. String Action = "add";
  19. type = request.getParameter("type") == null ? "" : request.getParameter("type");
  20. if(!listid.equals("")){
  21. Action = "edit";
  22. FormListImpl FormList =(FormListImpl)XFormFactory.getXFormModel().getFormList(listid);
  23. listid = FormList.getListid();
  24. refreshTime = FormList.getRefreshTime() ;
  25. listWidth = FormList.getListWidth();
  26. type = FormList.getType();
  27. description = FormList.getDescription();
  28. }
  29. %>
  30. <HTML>
  31. <HEAD>
  32. <TITLE></TITLE>
  33. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  34. <link rel="stylesheet" href="../../../../styles/css.css" type="text/css">
  35. <script type="text/javascript">
  36. <%
  37. String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
  38. if(!refreshNode.equals("")){%>
  39. var loadTip = "<div>数据装载中,请稍候...</div>";
  40. var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
  41. var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=pageList.<%=type%>";
  42. var treeCloseImg = "plus.gif";
  43. var treeOpenImg = "minus.gif";
  44. parent.parent.parent.frames["confTreeFrame"].refreshNode('pageList.<%=type%>');
  45. parent.parent.location.href= "../container.html?listid=<%=listid%>";
  46. <%}%>
  47. </script>
  48. <script type="text/javascript" src="../../../../scripts/dojo/dojo/dojo.js"
  49. djConfig="isDebug: false, parseOnLoad: true"></script>
  50. <script type="text/javascript">
  51. dojo.require("dijit.form.Form");
  52. dojo.require("dijit.form.FilteringSelect");
  53. dojo.require("dijit.form.Button");
  54. dojo.require("dijit.Tooltip");
  55. </script>
  56. <style type="text/css">
  57. @import "../../../../scripts/dojo/dojo/resources/dojo.css";
  58. @import "../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  59. @import "../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  60. @import "../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  61. .formQuestion {
  62. background-color:#d0e3f5;
  63. padding:0.3em;
  64. font-weight:900;
  65. font-family:Verdana, Arial, sans-serif;
  66. font-size:0.8em;
  67. color:#5a5a5a;
  68. }
  69. .formAnswer {
  70. background-color:#f5eede;
  71. padding:0.3em;
  72. margin-bottom:1em;
  73. width: 100%;
  74. }
  75. .pageSubContentTitle {
  76. color:#8e8e8e;
  77. font-size:1em;
  78. font-family:Verdana, Arial, sans-serif;
  79. margin-bottom:0.75em;
  80. }
  81. .small INPUT {
  82. width: 2.5em;
  83. }
  84. .medium INPUT {
  85. width: 10em;
  86. }
  87. .long INPUT {
  88. width: 20em;
  89. }
  90. .firstLabel {
  91. display: inline-block;
  92. display: -moz-inline-box;
  93. width: 10em;
  94. min-width: 10em;
  95. }
  96. .secondLabel {
  97. width: auto;
  98. margin-left: 5em;
  99. margin-right: 1em;
  100. }
  101. fieldset label {
  102. margin-right: 1em;
  103. }
  104. .noticeMessage {
  105. display: block;
  106. float: right;
  107. font-weight: normal;
  108. font-family:Arial, Verdana, sans-serif;
  109. color:#663;
  110. font-size:0.9em;
  111. }
  112. </style>
  113. </HEAD>
  114. <body class="tundra">
  115. <form action="configExc.jsp" method="post">
  116. <input type="hidden" name="Action" value="<%=Action%>">
  117. <div id=total>
  118. <div class="whiteborder">
  119. <div class="titback">
  120. <div class="floatleft">
  121. <img src="../../../../images/index/arrow1.gif" width="20" height="24"/></div>
  122. <div class="dropshadow">列表基本信息配置&nbsp;&nbsp;&nbsp;</div>
  123. <div class="clear"></div>
  124. </div>
  125. <div class="report">
  126. <table align="center" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  127. <tr>
  128. <td align="right" width="28%">配置编号&nbsp;<span class="redcolor">*</span>&nbsp;&nbsp;</td>
  129. <td align="left" width="72%">
  130. <input type="text" id="listid" name="listid" class="medium"
  131. dojoType="dijit.form.ValidationTextBox"
  132. required="true"
  133. ucfirst="true"
  134. invalidMessage="配置编号必须录入!"
  135. value="<%=listid %>"<%if(Action.equals("edit")){ %> readonly<%} %>/>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td align="right">刷新间隔&nbsp;&nbsp;&nbsp;</td>
  140. <td align="left">
  141. <input type="text" id="refreshTime" name="refreshTime" class="medium"
  142. dojoType="dijit.form.ValidationTextBox"
  143. value="<%=refreshTime %>"/>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td align="right">列表所占宽度&nbsp;<span class="redcolor">*</span>&nbsp;&nbsp;</td>
  148. <td align="left">
  149. <input type="text" id="listWidth" name="listWidth" class="medium"
  150. dojoType="dijit.form.ValidationTextBox"
  151. required="true"
  152. ucfirst="true"
  153. invalidMessage="列表所占宽度必须录入!"
  154. value="<%=listWidth %>"/>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td align="right">所属模块&nbsp;<span class="redcolor">*</span>&nbsp;&nbsp;</td>
  159. <td align="left">
  160. <select name="type" dojoType="dijit.form.FilteringSelect">
  161. required="true" id="type" autocomplete="true"
  162. <%
  163. ArrayList mod = sysmodel.getMdpModules();
  164. MdpModuleImpl MdpModule = new MdpModuleImpl();
  165. for(int i = 0 ; i < mod.size(); i ++){
  166. MdpModule = (MdpModuleImpl)mod.get(i);
  167. String id =String.valueOf(MdpModule.getCode());
  168. %>
  169. <option value="<%=id %>" <%if(id.equals(type)) out.print("selected"); %> ><%=MdpModule.getName() %></option>
  170. <%
  171. }
  172. %>
  173. </select></td>
  174. </tr>
  175. <tr>
  176. <td align="right">备注&nbsp;<span class="redcolor">*</span>&nbsp;&nbsp;</td>
  177. <td align="left">
  178. <input type="text" id="description" name="description" class="medium"
  179. dojoType="dijit.form.ValidationTextBox"
  180. required="true"
  181. ucfirst="true"
  182. invalidMessage="备注必须录入!"
  183. value="<%=description %>"/>
  184. </td>
  185. </tr>
  186. </table>
  187. </div>
  188. <div class="btmbox">
  189. <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple")' type="submit" iconClass="plusIcon">
  190. 保存
  191. </button>
  192. <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>&nbsp;&nbsp;
  193. </div></div>
  194. </div>
  195. </form>
  196. </BODY>
  197. </HTML>