tableAtt.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page language="java"
  3. import="
  4. com.sysmodel.collectmodel.xmlmodel.able.FormCollection,
  5. com.sysmodel.datamodel.xmlmodel.ModelFactory,
  6. com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl,
  7. com.sysmodel.datamodel.xmlmodel.able.SysModel
  8. "%>
  9. <%
  10. String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
  11. String action = "add";
  12. SysModel sysmodel = ModelFactory.getSysmodel();
  13. FormCollection FormCollection = null;
  14. ArrayList reportFields = null;
  15. String pageTitle = "";
  16. String pageHeadWidth = "";
  17. String pageHeadHeight = "";
  18. String backURL = "";
  19. String pageBodyWidth = "";
  20. String pageBodyHeight = "";
  21. String labelWidth = "";
  22. String controlWidth = "";
  23. int columnCount = 1;
  24. String labelAlign = "";
  25. String controlAlign = "";
  26. String pageRootWidth = "";
  27. boolean image = false;
  28. String align = "";
  29. String pageRootHeight = "";
  30. if(session.getAttribute("FormCollect"+pageid) == null ){
  31. return;
  32. } else {
  33. reportFields = FormCollection.getReportFieldByControlType( FormCollection , "select");
  34. columnCount = FormCollection.getPageBody().getColumnCount();
  35. action = "edit";
  36. pageTitle = FormCollection.getPageHead().getPageTitle();
  37. pageHeadWidth = FormCollection.getPageHead().getWidth();
  38. if(pageHeadWidth.indexOf("%") != -1){
  39. pageHeadWidth = pageHeadWidth.substring(0,pageHeadWidth.indexOf("%"));
  40. }
  41. pageHeadHeight = FormCollection.getPageHead().getHeight();
  42. if(pageHeadHeight.indexOf("%") != -1){
  43. pageHeadHeight = pageHeadHeight.substring(0,pageHeadHeight.indexOf("%"));
  44. }
  45. backURL = FormCollection.getPageHead().getBackURL();
  46. pageBodyWidth = FormCollection.getPageBody().getWidth();
  47. if(pageBodyWidth.indexOf("%") != -1){
  48. pageBodyWidth = pageBodyWidth.substring(0,pageBodyWidth.indexOf("%"));
  49. }
  50. pageBodyHeight = FormCollection.getPageBody().getHeight();
  51. if(pageBodyHeight.indexOf("%") != -1){
  52. pageBodyHeight = pageBodyHeight.substring(0,pageBodyHeight.indexOf("%"));
  53. }
  54. labelWidth = FormCollection.getPageBody().getLabelWidth();
  55. if(labelWidth.indexOf("%") != -1){
  56. labelWidth = labelWidth.substring(0,labelWidth.indexOf("%"));
  57. }
  58. controlWidth = FormCollection.getPageBody().getControlWidth();
  59. if(controlWidth.indexOf("%") != -1){
  60. controlWidth = controlWidth.substring(0,controlWidth.indexOf("%"));
  61. }
  62. columnCount = FormCollection.getPageBody().getColumnCount();
  63. labelAlign = FormCollection.getPageBody().getLabelAlign();
  64. controlAlign = FormCollection.getPageBody().getControlAlign();
  65. pageRootWidth = FormCollection.getPageRoot().getWidth();
  66. if(pageRootWidth.indexOf("%") != -1){
  67. pageRootWidth = pageRootWidth.substring(0,pageRootWidth.indexOf("%"));
  68. }
  69. image = FormCollection.getPageRoot().isImage();
  70. align = FormCollection.getPageRoot().getAlign();
  71. pageRootHeight = FormCollection.getPageRoot().getHeight();
  72. if(pageRootHeight.indexOf("%") != -1){
  73. pageRootHeight = pageRootHeight.substring(0,pageRootHeight.indexOf("%"));
  74. }
  75. }
  76. %>
  77. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  78. <html>
  79. <head>
  80. <title>列表属性配置</title>
  81. <meta http-equiv="pragma" content="no-cache">
  82. <meta http-equiv="cache-control" content="no-cache">
  83. <meta http-equiv="expires" content="0">
  84. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  85. <meta http-equiv="description" content="This is my page">
  86. <link rel="stylesheet" href="../../../styles/style.css" type="text/css"></link>
  87. <link rel="stylesheet" href="../../../styles/css.css" type="text/css"></link>
  88. <script type="text/javascript">
  89. function checkinput(){
  90. document.forms[0].submit();
  91. }
  92. </script>
  93. <script type="text/javascript" src="../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
  94. <script type="text/javascript">
  95. dojo.require("dijit.form.Form");
  96. dojo.require("dijit.form.ValidationTextBox");
  97. dojo.require("dijit.form.ComboBox");
  98. dojo.require("dijit.form.FilteringSelect");
  99. dojo.require("dijit.form.NumberSpinner");
  100. dojo.require("dijit.form.Button");
  101. dojo.require("dijit.Tooltip");
  102. dojo.require("dojo.parser");
  103. </script>
  104. <style type="text/css">
  105. @import "../../../scripts/dojo/dojo/resources/dojo.css";
  106. @import "../../../scripts/dojo/dijit/themes/tundra/tundra.css";
  107. @import "../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
  108. @import "../../../scripts/dojo/dijit/tests/css/dijitTests.css";
  109. .formQuestion {
  110. background-color:#d0e3f5;
  111. padding:0.3em;
  112. font-weight:900;
  113. font-family:Verdana, Arial, sans-serif;
  114. font-size:0.8em;
  115. color:#5a5a5a;
  116. }
  117. .formAnswer {
  118. background-color:#f5eede;
  119. padding:0.3em;
  120. margin-bottom:1em;
  121. width: 100%;
  122. }
  123. .pageSubContentTitle {
  124. color:#8e8e8e;
  125. font-size:1em;
  126. font-family:Verdana, Arial, sans-serif;
  127. margin-bottom:0.75em;
  128. }
  129. .small INPUT {
  130. width: 2.5em;
  131. }
  132. .medium INPUT {
  133. width: 10em;
  134. }
  135. .long INPUT {
  136. width: 20em;
  137. }
  138. .firstLabel {
  139. display: inline-block;
  140. display: -moz-inline-box;
  141. width: 10em;
  142. min-width: 10em;
  143. }
  144. .secondLabel {
  145. width: auto;
  146. margin-left: 5em;
  147. margin-right: 1em;
  148. }
  149. fieldset label {
  150. margin-right: 1em;
  151. }
  152. .noticeMessage {
  153. display: block;
  154. float: right;
  155. font-weight: normal;
  156. font-family:Arial, Verdana, sans-serif;
  157. color:#663;
  158. font-size:0.9em;
  159. }
  160. </style>
  161. </head>
  162. <body class="tundra">
  163. <form name="form1" method="post" action="tableAttExc.jsp">
  164. <input type="hidden" name="pageid" value="<%=pageid %>">
  165. <div id=total>
  166. <div class="whiteborder">
  167. <div class="titback">
  168. <div class="floatleft"><img src="../../../images/index/arrow1.gif" alt="1" width="20" height="24" /></div>
  169. <div class="dropshadow">采集属性配置</div>
  170. <div class="clear"></div>
  171. </div>
  172. <div class="report">
  173. <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  174. <tr class="TableBgColorBlack">
  175. <td colspan="4" align="left"><strong>标题配置</strong></td>
  176. </tr>
  177. <tr class="TableBgColorAsh">
  178. <td width="25%">标题名称:</td>
  179. <td colspan="3">
  180. <input type="text" value="<%=pageTitle %>"
  181. id="pageTitle" name="pageTitle" class="medium"
  182. dojoType="dijit.form.ValidationTextBox"
  183. required="false"
  184. ucfirst="true"
  185. invalidMessage=""></td>
  186. </tr>
  187. <tr class="TableBgColorAsh">
  188. <td>标题宽:</td>
  189. <td width="25%">
  190. <input dojotype="dijit.form.NumberSpinner"
  191. id="pageHeadWidth" name="pageHeadWidth"
  192. value="<%=pageHeadWidth %>"
  193. required="true"
  194. constraints="{min: 0, max:100, places:0}"
  195. size=10
  196. invalidMessage="size必须录入数字">%</td>
  197. <td width="25%">标题高:</td>
  198. <td>
  199. <input dojotype="dijit.form.NumberSpinner"
  200. id="pageHeadHeight" name="pageHeadHeight"
  201. value="<%=pageHeadHeight %>"
  202. required="true"
  203. constraints="{min: 0, max:100, places:0}"
  204. size=10
  205. invalidMessage="size必须录入数字">%</td>
  206. </tr>
  207. </table>
  208. <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  209. <tr class="TableBgColorBlack">
  210. <td colspan="4" align="left"><strong>采集属性配置:</strong></td>
  211. </tr>
  212. <tr class="TableBgColorAsh">
  213. <td width="25%">采集FORM宽:</td>
  214. <td width="25%">
  215. <input dojotype="dijit.form.NumberSpinner"
  216. id="pageBodyWidth" name="pageBodyWidth"
  217. value="<%=pageBodyWidth %>"
  218. required="true"
  219. constraints="{min: 0, max:100, places:0}"
  220. size=10
  221. invalidMessage="必须录入数字">%</td>
  222. <td width="25%">采集FORM高:</td>
  223. <td>
  224. <input dojotype="dijit.form.NumberSpinner"
  225. id="pageBodyHeight" name="pageBodyHeight"
  226. value="<%=pageBodyHeight %>"
  227. required="true"
  228. constraints="{min: 0, max:100, places:0}"
  229. size=10
  230. invalidMessage="必须录入数字">%</td>
  231. </tr>
  232. <tr class="TableBgColorAsh">
  233. <td>label宽:</td>
  234. <td>
  235. <input dojotype="dijit.form.NumberSpinner"
  236. id="labelWidth" name="labelWidth"
  237. value="<%=labelWidth %>"
  238. required="true"
  239. constraints="{min: 0, max:100, places:0}"
  240. size=10
  241. invalidMessage="必须录入数字">%</td>
  242. <td>control宽:</td>
  243. <td>
  244. <input dojotype="dijit.form.NumberSpinner"
  245. id="controlWidth" name="controlWidth"
  246. value="<%=controlWidth %>"
  247. required="true"
  248. constraints="{min: 0, max:100, places:0}"
  249. size=10
  250. invalidMessage="必须录入数字">%
  251. </td>
  252. </tr>
  253. <tr class="TableBgColorAsh">
  254. <td>columnCount:</td>
  255. <td colspan="3">
  256. <input dojotype="dijit.form.NumberSpinner"
  257. id="columnCount" name="columnCount"
  258. value="<%=columnCount %>"
  259. required="true"
  260. constraints="{min: 0, max:100, places:0}"
  261. size=10
  262. invalidMessage="必须录入数字"></td>
  263. </tr>
  264. <tr class="TableBgColorAsh">
  265. <td>label对齐方式:</td>
  266. <td>
  267. <select id="labelAlign" name="labelAlign"
  268. dojoType="dijit.form.FilteringSelect"
  269. required="true"
  270. autocomplete="true">
  271. <option value="left" <%if(labelAlign.equals("left"))out.print("selected"); %>> left</option>
  272. <option value="right" <%if(labelAlign.equals("right"))out.print("selected"); %>>right </option>
  273. <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
  274. </select>
  275. </td>
  276. <td colspan="2">&nbsp;</td>
  277. </tr>
  278. <tr class="TableBgColorAsh">
  279. <td>control对齐方式:</td>
  280. <td>
  281. <select id="controlAlign" name="controlAlign"
  282. dojoType="dijit.form.FilteringSelect"
  283. required="true"
  284. autocomplete="true">
  285. <option value="left" <%if(controlAlign.equals("left"))out.print("selected"); %>> left</option>
  286. <option value="right" <%if(controlAlign.equals("right"))out.print("selected"); %>>right </option>
  287. <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
  288. </select>
  289. </td>
  290. <td colspan="2">&nbsp;</td>
  291. </tr>
  292. </table>
  293. <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  294. <tr class="TableBgColorBlack">
  295. <td colspan="4" align="left"><strong>按钮布局配置:</strong></td>
  296. </tr>
  297. <tr class="TableBgColorAsh">
  298. <td width="25%">按钮布局宽:</td>
  299. <td width="25%">
  300. <input dojotype="dijit.form.NumberSpinner"
  301. id="pageRootWidth" name="pageRootWidth"
  302. value="<%=pageRootWidth %>"
  303. required="true"
  304. constraints="{min: 0, max:100, places:0}"
  305. size=10
  306. invalidMessage="必须录入数字">%</td>
  307. <td width="25%">按钮布局高:</td>
  308. <td>
  309. <input dojotype="dijit.form.NumberSpinner"
  310. id="pageRootHeight" name="pageRootHeight"
  311. value="<%=pageRootHeight %>"
  312. required="true"
  313. constraints="{min: 0, max:100, places:0}"
  314. size=10
  315. invalidMessage="必须录入数字">%</td>
  316. </tr>
  317. <tr class="TableBgColorAsh">
  318. <td>是否有图片:</td>
  319. <td>
  320. <select id="image" name="image"
  321. dojoType="dijit.form.FilteringSelect"
  322. required="true"
  323. autocomplete="true">
  324. <option value="true" <%if(image == true)out.print("selected"); %>>true</option>
  325. <option value="false"<%if(image == false)out.print("selected"); %>>false</option>
  326. </select></td>
  327. <td>对齐方式:</td>
  328. <td>
  329. <select id="align" name="align"
  330. dojoType="dijit.form.FilteringSelect"
  331. required="true"
  332. autocomplete="true">
  333. <option value="left" <%if(align.equals("left"))out.print("selected"); %>> left</option>
  334. <option value="right" <%if(align.equals("right"))out.print("selected"); %>> right</option>
  335. <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
  336. </select>
  337. </td>
  338. </tr>
  339. </table>
  340. </div>
  341. <div class="btmbox" align="right">
  342. <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),checkinput()' type="submit" iconClass="plusIcon">
  343. 保存
  344. </button>
  345. <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>&nbsp;&nbsp;
  346. <button id="re" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),document.form1.reset();' iconClass="plusIcon">
  347. 重置
  348. </button>
  349. <span dojoType="dijit.Tooltip" connectId="re">重置按钮</span>&nbsp;&nbsp;
  350. <button id="clo" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),window.close();' type="button" iconClass="plusIcon">
  351. 关闭
  352. </button>
  353. <span dojoType="dijit.Tooltip" connectId="clo">关闭按钮</span>&nbsp;&nbsp;
  354. </div>
  355. </div>
  356. </div>
  357. </form>
  358. </body>
  359. </html>