123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page language="java"
- import="
- com.sysmodel.collectmodel.xmlmodel.able.FormCollection,
- com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl,
- com.sysmodel.datamodel.xmlmodel.able.SysModel
- "%>
- <%
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- String action = "add";
-
- SysModel sysmodel = ModelFactory.getSysmodel();
- FormCollection FormCollection = null;
- ArrayList reportFields = null;
-
-
-
- String pageTitle = "";
- String pageHeadWidth = "";
- String pageHeadHeight = "";
- String backURL = "";
-
- String pageBodyWidth = "";
- String pageBodyHeight = "";
- String labelWidth = "";
- String controlWidth = "";
- int columnCount = 1;
- String labelAlign = "";
- String controlAlign = "";
-
-
- String pageRootWidth = "";
- boolean image = false;
- String align = "";
- String pageRootHeight = "";
-
- if(session.getAttribute("FormCollect"+pageid) == null ){
- return;
- } else {
- reportFields = FormCollection.getReportFieldByControlType( FormCollection , "select");
- columnCount = FormCollection.getPageBody().getColumnCount();
-
- action = "edit";
-
- pageTitle = FormCollection.getPageHead().getPageTitle();
- pageHeadWidth = FormCollection.getPageHead().getWidth();
- if(pageHeadWidth.indexOf("%") != -1){
- pageHeadWidth = pageHeadWidth.substring(0,pageHeadWidth.indexOf("%"));
- }
- pageHeadHeight = FormCollection.getPageHead().getHeight();
- if(pageHeadHeight.indexOf("%") != -1){
- pageHeadHeight = pageHeadHeight.substring(0,pageHeadHeight.indexOf("%"));
- }
-
- backURL = FormCollection.getPageHead().getBackURL();
-
- pageBodyWidth = FormCollection.getPageBody().getWidth();
- if(pageBodyWidth.indexOf("%") != -1){
- pageBodyWidth = pageBodyWidth.substring(0,pageBodyWidth.indexOf("%"));
- }
- pageBodyHeight = FormCollection.getPageBody().getHeight();
- if(pageBodyHeight.indexOf("%") != -1){
- pageBodyHeight = pageBodyHeight.substring(0,pageBodyHeight.indexOf("%"));
- }
- labelWidth = FormCollection.getPageBody().getLabelWidth();
- if(labelWidth.indexOf("%") != -1){
- labelWidth = labelWidth.substring(0,labelWidth.indexOf("%"));
- }
- controlWidth = FormCollection.getPageBody().getControlWidth();
- if(controlWidth.indexOf("%") != -1){
- controlWidth = controlWidth.substring(0,controlWidth.indexOf("%"));
- }
- columnCount = FormCollection.getPageBody().getColumnCount();
- labelAlign = FormCollection.getPageBody().getLabelAlign();
- controlAlign = FormCollection.getPageBody().getControlAlign();
-
- pageRootWidth = FormCollection.getPageRoot().getWidth();
- if(pageRootWidth.indexOf("%") != -1){
- pageRootWidth = pageRootWidth.substring(0,pageRootWidth.indexOf("%"));
- }
- image = FormCollection.getPageRoot().isImage();
- align = FormCollection.getPageRoot().getAlign();
- pageRootHeight = FormCollection.getPageRoot().getHeight();
- if(pageRootHeight.indexOf("%") != -1){
- pageRootHeight = pageRootHeight.substring(0,pageRootHeight.indexOf("%"));
- }
-
- }
-
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>列表属性配置</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <link rel="stylesheet" href="../../../styles/style.css" type="text/css"></link>
- <link rel="stylesheet" href="../../../styles/css.css" type="text/css"></link>
- <script type="text/javascript">
- function checkinput(){
- document.forms[0].submit();
- }
- </script>
- <script type="text/javascript" src="../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
- <script type="text/javascript">
- dojo.require("dijit.form.Form");
- dojo.require("dijit.form.ValidationTextBox");
- dojo.require("dijit.form.ComboBox");
- dojo.require("dijit.form.FilteringSelect");
- dojo.require("dijit.form.NumberSpinner");
- dojo.require("dijit.form.Button");
- dojo.require("dijit.Tooltip");
- dojo.require("dojo.parser");
- </script>
- <style type="text/css">
- @import "../../../scripts/dojo/dojo/resources/dojo.css";
- @import "../../../scripts/dojo/dijit/themes/tundra/tundra.css";
- @import "../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
- @import "../../../scripts/dojo/dijit/tests/css/dijitTests.css";
- .formQuestion {
- background-color:#d0e3f5;
- padding:0.3em;
- font-weight:900;
- font-family:Verdana, Arial, sans-serif;
- font-size:0.8em;
- color:#5a5a5a;
- }
- .formAnswer {
- background-color:#f5eede;
- padding:0.3em;
- margin-bottom:1em;
- width: 100%;
- }
- .pageSubContentTitle {
- color:#8e8e8e;
- font-size:1em;
- font-family:Verdana, Arial, sans-serif;
- margin-bottom:0.75em;
- }
- .small INPUT {
- width: 2.5em;
- }
- .medium INPUT {
- width: 10em;
- }
- .long INPUT {
- width: 20em;
- }
- .firstLabel {
- display: inline-block;
- display: -moz-inline-box;
- width: 10em;
- min-width: 10em;
- }
- .secondLabel {
- width: auto;
- margin-left: 5em;
- margin-right: 1em;
- }
- fieldset label {
- margin-right: 1em;
- }
- .noticeMessage {
- display: block;
- float: right;
- font-weight: normal;
- font-family:Arial, Verdana, sans-serif;
- color:#663;
- font-size:0.9em;
- }
- </style>
-
- </head>
- <body class="tundra">
- <form name="form1" method="post" action="tableAttExc.jsp">
- <input type="hidden" name="pageid" value="<%=pageid %>">
- <div id=total>
- <div class="whiteborder">
- <div class="titback">
- <div class="floatleft"><img src="../../../images/index/arrow1.gif" alt="1" width="20" height="24" /></div>
- <div class="dropshadow">采集属性配置</div>
- <div class="clear"></div>
- </div>
- <div class="report">
- <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr class="TableBgColorBlack">
- <td colspan="4" align="left"><strong>标题配置</strong></td>
- </tr>
- <tr class="TableBgColorAsh">
- <td width="25%">标题名称:</td>
- <td colspan="3">
- <input type="text" value="<%=pageTitle %>"
- id="pageTitle" name="pageTitle" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="false"
- ucfirst="true"
- invalidMessage=""></td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>标题宽:</td>
- <td width="25%">
- <input dojotype="dijit.form.NumberSpinner"
- id="pageHeadWidth" name="pageHeadWidth"
- value="<%=pageHeadWidth %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="size必须录入数字">%</td>
- <td width="25%">标题高:</td>
- <td>
- <input dojotype="dijit.form.NumberSpinner"
- id="pageHeadHeight" name="pageHeadHeight"
- value="<%=pageHeadHeight %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="size必须录入数字">%</td>
- </tr>
- </table>
- <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr class="TableBgColorBlack">
- <td colspan="4" align="left"><strong>采集属性配置:</strong></td>
- </tr>
- <tr class="TableBgColorAsh">
- <td width="25%">采集FORM宽:</td>
- <td width="25%">
- <input dojotype="dijit.form.NumberSpinner"
- id="pageBodyWidth" name="pageBodyWidth"
- value="<%=pageBodyWidth %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%</td>
- <td width="25%">采集FORM高:</td>
- <td>
- <input dojotype="dijit.form.NumberSpinner"
- id="pageBodyHeight" name="pageBodyHeight"
- value="<%=pageBodyHeight %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%</td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>label宽:</td>
- <td>
- <input dojotype="dijit.form.NumberSpinner"
- id="labelWidth" name="labelWidth"
- value="<%=labelWidth %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%</td>
- <td>control宽:</td>
- <td>
- <input dojotype="dijit.form.NumberSpinner"
- id="controlWidth" name="controlWidth"
- value="<%=controlWidth %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%
- </td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>columnCount:</td>
- <td colspan="3">
- <input dojotype="dijit.form.NumberSpinner"
- id="columnCount" name="columnCount"
- value="<%=columnCount %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字"></td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>label对齐方式:</td>
- <td>
- <select id="labelAlign" name="labelAlign"
- dojoType="dijit.form.FilteringSelect"
- required="true"
- autocomplete="true">
- <option value="left" <%if(labelAlign.equals("left"))out.print("selected"); %>> left</option>
- <option value="right" <%if(labelAlign.equals("right"))out.print("selected"); %>>right </option>
- <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
- </select>
- </td>
- <td colspan="2"> </td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>control对齐方式:</td>
- <td>
- <select id="controlAlign" name="controlAlign"
- dojoType="dijit.form.FilteringSelect"
- required="true"
- autocomplete="true">
- <option value="left" <%if(controlAlign.equals("left"))out.print("selected"); %>> left</option>
- <option value="right" <%if(controlAlign.equals("right"))out.print("selected"); %>>right </option>
- <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
- </select>
- </td>
- <td colspan="2"> </td>
- </tr>
- </table>
- <table align="center" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr class="TableBgColorBlack">
- <td colspan="4" align="left"><strong>按钮布局配置:</strong></td>
- </tr>
- <tr class="TableBgColorAsh">
- <td width="25%">按钮布局宽:</td>
- <td width="25%">
- <input dojotype="dijit.form.NumberSpinner"
- id="pageRootWidth" name="pageRootWidth"
- value="<%=pageRootWidth %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%</td>
- <td width="25%">按钮布局高:</td>
- <td>
- <input dojotype="dijit.form.NumberSpinner"
- id="pageRootHeight" name="pageRootHeight"
- value="<%=pageRootHeight %>"
- required="true"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="必须录入数字">%</td>
- </tr>
- <tr class="TableBgColorAsh">
- <td>是否有图片:</td>
- <td>
- <select id="image" name="image"
- dojoType="dijit.form.FilteringSelect"
- required="true"
- autocomplete="true">
- <option value="true" <%if(image == true)out.print("selected"); %>>true</option>
- <option value="false"<%if(image == false)out.print("selected"); %>>false</option>
- </select></td>
- <td>对齐方式:</td>
- <td>
- <select id="align" name="align"
- dojoType="dijit.form.FilteringSelect"
- required="true"
- autocomplete="true">
- <option value="left" <%if(align.equals("left"))out.print("selected"); %>> left</option>
- <option value="right" <%if(align.equals("right"))out.print("selected"); %>> right</option>
- <option value="center" <%if(labelAlign.equals("center"))out.print("selected"); %>>center </option>
- </select>
- </td>
- </tr>
- </table>
-
-
- </div>
- <div class="btmbox" align="right">
- <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),checkinput()' type="submit" iconClass="plusIcon">
- 保存
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>
-
- <button id="re" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),document.form1.reset();' iconClass="plusIcon">
- 重置
- </button>
- <span dojoType="dijit.Tooltip" connectId="re">重置按钮</span>
-
- <button id="clo" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),window.close();' type="button" iconClass="plusIcon">
- 关闭
- </button>
- <span dojoType="dijit.Tooltip" connectId="clo">关闭按钮</span>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
|