12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="com.sysmodel.collectmodel.xmlmodel.able.FormCollection,
- com.sysmodel.collectmodel.xmlmodel.impl.*"%>
- <%
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- String action = request.getParameter("action") == null ? "" : request.getParameter("action") ;
-
-
- String pageTitle = request.getParameter("pageTitle") == null ? "" : request.getParameter("pageTitle") ;
- String pageHeadWidth = request.getParameter("pageHeadWidth") == null ? "" : request.getParameter("pageHeadWidth") ;
- String pageHeadHeight = request.getParameter("pageHeadHeight") == null ? "" : request.getParameter("pageHeadHeight") ;
- String backURL = request.getParameter("backURL") == null ? "" : request.getParameter("backURL") ;
-
- String pageBodyWidth = request.getParameter("pageBodyWidth") == null ? "" : request.getParameter("pageBodyWidth") ;
- String pageBodyHeight = request.getParameter("pageBodyHeight") == null ? "" : request.getParameter("pageBodyHeight") ;
- String labelWidth = request.getParameter("labelWidth") == null ? "" : request.getParameter("labelWidth") ;
- String controlWidth = request.getParameter("controlWidth") == null ? "" : request.getParameter("controlWidth") ;
- String columnCount = request.getParameter("columnCount") == null ? "" : request.getParameter("columnCount") ;
- String labelAlign = request.getParameter("labelAlign") == null ? "" : request.getParameter("labelAlign") ;
- String controlAlign = request.getParameter("controlAlign") == null ? "" : request.getParameter("controlAlign") ;
-
-
- String pageRootWidth = request.getParameter("pageRootWidth") == null ? "" : request.getParameter("pageRootWidth") ;
- String image = request.getParameter("image") == null ? "false" : request.getParameter("image") ;
- String align = request.getParameter("align") == null ? "" : request.getParameter("align") ;
- String pageRootHeight = request.getParameter("pageRootHeight") == null ? "" : request.getParameter("pageRootHeight") ;
- FormCollection FormCollection = null;
- if(session.getAttribute("FormCollect"+pageid) == null ){
- return;
- } else {
- FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid);
-
-
- PageHeadImpl PageHeadImpl = (PageHeadImpl)FormCollection.getPageHead();
- PageHeadImpl.setBackURL(backURL);
- PageHeadImpl.setHeight(pageHeadHeight + "%");
- PageHeadImpl.setPageTitle(pageTitle);
- PageHeadImpl.setWidth(pageHeadWidth + "%");
-
- PageBodyImpl PageBodyImpl = (PageBodyImpl)FormCollection.getPageBody();
- PageBodyImpl.setWidth(pageBodyWidth + "%" );
- PageBodyImpl.setHeight(pageBodyHeight + "%");
- if(!columnCount.equals("")){
- PageBodyImpl.setColumnCount(Integer.parseInt(columnCount));
- }
- PageBodyImpl.setControlAlign(controlAlign);
- PageBodyImpl.setControlWidth(controlWidth + "%");
- PageBodyImpl.setLabelAlign(labelAlign);
- PageBodyImpl.setLabelWidth(labelWidth + "%");
- PageRootImpl PageRootImpl = (PageRootImpl)FormCollection.getPageRoot();
- PageRootImpl.setWidth(pageRootWidth + "%");
- PageRootImpl.setHeight(pageRootHeight + "%");
- PageRootImpl.setAlign(align);
- PageRootImpl.setImage(new Boolean(image).booleanValue());
-
- session.setAttribute("FormCollect"+pageid , FormCollection);
-
- %>
- <script type="text/javascript">
- var url = window.opener.location.href;
- url = url.replace("sessionReload=true","sessionReload=false");
- window.opener.location.replace(url);
- window.close();
- </script>
- <%} %>
|