<% /****************************************************************************** * Copyright (c) 2000-2005 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. ******************************************************************************/ %><%@page session="true" import="com.edeal.frontline.*,java.util.*,java.text.*"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% 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(); FlLocale locale = FlLocale.getInstance(session); String id=null; try { id = FormQuestion.getID(); } catch (FieldNotInitializedException fnie) { } String type=""; String idType=null; try{ idType = FormQuestion.getFqtType(); }catch(FieldNotInitializedException fnie){} if (idType != null){ type = dico.getRefCode("FqtType", idType); } int associatedTxt = 0; try{ associatedTxt = FormQuestion.getFqtAssociatedText(); }catch(FieldNotInitializedException fnie){ associatedTxt = 0; } String typeDisp=""; try{ typeDisp = dico.getRefCode("FqtDispType", FormQuestion.getFqtDispType()); }catch(FieldNotInitializedException fnie){} int hasOther = 0; try{ hasOther = FormQuestion.getFqtHasOther(); }catch(FieldNotInitializedException fnie){ hasOther = 0; } String label = null; try { label = (String)FormQuestion.getCustomProperty("FqtLabelCode_"); } catch (FieldNotInitializedException fnie) { } %> " ou="<%= \"/read_formquestion.fl\" + (id != null ? \"?id=\" + id : \"\")%>">
<% if ("FRE".equals(type)){%> <%}else if ("REF".equals(type)){%> <%}%> <% //A modifier aussi if ("REF".equals(type)||("LST".equals(type))) {%> <%}%>
<% if (associatedTxt == 0) { %> <% } else { %> <% } %>
<%-- --%> <% //A modifier pour avoir vrai ou faux if ("REF".equals(type)||("LST".equals(type))){%> <%}%> <% if ((associatedTxt==0)&&("LST".equals(type))&&(("RADIO".equals(typeDisp)||"CHECK".equals(typeDisp)))){%> <%}%>
<% if (hasOther == 0) { %> <% } else { %> <% } %>
<%if ("RADIO".equals(typeDisp)||"CHECK".equals(typeDisp)){%> <%}%>
<% if ("LST".equals(type)){ %> "> <% String field ="FqtLstAnswer0"; for (int i=0; i<15; i++){ field = "FqtLstAnswer"+i; %> <% if (i == 0 || i == 5 || i == 10) { %> <% if (i < 14) { %> <% } %> <% } %> <% } %>
<% } %> <% try { Class mclas = Class.forName("com.edeal.frontline.FormQuestionBean"); java.lang.reflect.Method meth = mclas.getMethod("get" + field, null); meth.invoke(FormQuestion, null); %> <% } catch (java.lang.reflect.InvocationTargetException ite) { %> <% } %> <% if (i == 4 || i == 9 || i == 14) { %>
<% } // End if type == LST %> <% if ("REF".equals(type)){ String fqtRefTable = null; try { fqtRefTable = FormQuestion.getFqtRefTable(); } catch (FieldNotInitializedException fnie) { } Vector listRef = null; String refName=null; try{ listRef = dico.getRefList(session, fqtRefTable, "Te1"); }catch(FrontlineException fe){} if (listRef!=null){ %> ">
<%-- <% for(int i=0; i <% } %> --%>
<%= refName%>
<% } } //End if type = REF %>