<%@ page language="java"%> <%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %> <% if(request.getParameter("preview")!=null) {%> <% } %> <%@ page language="java" pageEncoding="ISO-8859-1" import="java.util.*,javax.servlet.jsp.*,com.nivaria.datatype.*,com.nivaria.epress.*,com.nivaria.edit.*, com.nivaria.commerce.*,com.nivaria.commerce.domain.*,com.nivaria.consulta.*"%> <%! public java.util.List getFilterParams(com.nivaria.data.DataSource ds) throws Exception { java.util.List res = new java.util.ArrayList(); try { Object[] filterParams = ds.getDataValueList("PARAMS"); if (filterParams!=null && filterParams.length>0) { for(int i=0;i <% com.nivaria.project.ProjectInterface app = (com.nivaria.project.ProjectInterface)application.getAttribute("com.nivaria.application"); com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager)application.getAttribute("com.nivaria.epress"); CommerceFacade shp = new CommerceFacade(ep.getCore()); if (app == null) { throw new com.nivaria.intranet.NoApplicationException(); } boolean enPrevio = false; if (session!=null && session.getAttribute("PREVIEWSTATUS")!=null) { enPrevio = true; } Issue currentIssue= ep.getIssue(5); if (currentIssue== null) { throw new Exception("> No se encuentra EDICION disponible <"); } String dtpag = "PG_MICROSITE_ADVANCED"; Comparator stringCmp = new Comparator ( ) { public int compare ( Object o1, Object o2 ) { String s1 = ( String ) o1; String s2 = ( String ) o2; int len1 = s1.length ( ) ; int len2 = s2.length ( ) ; for ( int i=0, n=Math.min ( len1, len2 ) ; i < n; i++ ) { char c1 = s1.charAt ( i ) ; char c2 = s2.charAt ( i ) ; if ( c1 != c2 ) return c1 - c2; } return len1 - len2; } } ; Comparator stringCmpDsc = new Comparator ( ) { public int compare ( Object o1, Object o2 ) { String s1 = ( String ) o1; String s2 = ( String ) o2; int len1 = s1.length ( ) ; int len2 = s2.length ( ) ; for ( int i=0, n=Math.min ( len1, len2 ) ; i < n; i++ ) { char c1 = s1.charAt ( i ) ; char c2 = s2.charAt ( i ) ; if ( c1 != c2 ) return -1*(c1 - c2); } return -1*(len1 - len2); } } ; Comparator licitacionCmp = new Comparator() { public int compare(Object o1, Object o2) { com.nivaria.consulta.CObject obj1 = (com.nivaria.consulta.CObject)o1; com.nivaria.consulta.CObject obj2 = (com.nivaria.consulta.CObject)o2; String val1 = ""; String val2 = ""; try { val1 = obj1.getDataValue("LIMITDATE","yyyy-MM-dd"); val2 = obj2.getDataValue("LIMITDATE","yyyy-MM-dd"); } catch(Exception ex) { ex.printStackTrace(); } int len1 = val1.length() ; int len2 = val2.length() ; for (int i=0, n=Math.min (len1,len2);i <% int langId = ((com.nivaria.core.CoreManager)application.getAttribute("com.nivaria.core")).getLanguage("ES").getId(); %> AfricaInfoMarket - Cultura

Libros abiertos

<% try { %> <% int dataSourceId = Integer.parseInt("55"); /*com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager) application.getAttribute("com.nivaria.epress");*/ com.nivaria.data.DataSourceManager dsm = new com.nivaria.data.DataSourceManager(ep.getCore()); com.nivaria.data.DataSource ds = dsm.getDataSource(dataSourceId); //Creating Query request com.nivaria.consulta.QueryRequest qrequest = new com.nivaria.consulta.QueryRequest(request,dataSourceId); String pref = qrequest.getParameterPrefix(); String excluded = qrequest.getParameter("excluded")!=null?qrequest.getParameter("excluded"):""; if(!excluded.equals("")) { String[] exclFlds = excluded.split(";"); for(int i=0;i <% if(consulta!=null) { for(int i=0;i <% } else { %> <% String[] qvals = qrequest.getParameterValues(fieldName); if(qvals!=null && qvals.length>0) { for(int v=0;v <% } } %> <% } %> "/> "/> <% } } } %> "/> <%if(products!=null && products.length>0) { for(int i=from;i
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp",currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"> <%=prd.getDataValue("NAME", langId)%>

<% } else { if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: paramName = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: paramName = "CATID"; break; } } String valImg = ""; int indImg = -1; for(int j=0;j"; }else{ valImg = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)file.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); valImg += "\""+((file.getDataValue("ALT",langId)!=null?(String)file.getDataValue("ALT",langId):""))+"\""; if((String)file.getDataValue("FOOT",langId)!= null && (!((String)file.getDataValue("FOOT",langId)).equals(""))) { valImg += "

"+((String)file.getDataValue("FOOT",langId))+"

"; } valImg += "
"; indImg = j; break; } } } for(int j=0;j"; } } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); if(val!=null && !val.trim().equals("")) { val = ""+val+""; } } else { val = (String)prd.getDataValue(fld,langId); } if(val!=null && !val.trim().equals("")) { if(j==0) { if(valImg.equals("")) { %> <% } else { %> <%=valImg%> <% } %>

<%=val%>

<% } else { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } } } %>
<% }%>
<% } } else { %>
No se han encontrado los resultados
<% } %> <% } catch(Exception ups) { ups.printStackTrace(); throw ups; } %>

