<%@ page language="java" pageEncoding="ISO-8859-15" contentType="text/html;charset=ISO-8859-15"%> <%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %> <% if(request.getParameter("preview")!=null) {%> <% } %> <%@ page language="java" 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.*,com.nivaria.consulta.impl.*,com.nivaria.consulta.impl.ncm.*"%> <% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0); %> <%! 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_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(); %> <% boolean hasQueryDetails = false; %> <% if(!hasQueryDetails){%> <% } if(!hasQueryDetails) {%> AfricaInfoMarket - Área de comunicación <% } %>

Área de comunicación

África hoy

<% 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(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(""); } 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 lf163931 = new java.util.ArrayList(); lf163931.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf163931.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163931.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163931.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); lf163931.add(new Field_s("Imagen para la portada","HOME_IMAGE:879","false","IMAGE","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = "ver esta noticia"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163931.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(""); } 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 lf163931 = new java.util.ArrayList(); lf163931.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf163931.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163931.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163931.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); lf163931.add(new Field_s("Imagen para la portada","HOME_IMAGE:879","false","IMAGE","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = "ver esta noticia"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163931.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(""); } 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 lf163931 = new java.util.ArrayList(); lf163931.add(new Field_s("Titular","NAME:879","false","TEXT","false","false")); lf163931.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163931.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163931.add(new Field_s("Entradilla","HEADER:879","false","TEXT","false","false")); lf163931.add(new Field_s("Imagen para la portada","HOME_IMAGE:879","false","IMAGE","false","false")); String lCD=""; boolean oRes = false; boolean mInf = false; String tInf = "ver esta noticia"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163931.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; } %>

Casos de éxito

<% try { %> <% int dataSourceId = Integer.parseInt("42"); /*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 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(""); } 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 lf163948 = new java.util.ArrayList(); lf163948.add(new Field_s("Nombre","NAME:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Fecha creación","CREATIONDATE:1110","false","DATE","false","false")); lf163948.add(new Field_s("País","COUNTRY:1110","false","LIST923","false","false")); lf163948.add(new Field_s("Sumario","ASSETTEXT:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Descripción de la portada","DESCRIPCIONPORTADA:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Imagen para la portada","HOME_IMAGE:1110","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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163948.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(""); } 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 lf163948 = new java.util.ArrayList(); lf163948.add(new Field_s("Nombre","NAME:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Fecha creación","CREATIONDATE:1110","false","DATE","false","false")); lf163948.add(new Field_s("País","COUNTRY:1110","false","LIST923","false","false")); lf163948.add(new Field_s("Sumario","ASSETTEXT:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Descripción de la portada","DESCRIPCIONPORTADA:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Imagen para la portada","HOME_IMAGE:1110","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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163948.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(""); } 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 lf163948 = new java.util.ArrayList(); lf163948.add(new Field_s("Nombre","NAME:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Fecha creación","CREATIONDATE:1110","false","DATE","false","false")); lf163948.add(new Field_s("País","COUNTRY:1110","false","LIST923","false","false")); lf163948.add(new Field_s("Sumario","ASSETTEXT:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Descripción de la portada","DESCRIPCIONPORTADA:1110","false","TEXT","false","false")); lf163948.add(new Field_s("Imagen para la portada","HOME_IMAGE:1110","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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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) lf163948.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; } %>

ver todos los casos de éxito

Artículos de opinión

Notas de prensa

Recorridos

<% 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 = ((CObjectNCM)prd).getUrl("oficina_prensa.jsp",currentIssue); if (((CObjectNCM)prd).isDinamic()){ url += "&step=3"; } %>

<%=prd.getName()%>

ver este reportaje

<% } else { if(prd instanceof CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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(j==1) { if (!val.startsWith("<")){ lineCountryDate = ""+val+""; }else{ lineCountryDate = val; } } else if(j==2) { if (lineCountryDate.length()>0){ if (val.startsWith("<")){ lineCountryDate+=" | "+val; }else{ lineCountryDate+=" | "+""+val+""; } }else{ if (val.startsWith("<")){ lineCountryDate = val; }else{ lineCountryDate = ""+val+""; } }%>

<%=lineCountryDate%>

<% printed=true; lineCountryDate=""; } else { if ((j>2) && !printed){%>

<%=lineCountryDate%>

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

<%=lineCountryDate%>

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

ver este reportaje

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

ver todos los reportajes

1.000 palabras

Titulares

<% 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(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(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;#float:none;width:"+pw+"%;padding-left:8px;"; } java.util.List lf163805 = new java.util.ArrayList(); lf163805.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163805.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163805.add(new Field_s("Nombre","NAME:879","false","TEXT","false","false")); String lCD=""; boolean oRes = false; boolean mInf = true; String tInf = "ver todas las noticias"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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; } } } String sep = ""; String v = ""; for(int j=0;j"+v+""; lCD += sep + v; sep = " | "; } } %> <%=vI%>

<%=lCD%>

<% lCD=""; Field_s f = (Field_s) lf163805.get(2); v = (String)prd.getDataValue(f,langId); %>

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

<% 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(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;#float:none;width:"+pw+"%;padding-left:8px;"; } java.util.List lf163805 = new java.util.ArrayList(); lf163805.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163805.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163805.add(new Field_s("Nombre","NAME:879","false","TEXT","false","false")); String lCD=""; boolean oRes = false; boolean mInf = true; String tInf = "ver todas las noticias"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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; } } } String sep = ""; String v = ""; for(int j=0;j"+v+""; lCD += sep + v; sep = " | "; } } %> <%=vI%>

<%=lCD%>

<% lCD=""; Field_s f = (Field_s) lf163805.get(2); v = (String)prd.getDataValue(f,langId); %>

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

<% 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(""); } catch(NumberFormatException colups) {} } if(columns>1) { int pw = sto/columns-1; style0="float:left;width:"+pw+"%;"; style="float:left;#float:none;width:"+pw+"%;padding-left:8px;"; } java.util.List lf163805 = new java.util.ArrayList(); lf163805.add(new Field_s("Fecha creación","CREATIONDATE:879","false","DATE","false","false")); lf163805.add(new Field_s("País","COUNTRY:879","false","LIST881","false","false")); lf163805.add(new Field_s("Nombre","NAME:879","false","TEXT","false","false")); String lCD=""; boolean oRes = false; boolean mInf = true; String tInf = "ver todas las noticias"; 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 CObjectNCM) { switch(((CObjectNCM)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("oficina_prensa.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; } } } String sep = ""; String v = ""; for(int j=0;j"+v+""; lCD += sep + v; sep = " | "; } } %> <%=vI%>

<%=lCD%>

<% lCD=""; Field_s f = (Field_s) lf163805.get(2); v = (String)prd.getDataValue(f,langId); %>

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

<% 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; } %>

ver todas las noticias