<% /****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * CVS Info for $RCSfile$ * * $Revision$ * $Author$ $Date$ ******************************************************************************/ %> <%@page session="true" import="com.edeal.frontline.*,java.util.*,com.edeal.frontline.navigation.FlRequest"%> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.util.Map" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation"%> <%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams"%> <%@ page import="com.edeal.frontline.ListBean" %> <%@ page import="com.edeal.frontline.ListBean.SearchZone" %> <%@ page import="com.edeal.frontline.helper.custom.ListHelper" %> <%@page import="org.apache.commons.lang.StringUtils"%> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String lc = flRequest.getRequestParameterOrAttribute("lc"); if (lc == null) { lc = flRequest.getRequestParameterOrAttribute("code"); } if (lc == null) { lc = "FAQ"; } request.setAttribute("lc", lc); String lu = flRequest.getRequestParameterOrAttribute("lu"); if (lu==null){ lu ="/list_faqheader.fl?gridName=FAQ"; } String cu = flRequest.getRequestParameterOrAttribute("cu"); if (cu==null){ cu ="/list_faqheader_criteria.fl"; } String objTitle = Utils.getMessage(session, "L1055", false, true, "FAQ") ; request.setAttribute("obj.title", objTitle); String listTitle = Utils.getMessage(session, "L104F", false, true, "Liste des FAQ"); request.setAttribute("list.title", listTitle); String criteriaTitle = Utils.getMessage(session, "F6139", false, true, "Liste des FAQ"); request.setAttribute("criteria.title", criteriaTitle); // search criteria String sc = (String)request.getAttribute("sc"); request.removeAttribute("sc"); // object uri String ou = flRequest.getRequestParameterOrAttribute("ou"); // id Map searchCriteria = new Hashtable(); if (sc != null) { searchCriteria = WebUtils.parseQueryString(sc); } request.setAttribute("selectedTab", "0"); String param = flRequest.getRequestParameterOrAttribute("param"); String paramLngID = flRequest.getSearchCriteria("LngID"); if ("".equals(paramLngID) || paramLngID == null) paramLngID = dico.getRefIdByCode("FaqLngID","FR"); String paramQuery = flRequest.getSearchCriteria("query"); String paramCat1 = flRequest.getSearchCriteria("paramCat1"); String paramCat2 = flRequest.getSearchCriteria("paramCat2"); String paramCat3 = flRequest.getSearchCriteria("paramCat3"); String strKeyID = flRequest.getSearchCriteria("KeyID"); Vector vectKeyID = Utils.explodeList(strKeyID, ";"); if (vectKeyID==null) vectKeyID = new Vector(); Vector lngList = dico.getRefList(session,"FaqLngID"); String nb = flRequest.getSearchCriteria("$$nb"); String strQuery = "select distinct FahCatLev1 from FAQHeader where not(FahCatLev1 is null) order by FahCatLev1"; String fields[] = new String[] {"FahCatLev1"}; Vector listCatNiv1 = null; try{ listCatNiv1 = FAQBean.listSQL(context, fields, strQuery); }catch(Exception e){ listCatNiv1 = new Vector(); } String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String au = flRequest.getRequestParameterOrAttribute("au"); //from common/list_criteria.jsp EdealBigTabsNavigation ebtn = new EdealBigTabsNavigation(request); Vector pagination = (Vector)flRequest.getAttribute("Pagination"); boolean hasPagination = pagination != null ? pagination.size() > 1 : false; ListBean.SearchZone searchZone = null; ListBean.ResultZone resultZone=null; try { searchZone = List.getSearchZone(); resultZone = List.getResultZone(); } catch (Exception e) { } String includedListScript=null; if (resultZone!=null) { includedListScript=ListHelper.processXmlListScriptExtension(context, session, resultZone.getScript()); } // Is this our first time in here? (ie, we're not navigating back from an object) boolean isFirstTimeIn = !ebtn.isDoList(); String gridName=Utils.formatToWeb(lc, true); EdealBigTabsNavigation bTabNav = new EdealBigTabsNavigation(request); bTabNav.setBigTabsParameterValue(BigTabsParams.NameSearchGridJs, "_grid__" + gridName + "_js_"); String pageIndex=flRequest.getSearchCriteria("$$idx",gridName,false); pageIndex=StringUtils.isEmpty(pageIndex)?"0":pageIndex; String pagePagination=flRequest.getSearchCriteria("$$nb",gridName,false); pagePagination=StringUtils.isEmpty(pagePagination)?(String)pagination.firstElement():pagePagination; //End common/list_criteria.jsp %>
<%@include file="/common/tabs.jsp" %>
>
">
<% Vector vectRefList = dico.getRefList(session, "FahKeyID"); for(int i = 0; i < vectRefList.size(); i++) { Vector vectRef = (Vector)vectRefList.elementAt(i); String refID = (String)vectRef.elementAt(0); String refDisp = (String)vectRef.elementAt(1); if((i % 4) == 0) { %> <%}%> <%if((i % 4) == 3) { %> <%} } %>
" name="<%= "KeyID"%>" type="checkbox" value="<%= refID %>"<%= vectKeyID.contains(refID) ? " checked" : "" %>>
 
> >