ver más libros

Calidoscopio

<% try { %> <% int dataSourceId = Integer.parseInt("65"); /*com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager) application.getAttribute("com.nivaria.epress");*/ com.nivaria.data.DataSourceManager dsm = new com.nivaria.data.DataSourceManager(ep.getCore()); com.nivaria.data.DataSource ds = dsm.getDataSource(dataSourceId); //Creating Query request com.nivaria.consulta.QueryRequest qrequest = new com.nivaria.consulta.QueryRequest(request); String pref = qrequest.getParameterPrefix(); String excluded = qrequest.getParameter("excluded")!=null?qrequest.getParameter("excluded"):""; if(!excluded.equals("")) { String[] exclFlds = excluded.split(";"); for(int i=0;i <% if(consulta!=null) { for(int i=0;i <% } else { %> <% String[] qvals = qrequest.getParameterValues(fieldName); if(qvals!=null && qvals.length>0) { for(int v=0;v <% } } %> <% } %> "/> "/> <% } } } %> "/> <% if(pageNum==0) { %> <% if(products==null || products.length==0) { %> <% if(products!=null && products.length>0) { int columns = 1; int sto = 100; int cF = currentRow; int cT = to-cF ; String style= ""; String style0= ""; try { columns = Integer.parseInt("1"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cT = Integer.parseInt("1"); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;padding-left:8px;"; } java.util.List lf110651 = new java.util.ArrayList(); lf110651.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf110651.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf110651.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf110651.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); lf110651.add(new Field_s("Imagen","IMAGE:879","false","IMAGE","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = ""; if(tInf.trim().equals("") || tInf.equals("null")) tInf = "Más información"; for(int i=cF;i
<%=(i==0?"first":"")%>"> <% }%>
<% String pN = "PRDID"; if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: pN = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: pN = "CATID"; break; } } String vI = ""; int iI = -1; for(int j=0;j"; }else{ vI = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)fl.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); vI += "\""+((al!=null?al:""))+"\""; if(ft!= null && !ft.equals("")) { vI += "

"+ft+"

"; } vI += "
"; iI = j; break; } } } Field_s f = (Field_s) lf110651.get(0); String v = (String)prd.getDataValue(f,langId); %> <%=vI%>

<% if(!oRes) { %> <% } %> <%=v%> <% if(!oRes) { %> <% } %>

<% String sep = ""; for(int j=1;j"+v+""; lCD += sep + v; sep = " | "; } } %>

<%=lCD%>

<% lCD=""; for(int j=3;j

<%=val%>

<% } else { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %> <% } } if(!oRes) { if(!mInf) { %>

<%=tInf%>

<% } } %>
<% if((i-cF)%columns==columns-1 || i==(cF+cT-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } else { %> <% if(products!=null && products.length>0) { int columns = 1; int sto = 100; int cF = currentRow; int cT = to-cF ; String style= ""; String style0= ""; try { columns = Integer.parseInt("1"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cT = Integer.parseInt("1"); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;padding-left:8px;"; } java.util.List lf110651 = new java.util.ArrayList(); lf110651.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf110651.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf110651.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf110651.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); lf110651.add(new Field_s("Imagen","IMAGE:879","false","IMAGE","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = ""; if(tInf.trim().equals("") || tInf.equals("null")) tInf = "Más información"; for(int i=cF;i
<%=(i==0?"first":"")%>"> <% }%>
<% String pN = "PRDID"; if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: pN = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: pN = "CATID"; break; } } String vI = ""; int iI = -1; for(int j=0;j"; }else{ vI = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)fl.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); vI += "\""+((al!=null?al:""))+"\""; if(ft!= null && !ft.equals("")) { vI += "

"+ft+"

"; } vI += "
"; iI = j; break; } } } Field_s f = (Field_s) lf110651.get(0); String v = (String)prd.getDataValue(f,langId); %> <%=vI%>

<% if(!oRes) { %> <% } %> <%=v%> <% if(!oRes) { %> <% } %>

<% String sep = ""; for(int j=1;j"+v+""; lCD += sep + v; sep = " | "; } } %>

<%=lCD%>

<% lCD=""; for(int j=3;j

<%=val%>

<% } else { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %> <% } } if(!oRes) { if(!mInf) { %>

<%=tInf%>

<% } } %>
<% if((i-cF)%columns==columns-1 || i==(cF+cT-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% if(products!=null && products.length>0) { int columns = 1; int sto = 100; int cF = currentRow; int cT = to-cF ; String style= ""; String style0= ""; try { columns = Integer.parseInt("2"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cT = Integer.parseInt("2"); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;padding-left:8px;"; } java.util.List lf110656 = new java.util.ArrayList(); lf110656.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf110656.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf110656.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf110656.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = ""; if(tInf.trim().equals("") || tInf.equals("null")) tInf = "Más información"; for(int i=cF;i
<%=(i==0?"first":"")%>"> <% }%>
<% String pN = "PRDID"; if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: pN = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: pN = "CATID"; break; } } String vI = ""; int iI = -1; for(int j=0;j"; }else{ vI = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)fl.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); vI += "\""+((al!=null?al:""))+"\""; if(ft!= null && !ft.equals("")) { vI += "

"+ft+"

"; } vI += "
"; iI = j; break; } } } Field_s f = (Field_s) lf110656.get(0); String v = (String)prd.getDataValue(f,langId); %> <%=vI%>

<% if(!oRes) { %> <% } %> <%=v%> <% if(!oRes) { %> <% } %>

<% String sep = ""; for(int j=1;j"+v+""; lCD += sep + v; sep = " | "; } } %>

<%=lCD%>

<% lCD=""; for(int j=3;j

<%=val%>

<% } else { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %> <% } } if(!oRes) { if(!mInf) { %>

<%=tInf%>

<% } } %>
<% if((i-cF)%columns==columns-1 || i==(cF+cT-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } %> <% } else { %> <% if(products!=null && products.length>0) { int columns = 1; int sto = 100; int cF = currentRow; int cT = to-cF ; String style= ""; String style0= ""; try { columns = Integer.parseInt("2"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cT = Integer.parseInt("2"); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;padding-left:8px;"; } java.util.List lf110656 = new java.util.ArrayList(); lf110656.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf110656.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf110656.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf110656.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = ""; if(tInf.trim().equals("") || tInf.equals("null")) tInf = "Más información"; for(int i=cF;i
<%=(i==0?"first":"")%>"> <% }%>
<% String pN = "PRDID"; if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: pN = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: pN = "CATID"; break; } } String vI = ""; int iI = -1; for(int j=0;j"; }else{ vI = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)fl.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); vI += "\""+((al!=null?al:""))+"\""; if(ft!= null && !ft.equals("")) { vI += "

"+ft+"

"; } vI += "
"; iI = j; break; } } } Field_s f = (Field_s) lf110656.get(0); String v = (String)prd.getDataValue(f,langId); %> <%=vI%>

<% if(!oRes) { %> <% } %> <%=v%> <% if(!oRes) { %> <% } %>

<% String sep = ""; for(int j=1;j"+v+""; lCD += sep + v; sep = " | "; } } %>

<%=lCD%>

<% lCD=""; for(int j=3;j

<%=val%>

<% } else { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %> <% } } if(!oRes) { if(!mInf) { %>

<%=tInf%>

<% } } %>
<% if((i-cF)%columns==columns-1 || i==(cF+cT-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } %> <% } catch(Exception ups) { ups.printStackTrace(); throw ups; } %>

Nuevo en AfricaInfoMarket

<% try { %> <% int dataSourceId = Integer.parseInt("63"); /*com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager) application.getAttribute("com.nivaria.epress");*/ com.nivaria.data.DataSourceManager dsm = new com.nivaria.data.DataSourceManager(ep.getCore()); com.nivaria.data.DataSource ds = dsm.getDataSource(dataSourceId); //Creating Query request com.nivaria.consulta.QueryRequest qrequest = new com.nivaria.consulta.QueryRequest(request,dataSourceId); String pref = qrequest.getParameterPrefix(); String excluded = qrequest.getParameter("excluded")!=null?qrequest.getParameter("excluded"):""; if(!excluded.equals("")) { String[] exclFlds = excluded.split(";"); for(int i=0;i <% if(consulta!=null) { for(int i=0;i <% } else { %> <% String[] qvals = qrequest.getParameterValues(fieldName); if(qvals!=null && qvals.length>0) { for(int v=0;v <% } } %> <% } %> "/> "/> <% } } } %> "/> <% if(pageNum==0) { %> <% if(products==null || products.length==0) { %> <% if(products!=null && products.length>0) {%> <% int columns = 1; int sto = 100; int cusFrom = currentRow; int cusTo = to-cusFrom ; String style= ""; String style0= ""; try { columns = Integer.parseInt("1"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cusTo = Integer.parseInt(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;margin-left:8px;"; } java.util.List layoutflds136129 = new java.util.ArrayList(); layoutflds136129.add(new Field_s("Nombre","NAME:1183","false","TEXT","false","false")); layoutflds136129.add(new Field_s("Enlace","ENLACE:1183","false","URL","false","false")); layoutflds136129.add(new Field_s("Descripción","DESCRIPCION:1183","false","TEXT","false","false")); boolean onlyResults = false; boolean showMoreInfo = true; String titleMoreInfo = ""; if(titleMoreInfo.trim().equals("") || titleMoreInfo.equals("null")) titleMoreInfo = "Más información"; for(int i=cusFrom;i
1) {%><% } %>> <% } %>
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp", currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"><%=prd.getDataValue("NAME", langId)%>

Más información

<% } else { Field_s fld = (Field_s) layoutflds136129.get(0); String val = ""; if (fld.getDt().equals("DATE")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy",langId); } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); } else { val = (String)prd.getDataValue(fld,langId); } if(val!=null && !val.trim().equals("")) { fld = (Field_s) layoutflds136129.get(1); String ref = (String)prd.getDataValue(fld.getTitle_org(),langId); if(ref!=null && !ref.equals("")) { ref = ref.replaceFirst("PAGEPATH",""); ref = ep.parsePageReferences(ref,"cultura.jsp","DEFAULT"); } %>

<% if(ref!=null && !ref.trim().equals("")) { %> <% } %> <%=val%> <% if(ref!=null && !ref.trim().equals("")) { %> <% } %>

<% fld = (Field_s) layoutflds136129.get(2); val = (String)prd.getDataValue(fld,langId); if(val!=null && !val.trim().equals("")) { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %>
<% if(!onlyResults) { if(!showMoreInfo) { if(ref!=null && !ref.trim().equals("")) { %>

<%=titleMoreInfo%>

<% } } } %> <% } %> <% }%>
<% if((i-cusFrom)%columns==columns-1 || i==(cusFrom+cusTo-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } else { %> <% if(products!=null && products.length>0) {%> <% int columns = 1; int sto = 100; int cusFrom = currentRow; int cusTo = to-cusFrom ; String style= ""; String style0= ""; try { columns = Integer.parseInt("1"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cusTo = Integer.parseInt(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;margin-left:8px;"; } java.util.List layoutflds136129 = new java.util.ArrayList(); layoutflds136129.add(new Field_s("Nombre","NAME:1183","false","TEXT","false","false")); layoutflds136129.add(new Field_s("Enlace","ENLACE:1183","false","URL","false","false")); layoutflds136129.add(new Field_s("Descripción","DESCRIPCION:1183","false","TEXT","false","false")); boolean onlyResults = false; boolean showMoreInfo = true; String titleMoreInfo = ""; if(titleMoreInfo.trim().equals("") || titleMoreInfo.equals("null")) titleMoreInfo = "Más información"; for(int i=cusFrom;i
1) {%><% } %>> <% } %>
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp", currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"><%=prd.getDataValue("NAME", langId)%>

Más información

<% } else { Field_s fld = (Field_s) layoutflds136129.get(0); String val = ""; if (fld.getDt().equals("DATE")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy",langId); } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); } else { val = (String)prd.getDataValue(fld,langId); } if(val!=null && !val.trim().equals("")) { fld = (Field_s) layoutflds136129.get(1); String ref = (String)prd.getDataValue(fld.getTitle_org(),langId); if(ref!=null && !ref.equals("")) { ref = ref.replaceFirst("PAGEPATH",""); ref = ep.parsePageReferences(ref,"cultura.jsp","DEFAULT"); } %>

<% if(ref!=null && !ref.trim().equals("")) { %> <% } %> <%=val%> <% if(ref!=null && !ref.trim().equals("")) { %> <% } %>

<% fld = (Field_s) layoutflds136129.get(2); val = (String)prd.getDataValue(fld,langId); if(val!=null && !val.trim().equals("")) { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %>
<% if(!onlyResults) { if(!showMoreInfo) { if(ref!=null && !ref.trim().equals("")) { %>

<%=titleMoreInfo%>

<% } } } %> <% } %> <% }%>
<% if((i-cusFrom)%columns==columns-1 || i==(cusFrom+cusTo-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } %> <% } else { %> <% if(products!=null && products.length>0) {%> <% int columns = 1; int sto = 100; int cusFrom = currentRow; int cusTo = to-cusFrom ; String style= ""; String style0= ""; try { columns = Integer.parseInt("1"); } catch(NumberFormatException colups) {} if(pageNum==0) { try { cusTo = Integer.parseInt(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;width:"+pw+"%;margin-left:8px;"; } java.util.List layoutflds136129 = new java.util.ArrayList(); layoutflds136129.add(new Field_s("Nombre","NAME:1183","false","TEXT","false","false")); layoutflds136129.add(new Field_s("Enlace","ENLACE:1183","false","URL","false","false")); layoutflds136129.add(new Field_s("Descripción","DESCRIPCION:1183","false","TEXT","false","false")); boolean onlyResults = false; boolean showMoreInfo = true; String titleMoreInfo = ""; if(titleMoreInfo.trim().equals("") || titleMoreInfo.equals("null")) titleMoreInfo = "Más información"; for(int i=cusFrom;i
1) {%><% } %>> <% } %>
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp", currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"><%=prd.getDataValue("NAME", langId)%>

Más información

<% } else { Field_s fld = (Field_s) layoutflds136129.get(0); String val = ""; if (fld.getDt().equals("DATE")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy",langId); } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); } else { val = (String)prd.getDataValue(fld,langId); } if(val!=null && !val.trim().equals("")) { fld = (Field_s) layoutflds136129.get(1); String ref = (String)prd.getDataValue(fld.getTitle_org(),langId); if(ref!=null && !ref.equals("")) { ref = ref.replaceFirst("PAGEPATH",""); ref = ep.parsePageReferences(ref,"cultura.jsp","DEFAULT"); } %>

<% if(ref!=null && !ref.trim().equals("")) { %> <% } %> <%=val%> <% if(ref!=null && !ref.trim().equals("")) { %> <% } %>

<% fld = (Field_s) layoutflds136129.get(2); val = (String)prd.getDataValue(fld,langId); if(val!=null && !val.trim().equals("")) { if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% } %>
<% if(!onlyResults) { if(!showMoreInfo) { if(ref!=null && !ref.trim().equals("")) { %>

<%=titleMoreInfo%>

<% } } } %> <% } %> <% }%>
<% if((i-cusFrom)%columns==columns-1 || i==(cusFrom+cusTo-1)) { %>
<% } } } else { %>
No se han encontrado los resultados
<% } %> <% } %> <% } catch(Exception ups) { ups.printStackTrace(); throw ups; } %>

ver todas las novedades

Noticias

<% try { %> <% int dataSourceId = Integer.parseInt("6"); /*com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager) application.getAttribute("com.nivaria.epress");*/ com.nivaria.data.DataSourceManager dsm = new com.nivaria.data.DataSourceManager(ep.getCore()); com.nivaria.data.DataSource ds = dsm.getDataSource(dataSourceId); //Creating Query request com.nivaria.consulta.QueryRequest qrequest = new com.nivaria.consulta.QueryRequest(request,dataSourceId); String pref = qrequest.getParameterPrefix(); String excluded = qrequest.getParameter("excluded")!=null?qrequest.getParameter("excluded"):""; if(!excluded.equals("")) { String[] exclFlds = excluded.split(";"); for(int i=0;i <% if(consulta!=null) { for(int i=0;i <% } else { %> <% String[] qvals = qrequest.getParameterValues(fieldName); if(qvals!=null && qvals.length>0) { for(int v=0;v <% } } %> <% } %> "/> "/> <% } } } %> "/> <%if(products!=null && products.length>0) { String lineCountryDate=""; boolean printed=false; for(int i=from;i
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp",currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"> <%=prd.getDataValue("NAME", langId)%>

Más información

<% } else { if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: paramName = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: paramName = "CATID"; break; } } String valImg = ""; int indImg = -1; for(int j=0;j"; }else{ valImg = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)file.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); valImg += "\""+((file.getDataValue("ALT",langId)!=null?(String)file.getDataValue("ALT",langId):""))+"\""; if((String)file.getDataValue("FOOT",langId)!= null && (!((String)file.getDataValue("FOOT",langId)).equals(""))) { valImg += "

"+((String)file.getDataValue("FOOT",langId))+"

"; } valImg += "
"; indImg = j; break; } } } for(int j=0;j"; } } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); if(val!=null && !val.trim().equals("")) { val = ""+val+""; } } else { val = (String)prd.getDataValue(fld,langId); } //System.out.println(fld.getTitle_org()+": "+val); if(val!=null && !val.trim().equals("")) { if(j==2) { if(!printed){ if(valImg.equals("")) { %> <% } else { %> <%=valImg%> <% } %>

<%=lineCountryDate%>

<% printed=true; lineCountryDate=""; }%>

<%=val%>

<% } else if(j==0) { if (!val.startsWith("<")){ lineCountryDate =""+val+""; }else{ lineCountryDate= val; } printed=false; } else if(j==1) { if (lineCountryDate.length()>0){ if (val.startsWith("<")){ lineCountryDate+=" | "+val; }else{ lineCountryDate+=" | " +""+val+""; } }else{ if (val.startsWith("<")){ lineCountryDate = val; }else{ lineCountryDate =""+val+""; } printed=false; } } else { if(j>2 && !printed){%>

<%=lineCountryDate%>

<% if(valImg.equals("")) { %> <% } else { %> <%=valImg%> <% } printed=true; lineCountryDate=""; } if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% }%> <% } } %> <% if (!printed){%>

<%=lineCountryDate%>

<% }%>
<% }%>
<% } } else { %>
No se han encontrado los resultados
<% } %> <% } catch(Exception ups) { ups.printStackTrace(); throw ups; } %>

ver todas las noticias

Eventos destacados

<% try { %> <% int dataSourceId = Integer.parseInt("9"); /*com.nivaria.epress.EPressManager ep = (com.nivaria.epress.EPressManager) application.getAttribute("com.nivaria.epress");*/ com.nivaria.data.DataSourceManager dsm = new com.nivaria.data.DataSourceManager(ep.getCore()); com.nivaria.data.DataSource ds = dsm.getDataSource(dataSourceId); //Creating Query request com.nivaria.consulta.QueryRequest qrequest = new com.nivaria.consulta.QueryRequest(request,dataSourceId); String pref = qrequest.getParameterPrefix(); String excluded = qrequest.getParameter("excluded")!=null?qrequest.getParameter("excluded"):""; if(!excluded.equals("")) { String[] exclFlds = excluded.split(";"); for(int i=0;i <% if(consulta!=null) { for(int i=0;i <% } else { %> <% String[] qvals = qrequest.getParameterValues(fieldName); if(qvals!=null && qvals.length>0) { for(int v=0;v <% } } %> <% } %> "/> "/> <% } } } %> "/> <%if(products!=null && products.length>0) { String lineCountryDate=""; boolean printed=false; for(int i=from;i
<% if (conType==4){ String url = ((CObjectFX)prd).getUrl("cultura.jsp",currentIssue); if (((CObjectFX)prd).isDinamic()){ url += "&step=3"; } %>

"> <%=prd.getDataValue("NAME", langId)%>

Más información

<% } else { if(prd instanceof CObjectFX) { switch(((CObjectFX)prd).getType()) { case com.nivaria.security.SecurityManager.NODETYPE_SECTION: paramName = "SECID"; break; case com.nivaria.security.SecurityManager.NODETYPE_CATEGORY: paramName = "CATID"; break; } } String valImg = ""; int indImg = -1; for(int j=0;j"; }else{ valImg = "
"; } String furl = com.nivaria.util.FilePath.getRelativePath("cultura.jsp", (String)file.getDataValue("URL",langId)); furl= com.nivaria.util.FilePath.pathToWeb(furl); valImg += "\""+((file.getDataValue("ALT",langId)!=null?(String)file.getDataValue("ALT",langId):""))+"\""; if((String)file.getDataValue("FOOT",langId)!= null && (!((String)file.getDataValue("FOOT",langId)).equals(""))) { valImg += "

"+((String)file.getDataValue("FOOT",langId))+"

"; } valImg += "
"; indImg = j; break; } } } for(int j=0;j"; } } else if(fld.getDt().equals("DATETIME")) { val = prd.getDataValue(fld.getTitle_org(),"dd/MM/yyyy hh:mm",langId); if(val!=null && !val.trim().equals("")) { val = ""+val+""; } } else { val = (String)prd.getDataValue(fld,langId); } //System.out.println(fld.getTitle_org()+": "+val); if(val!=null && !val.trim().equals("")) { if(j==2) { if(!printed){ if(valImg.equals("")) { %> <% } else { %> <%=valImg%> <% } %>

<%=lineCountryDate%>

<% printed=true; lineCountryDate=""; }%>

<%=val%>

<% } else if(j==0) { if (!val.startsWith("<")){ lineCountryDate =""+val+""; }else{ lineCountryDate= val; } printed=false; } else if(j==1) { if (lineCountryDate.length()>0){ if (val.startsWith("<")){ lineCountryDate+=" | "+val; }else{ lineCountryDate+=" | " +""+val+""; } }else{ if (val.startsWith("<")){ lineCountryDate = val; }else{ lineCountryDate =""+val+""; } printed=false; } } else { if(j>2 && !printed){%>

<%=lineCountryDate%>

<% if(valImg.equals("")) { %> <% } else { %> <%=valImg%> <% } printed=true; lineCountryDate=""; } if(fld.showTitle()) { %> <%=fld.getTitle()%>: <% } %> <%=val%>
<% }%> <% } } %> <% if (!printed){%>

<%=lineCountryDate%>

<% }%>
<% }%>
<% } } else { %>
No se han encontrado los resultados
<% } %> <% } catch(Exception ups) { ups.printStackTrace(); throw ups; } %>

ver toda la agenda