<%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page language="java" import="java.util.*, com.sysmodel.listmodel.xmlmodel.impl.FormListImpl, com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.listmodel.xmlmodel.impl.ListFieldImpl, com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl"%> <% String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid"); String dataName = request.getParameter("dataName") == null ? "" : request.getParameter("dataName"); String classid = request.getParameter("classid") == null ? "" : request.getParameter("classid"); String action = "add"; String popup = "0"; String showType = request.getParameter("showType") == null ? "" : request.getParameter("showType"); String label = request.getParameter("label") == null ? "" : request.getParameter("label"); FormListImpl FormList = null; ArrayList tableList = null; String width = ""; String url = ""; String target = ""; String image = ""; String showTxt = ""; String formWidth = ""; String formHeight = ""; String remark = ""; int n = 0; int m = 0; String imageid = ""; if(session.getAttribute("FormList"+listid) == null){ return; } else { FormList = (FormListImpl)session.getAttribute("FormList"+listid); tableList = FormList.getQueryTables(); ArrayList listFields = FormList.getQueryList().getlistFields(); for (int i = 0 ; i < listFields.size() ; i++) { ListFieldImpl listFieldImpl = (ListFieldImpl)listFields.get(i); String oLabel = listFieldImpl.getLabel()==null?"":listFieldImpl.getLabel(); if (listFieldImpl.getDataName().equals(dataName) && oLabel.equals(label)){ width = listFieldImpl.getWidth() == null ? "" : listFieldImpl.getWidth(); if(width.indexOf("%") != -1){ StringBuffer rWidth = new StringBuffer(width); rWidth.reverse(); rWidth.deleteCharAt(0); rWidth.reverse(); width = rWidth.toString(); } url = listFieldImpl.getUrl() == null ? "" :listFieldImpl.getUrl(); target = listFieldImpl.getTarget() == null ? "" :listFieldImpl.getTarget(); image = listFieldImpl.getImage() == null ? "" :listFieldImpl.getImage(); showTxt = listFieldImpl.getShowTxt() == null ? "" :listFieldImpl.getShowTxt(); formWidth = listFieldImpl.getFormWith() == null ? "" :listFieldImpl.getFormWith(); formHeight = listFieldImpl.getFormHeight() == null ? "" :listFieldImpl.getFormHeight(); remark = listFieldImpl.getRemark() == null ? "" :listFieldImpl.getRemark(); if (showType.equals("0")){ if(!dataName.equals("")){ action = "edit"; } }else if (showType.equals("1")) { if(!image.equals("")){ action = "edit"; } } if (showType.equals("2")) { if(!showTxt.equals("")){ action = "edit"; } } if(!image.equals("")){ n = image.lastIndexOf("."); m = image.lastIndexOf("/"); imageid = image.substring(m+1,n); } } } } if (!formWidth.equals("") || !formHeight.equals("")){ popup = "1"; } %> 列属性信息配置页面 <% int imgWidth=64; int imgHeight=64; int selecteSize = 3; String selectedPic = "nothing"; if(!imageid.equals("")){ selectedPic = imageid; } %>
列属性信息配置
类型   >表数据 >文本 >图片 *
列宽   %
链接  
target  
是否弹出 >是 >否
保存按钮   重置按钮   关闭按钮