<%@page import="java.net.URLEncoder"%> <%@page import="java.util.ArrayList"%> <%@page import="org.xdams.utility.TitleManager"%> <%@page import="org.xdams.xml.builder.XMLBuilder"%> <%@page import="org.xdams.page.view.bean.ManagingBean"%> <%@page import="org.xdams.workflow.bean.WorkFlowBean"%> <%@page import="org.xdams.user.bean.UserBean"%> <%@page import="org.xdams.conf.master.ConfBean"%> <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> <% ConfBean confBean = (ConfBean)request.getAttribute("confBean"); UserBean userBean = (UserBean)request.getAttribute("userBean"); WorkFlowBean workFlowBean = (WorkFlowBean) request.getAttribute("workFlowBean"); ManagingBean managingBean =(ManagingBean) request.getAttribute("managingBean") ; XMLBuilder theXMLconf = confBean.getTheXMLConfEditing(); XMLBuilder theXMLconfTitle = confBean.getTheXMLConfTitle(); XMLBuilder theXMLValControllati = confBean.getTheXMLValControllati(); TitleManager titleManager = new TitleManager(theXMLconfTitle); %> xDams - <%=workFlowBean.getArchive().getArchiveDescr()%>
: <%=titleManager.defaultParsedTitle(managingBean.getTitle(),"defaultTitle")%>
, :
<%if((managingBean.getListPhysDoc())!=null && (managingBean.getListPhysDoc()).size()>0){ %> (<%=(managingBean.getListPhysDoc()).size()%> )
<%} %> <%if(( managingBean.getNumElementi())>0){ %> (<%=( managingBean.getNumElementi())%> )
<%} %> <%if((managingBean.getDocUpperBrother())>0){ %>
<%} %> <%if((managingBean.getDocLowerBrother())>0){ %>
<%} %> <%if((managingBean.getNumElementiSons())>0){ %> (<%=(managingBean.getNumElementiSons())%> )
<%} %> <%if((managingBean.getNumElementiHier())>0 && managingBean.getNumElementiHier()>managingBean.getNumElementiSons()){ %> (<%=(managingBean.getNumElementiHier())%> )
<%} %>
<% String externalPath = "/root/docEdit/macroarea"; String ilNome =""; int nodiMacroAree = theXMLconf.contaNodi(externalPath); String theOptions = ""; ArrayList theOptionsValContr = new ArrayList(); for (int i = 0; i < nodiMacroAree; i++) { externalPath = "/root/docEdit/macroarea["+(i+1)+"]/sezione"; int nodiMacroSezioni = theXMLconf.contaNodi(externalPath); if(!theXMLconf.valoreNodo(externalPath+"/@name").equals("")) ilNome = theXMLconf.valoreNodo(externalPath+"/@name"); for (int a = 0; a < nodiMacroSezioni; a++) { externalPath = "/root/docEdit/macroarea["+(i+1)+"]/sezione["+(a+1)+"]/elemento[@multiMod='true']"; int nodiOpzioni = theXMLconf.contaNodi(externalPath); for (int z = 0; z < nodiOpzioni; z++) { if(!theXMLconf.valoreNodo(externalPath+"["+(z+1)+"]/@name").equals("")){ ilNome = theXMLconf.valoreNodo(externalPath+"["+(z+1)+"]/@name"); } if(!theXMLconf.valoreNodo(externalPath+"["+(z+1)+"]/text()").equals("")){ if(theXMLconf.valoreNodo(externalPath+"["+(z+1)+"]/@input_type").equals("select")){ String valContrExtPath = theXMLconf.valoreNodo(externalPath+"["+(z+1)+"]/@externalPath"); int countOpt = theXMLValControllati.contaNodi(valContrExtPath); ArrayList arrayList = new ArrayList(); if(countOpt>0){ arrayList.add(""); } theOptionsValContr.add(arrayList); } theOptions += ""; } String externalPathSub = externalPath+"["+(z+1)+"]/elemento[@multiMod='true']"; int nodiOpzioniSub = theXMLconf.contaNodi(externalPathSub); String nomeSup = ilNome; for (int x = 0; x < nodiOpzioniSub; x++) { if(!theXMLconf.valoreNodo(externalPathSub+"["+(x+1)+"]/@name").equals("")) ilNome = theXMLconf.valoreNodo(externalPathSub+"["+(x+1)+"]/@name"); ilNome = nomeSup+ " "+ilNome; ilNome = ilNome.trim(); if(theXMLconf.valoreNodo(externalPathSub+"["+(x+1)+"]/@input_type").equals("select")){ String valContrExtPath = theXMLconf.valoreNodo(externalPathSub+"["+(x+1)+"]/@externalPath"); int countOpt = theXMLValControllati.contaNodi(valContrExtPath); ArrayList arrayList = new ArrayList(); if(countOpt>0){ arrayList.add(""); } if(!theOptionsValContr.contains(arrayList)){ theOptionsValContr.add(arrayList); } } theOptions += ""; } } } } %> valore:
<% for(int xx=0;xx <%=(String)arrayList.get(jj) %> <%} } %>

:


" class="bottoneLink" onmouseover="window.status='';return true" onmouseout="window.status=''" onclick="return proiettaModifica(false);" href="#">

<% String codiceId=theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo']/text()"); if(!codiceId.equals("")){ try{ XMLBuilder selectedDoc = new XMLBuilder(managingBean.getDocXML(),"iso-8859-1"); %>
, :
<%if((managingBean.getDocUpperBrother())>0){ %>
<%} %> <%if((managingBean.getDocLowerBrother())>0){ %>
<%} %> <%if((managingBean.getNumElementiSons())>0){ %> (<%=(managingBean.getNumElementiSons())%> )
<%} %> <%if((managingBean.getNumElementiHier())>0 && managingBean.getNumElementiHier()>managingBean.getNumElementiSons()){ %> (<%=(managingBean.getNumElementiHier())%> )
<%} %>
:

:


" class="bottoneLink" onmouseover="window.status='';return true" onmouseout="window.status=''" onclick="return proiettaRinumera(false);" href="#">
<%}catch(Exception e){} }%>