Edit C:\galaxie\Back\galaxie\service\faqheader\read.jsp
<% /****************************************************************************** * 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.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% FlRequest flRquest = new FlRequest(request); FlContext context = flRquest.getContext(); DataDictionary dico = context.getDataDictionary(); FAQHeaderBean obj = (FAQHeaderBean)request.getAttribute("FAQHeader"); try { obj.getFahCreID(); } catch (FieldNotInitializedException ex) { obj.setFahCreID((String)session.getAttribute("actorID")); } try{ obj.getFahActID(); }catch(FieldNotInitializedException fnie){ obj.setFahActID((String)session.getAttribute("actorID")); } String fahID = null; try { fahID = obj.getID(); } catch (FieldNotInitializedException ex) { fahID = flRquest.getRequestParameterOrAttribute("id"); } Hashtable FAQList = new Hashtable(); // FAQ déjà rattaché au header try { String[][] query = {{"FaqFahID = " + Utils.formatToSQL(context, obj.getID())}}; Vector vectFAQList = FAQBean.list(context, query); for(int i = 0; i < vectFAQList.size(); i++) { FAQBean faq = (FAQBean)vectFAQList.elementAt(i); try { FAQList.put(faq.getFaqLngID(), faq); } catch (FieldNotInitializedException ex) { } } } catch (FieldNotInitializedException ex) { } // A mettre dans un initialiseur SolicitationBean solBean = null; String solID = Utils.getRequestParameter(context, request, "SolID"); String cat =null; if(solID != null) { try { solBean = new SolicitationBean(solID, session); String catSol = solBean.getSolCatID(); if (catSol!= null) cat = (String) dico.getRefDisp(session, "SolCatID",catSol); if (cat != null) obj.setFahCatLev1(cat); } catch (Exception ex) { } } %> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L1055\", false, true, \"FAQ\")%>" ou="<%=\"/read_faqheader.fl\"+(fahID!=null ? \"?id=\"+fahID :\"\")%>"> <table class="container" cellpadding="0"> <tr> <td colspan="3" class="titreFiche"><fl:getProperty name="FAQHeader" property="FahCatLev1" alt=""/></td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="FahCatLev2"/> <fl:fieldRead property="FahCatLev3"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="FahActID" bean="true" href="true" disp="<%=flRquest.computeURL(\"/read_actor.fl\", false, false, true)%>"/> <fl:fieldRead property="FahKeyID" alt=""/> </table> </td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> </table> <fl:smallTabs name="faqQR"> <% Vector vectLngList = dico.getRefList(session, "FaqLngID"); FAQBean curFaq = null; String curFaqID = null; String curFaqQuestion = null; String curFaqResponse = null; for(int i = 0; i < vectLngList.size(); i++) { Vector vectLng = (Vector)vectLngList.elementAt(i); String lngID = (String)vectLng.elementAt(0); String lngDisp = (String)vectLng.elementAt(1); curFaqID = null; curFaqQuestion = null; curFaqResponse = null; if(FAQList.get(lngID) != null) { curFaq = (FAQBean) FAQList.get(lngID); try{ curFaqID = curFaq.getID(); }catch(Exception e){ curFaqID=""; } try{ curFaqQuestion = curFaq.getFaqQuestion(); }catch(Exception e){ curFaqQuestion=""; } try{ curFaqResponse = curFaq.getFaqResponse(); }catch(Exception e){ curFaqResponse = ""; } }else{ curFaqID = ""; curFaqQuestion = ""; curFaqResponse = ""; } %> <fl:sTab id="<%=\"STFaq\"+lngDisp%>" title="<%=lngDisp%>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="titreInterneSmalltabs"><fl:getMessage code="L606D" alt="Questions"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"> <%=curFaqQuestion%> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titreInterneSmalltabs"><fl:getMessage code="L641B" alt="Réponse"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"> <%=curFaqResponse%> </td> </tr> </table> <%-- <fl:notes name="Questions" title="<%= Utils.getMessage(session, \"L606D\", \"Questions\") %>"><%=curFaqQuestion%></fl:notes> <fl:notes name="Réponse" title="<%= Utils.getMessage(session, \"L641B\", \"Réponse\") %>"><%=curFaqResponse%></fl:notes> --%> </fl:sTab> <% } %> </fl:smallTabs> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de