Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\marketing\formresponse\edit.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. * * ******************************************************************************/ %><%@ page session="true" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <%@ page import="java.lang.reflect.*" %> <%@ page import="com.edeal.frontline.navigation.*" %> <%@ page import="java.util.LinkedHashMap" %> <%@ page import="com.edeal.frontline.helper.custom.EventHelper" %> <%@ page import="java.util.Iterator" %> <%@ page import="com.edeal.frontline.helper.EventBaseHelper.StatusType" %> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.FormBean" id="Form" scope="request"/> <jsp:useBean class="com.edeal.frontline.FormResponseBean" id="FormResponse" scope="request"/> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); String contextPath = (String) session.getAttribute("contextPath"); String parentTarget = " target=\"_parent\" "; String blankTarget = " target=\"_blank\" "; FlContext context = null; FlRequest flRequest = new FlRequest(request); String id = (String) flRequest.getRequestParameterOrAttribute("id"); logger.debug("xxxxxxxxxxxxxxxxxx"+id); if (contextPath != null) { context = Frontline.getContext(contextPath); } else { context = Frontline.getContext(request.getContextPath()); } DataDictionary dico = context.getDataDictionary(); int idxTab = 1; String formID = flRequest.getRequestParameterOrAttribute("formID"); String perID = (String) flRequest.getRequestParameterOrAttribute("perID"); boolean isPreview = flRequest.getRequestParameterOrAttribute("preview") != null; LinkedHashMap<String, String> statusParIDAndDisplay = new LinkedHashMap<String, String>(); if (isPreview) { %><html><head><% if (perID == null) { %><title><fl:getMessage code="L6147" alt="Prévisualiser"/></title> <% } } %> <script language="javascript"> var shownIdx = <%= idxTab %>; function doChangeTab(idx) { if (idx != shownIdx && document.getElementById('_tab' + idx) && document.getElementById('_tab' + shownIdx) && document.getElementById('_content' + idx) && document.getElementById('_content' + shownIdx)) { document.getElementById('_content' + idx).style.display = 'block'; document.getElementById('_content' + shownIdx).style.display = 'none'; shownIdx = idx; } } function doMyChangeTab(idx) { if (idx != shownIdx && document.getElementById('_content' + idx) && document.getElementById('_content' + shownIdx)) { document.getElementById('_content' + idx).style.display = 'block'; document.getElementById('_content' + shownIdx).style.display = 'none'; shownIdx = idx; } } function doSubmit() { document.forms[0].submit(); } function swapSmallTabs(tabSetName, inOut, sTabPos) { var selectedSTab = eval(tabSetName + "_selectedSTab"); var nbSTabs = eval(tabSetName + "_nbSTabs"); if (selectedSTab == sTabPos) { return; } var csTab = document.getElementById(tabSetName + "_stab" + sTabPos); var leftImgName = tabSetName + "_swapPict" + (sTabPos == 0 ? "" : sTabPos - 1); var rightImgName = tabSetName + "_swapPict" + sTabPos; if (inOut == "out") { csTab.style.backgroundImage = "url(<fl:webapp/>/icons/smalltabs/bg_unselect.gif)"; //cell2_fd.gif }else { // in csTab.style.backgroundImage = "url(<fl:webapp/>/icons/smalltabs/bg_select.gif)"; } if (sTabPos == 0) { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_n-g.gif"; //cell1_fdgris.gif } else { if (selectedSTab == (sTabPos - 1) ) { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_w-g.gif"; //cell_interblancgris.gif } else { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_g-g.gif"; //cell3_intergris.gif } } if (sTabPos == nbSTabs - 1) { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_g-n.gif"; //cellfin_gris.gif } else { if (selectedSTab == (sTabPos + 1) ) { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_g-w.gif"; //cell_intergrisblanc.gif } else { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_g-g.gif"; //cell3_intergris.gif } } if (inOut == "in") { csTab.style.backgroundImage = "url(<fl:webapp/>/icons/smalltabs/bg_select.gif)"; //cell2_fdblanc.gif if (sTabPos == 0) { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_n-w.gif"; //cell1_blanc.gif } else { if (selectedSTab == (sTabPos - 1) ) { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_w-w.gif"; //cell_interblancs.gif } else { document.images[leftImgName].src = "<fl:webapp/>/icons/smalltabs/bd_g-w.gif"; //cell_intergrisblanc.gif } } if (sTabPos == nbSTabs - 1) { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_w-n.gif"; //cellfin_blanc.gif } else { if (selectedSTab == (sTabPos + 1) ) { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_w-w.gif"; //cell_interblancs.gif } else { document.images[rightImgName].src = "<fl:webapp/>/icons/smalltabs/bd_w-g.gif"; //cell_interblancgris.gif } } } } function selectSmallTab(tabSetName, sTabPos) { var selectedSTab = eval(tabSetName + "_selectedSTab"); var nbSTabs = eval(tabSetName + "_nbSTabs"); if (selectedSTab == sTabPos) { return; } // Changement de l'onglet var prevTab = document.getElementById(tabSetName + "_stab" + selectedSTab); prevTab.className = "stabunselected"; var nextTab = document.getElementById(tabSetName + "_stab" + sTabPos); nextTab.className = "stabselected"; eval(tabSetName + "_selectedSTab = " + sTabPos + ";"); swapSmallTabs(tabSetName, "out", selectedSTab); // Visibilite des contenus var prevDivId = eval(tabSetName + "_divIds[" + selectedSTab + "]"); var nextDivId = eval(tabSetName + "_divIds[" + sTabPos + "]"); var prevDiv = document.getElementById(prevDivId); var nextDiv = document.getElementById(nextDivId); prevDiv.style.display = "none"; nextDiv.style.display = "inline"; // Execution du JavaScript var jsEval = eval(tabSetName + "_jsEvals[" + sTabPos + "]"); if (jsEval && jsEval != "") { eval(jsEval); } } </script> <% if (isPreview) { %> </head> <body class="popup_body"> <% } String[][] queryForm = {{"FrmID = " + Utils.formatToSQL(context, formID)}}; String[] fieldsForm = {"FrmID", "FrmLabel" , "FrmSeqNum" , "FrmBasicQuestion0" , "FrmBasicQuestion1" , "FrmBasicQuestion2" , "FrmEventID", "FrmTabMode", "FrmParStatusRule", "FrmParStatus"}; String formLabel = "???"; String formNumber = "???"; String formEventID = null; String frmParStatusRule = null; String frmParStatus = null; boolean formTabMode = false; Vector listForm = FormBean.listSummary(session , fieldsForm , queryForm); if (listForm != null && listForm.size() > 0) { formEventID = (String) ((Hashtable) listForm.elementAt(0)).get("FrmEventID"); formLabel = (String) ((Hashtable) listForm.elementAt(0)).get("FrmLabel"); Integer formNumberI = (Integer) ((Hashtable) listForm.elementAt(0)).get("FrmSeqNum"); if (formNumberI != null) { DecimalFormat df = FlLocale.getInstance(session).getDecimalFormat("0000"); formNumber = df.format((long) (formNumberI.intValue())); } formTabMode = ((Hashtable)listForm.elementAt(0)).containsKey("FrmTabMode") ? ((Boolean)((Hashtable)listForm.elementAt(0)).get("FrmTabMode")).booleanValue() : false; frmParStatusRule = (String) ((Hashtable) listForm.elementAt(0)).get("FrmParStatusRule"); frmParStatus = (String) ((Hashtable) listForm.elementAt(0)).get("FrmParStatus"); } String[][] queryPer = {{ "PerID = " + Utils.formatToSQL(context, perID)}}; String[] fieldsPer = {"PerID", "PerCivID:Val" , "PerName" , "PerFstName"}; String perCompleteName = ""; Vector listPer = PersonBean.listSummary(session , fieldsPer , queryPer); if (listPer != null && listPer.size() > 0) { String perCiv = (String) ((Hashtable) listPer.elementAt(0)).get("PerCivID:Val"); String perName = (String) ((Hashtable) listPer.elementAt(0)).get("PerName"); String perFstName = (String) ((Hashtable) listPer.elementAt(0)).get("PerFstName"); perCompleteName = (perCiv != null ? perCiv : "") + " " + (perFstName != null ? perFstName : "") + " " + (perName != null ? perName : ""); } //On regarde si on doit poser la question de l'état pour l'evenement boolean askForParStatus = false; String[][] queryPvt = {{"PvtEventID = " + Utils.formatToSQL(context, formEventID) , "PvtPersonID = " + Utils.formatToSQL(context, perID)}}; String[] fieldsPvt = {"PvtID"}; Vector listPvt = PersonEventBean.listSummary(session, fieldsPvt, queryPvt); if (frmParStatusRule == null || "NONE".equals(dico.getRefCode("FrmParStatusRule" , frmParStatusRule)) ) { if (listPvt == null || listPvt.size() == 0) { askForParStatus = true; } } else if ( "MANU".equals(dico.getRefCode("FrmParStatusRule" , frmParStatusRule)) ) { askForParStatus = true; } if (askForParStatus) { statusParIDAndDisplay = EventHelper.getListStatusByEvent(context, StatusType.PARTICIPATION, formEventID); } %> <fl:form action="/save_formresponse.fl" bean="Form"> <fl:bigTabs objectTitle="<%= formNumber + \"-\" + formLabel %>" ou="<%=\"/find_form_pers.fl?selectedTab=1&FrpFormID=\" + formID + \"&FrpPersonID=\" + perID + \"&EventID=\" + formEventID %>"> <input type="hidden" name="FormID" value="<%= formID %>"> <input type="hidden" name="PerID" value="<%= perID %>"> <input type="hidden" name="EventID" value="<%= formEventID %>"> <table class="container" cellpadding="0"> <% if (perID != null) { %> <tr class="fieldline"> <td colspan="3" class="titreFiche"> <a href="<fl:link url="<%= \"/read_person.fl?id=\" + perID %>"/>" target="_blank"><%= perCompleteName %><a> </td> </tr> <% } else { %> <tr class="fieldline"> <td colspan="3" class="titreFiche"><%= perCompleteName %></td> </tr> <% } %> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <% if (askForParStatus) { %> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L8186" alt="Participation"/> : </td> <td class="dataValue"> <% if (statusParIDAndDisplay != null && !statusParIDAndDisplay.isEmpty()) { Iterator<String> iter = statusParIDAndDisplay.keySet().iterator(); while (iter.hasNext()) { String currStatusID = iter.next(); String currStatusDisplay = statusParIDAndDisplay.get(currStatusID); %> <input type="radio" value="<%= currStatusID %>" name="statusPar" id ="statusPar" <%= currStatusID.equals(frmParStatus) ? "checked" : "" %>><%= currStatusDisplay %> <br> <% } } %> </td> </tr> <% } else { if ( frmParStatusRule != null && "AUTO".equals(dico.getRefCode("FrmParStatusRule" , frmParStatusRule)) ) { %> <tr class="fieldline"><td colspan="2"><input type="hidden" name="statusPar" value="<%= frmParStatus == null ? "" : frmParStatus %>" ></td></tr> <% } } %> </table> </td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr class="ligne_separation_couleur"><td colspan="3"></td></tr> <tr class="ligne_separation"><td colspan="3"></td></tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <% String[][] query = {{"LfqFormID = " + Utils.formatToSQL(context, formID)}}; String[] fields = {"LfqID" , "LfqFormQuestionID" , "LfqParagraph", "LfqPosition"}; String[] orderBy = {"LfqPosition"}; Vector lfqList = LinkFormQuestionBean.listSummary(session, fields, query, orderBy); if (lfqList != null && lfqList.size() > 0) { for (int i=0 ; i < lfqList.size() ; i++) { Hashtable line = (Hashtable) lfqList.elementAt(i); String questionID = (String) line.get("LfqFormQuestionID"); String paragraph = (String) line.get("LfqParagraph"); Integer lfqPosI = (Integer) line.get("LfqPosition"); String lfqID = (String) line.get("LfqID"); int lfqPosition = 99; if (lfqPosI != null) { lfqPosition = lfqPosI.intValue(); } String lfqPos = Integer.toString(lfqPosition); if (paragraph != null) { %></table> <% if (formTabMode) { if (idxTab == 1) { String[] tabFields = {"LfqID" , "LfqParagraph", "LfqPosition"}; String[][] tabQuery = {{"LfqFormID = " + Utils.formatToSQL(context, formID), "LfqParagraph <> null"}}; String[] tabOrderBy = {"LfqPosition"}; Vector tabList = LinkFormQuestionBean.listSummary(session, tabFields, tabQuery, tabOrderBy); if (tabList != null && !tabList.isEmpty()) { %> <table style="width: 100%"> <tr> <td style="width: 100%"> <script language="JavaScript" type="text/JavaScript"> parag_selectedSTab = 0; parag_nbSTabs = <%=tabList.size()%>; //parag_divIds = new Array('MyDiv1', 'MyDiv2', 'MyDiv3'); parag_divIds = new Array(<%=tabList.size()%>); parag_jsEvals = new Array(<%=tabList.size()%>); <% for (int a=0; a<tabList.size(); a++){ %> parag_divIds[<%=a%>] = '<%="MyDiv"+(a+1)%>'; parag_jsEvals[<%=a%>] = '<%=Utils.formatToJavascript("javascript:doMyChangeTab(\'"+(a+1)+"\')")%>'; <% } %> </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td width="98%" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <% String nb = "" + (100 / tabList.size()) + "%"; for(int k = 0; k < tabList.size(); k++) { if (k == 0){ %> <td width="1%" height="26"><img src="<fl:webapp/>/icons/smalltabs/bd_n-w.gif" width="16" height="26" border="0" name="parag_swapPict"></td> <% }%> <td id="<%= "parag_stab" + k %>" onmouseup="<%="selectSmallTab('parag', " + k + ");"%>" class="<%= k == 0 ? "stabselected" : "stabunselected"%>" width="<%= nb %>" onmouseout="<%="swapSmallTabs('parag', 'out', " + k + ");"%>" onmouseover="<%="swapSmallTabs('parag', 'in', " + k + ");"%>"> <a href="<%= "javascript:selectSmallTab('parag', " + k + ");"%>"><%= "" + (String)((Hashtable)tabList.elementAt(k)).get("LfqParagraph")%></a> </td> <% if (k == 0){ %> <td width="1%"><img src="<fl:webapp/>/icons/smalltabs/bd_w-g.gif" width="23" height="26" name="parag_swapPict0"></td> <% } else if (k + 1 < tabList.size()){ %> <td width="1%"><img src="<fl:webapp/>/icons/smalltabs/bd_g-g.gif" width="23" height="26" name=<%="parag_swapPict"+k%>></td> <% } else { %> <td width="1%"><img src="<fl:webapp/>/icons/smalltabs/bd_g-n.gif" width="15" height="26" name=<%="parag_swapPict"+k%>></td> <% } } %> <!--</tr> </table> <!-- faire autant de div que de ligne Ajouter des spacers entre les colonnes --> <% for (int k = 0; k<tabList.size(); k++){ %> <div id="<%= "MyDiv" +( k + 1) %>" style="<%= k == 0 ? "display:inline" : "display:none"%> "> <div> </div> </div> <%}%> </td></tr></table> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0" > <tr> <td style="width: 13px; height: 13px; background: url(<fl:webapp/>/icons/smalltabs/b_left.gif)"></td> <td> <% } }//End idx==1 if(idxTab > 1) {%> </span> <%}%> <span id="_content<%= idxTab %>" style="display: <%= idxTab == 1 ? "block" : "none" %>"> <table width="98%" align="center" cellspacing="3"> <tr class="ligne_separation"><td> </td></tr> <% idxTab++;%> <% } // fin formTabMode else { //Idx tab = 0 --> on met un espace %> <table style="width:100%" cellspacing="3"> <tr class="ligne_separation"><td> </td></tr> <tr class="titrePartie"> <td colspan="2" style="width:100%"><%=paragraph%></td> </tr> <% } } else { FormQuestionBean curQuestion = null; try { curQuestion = new FormQuestionBean(questionID , session); } catch (AccessDeniedException ade) { } catch (FrontlineException fex) { } if (curQuestion != null) { String qLabel = null; try { qLabel = curQuestion.getFqtLabel(); } catch (FieldNotInitializedException fnie) { } %> <tr> <td class="dataLabel" width="20%" style="vertical-align: top; color: #000000;" nowrap> <input type="hidden" name="<%= lfqPos %>_LfqID" value="<%= lfqID %>"> <%= qLabel == null ? " " : qLabel %> </td> <% String qType = null; try { qType = curQuestion.getFqtType(); } catch (FieldNotInitializedException fnie) { } boolean isFreeText = qType.equals(dico.getRefIdByCode("FqtType" , "FRE")); if ( qType == null || isFreeText) { int inputSize = 0; try { inputSize = curQuestion.getFqtInputSize(); } catch (FieldNotInitializedException fnie) { } %> <td width="80%"> <% // If we have chosen a free text zone, and not set a size, consider it is a textarea. if (isFreeText && (inputSize == 0)) { %> <textarea id="<%= lfqPos %>_ResponseTxt" name="<%= lfqPos %>_ResponseTxt" style="width: 100%;" class="input textarea"></textarea> <% } else { %> <input type="text" name="<%= lfqPos %>_ResponseTxt" value="" size="<%= inputSize == 0 ? "20" : Integer.toString(inputSize) %>"> <% } %> </td> </tr> <% }else if(qType != null && "INT".equals(dico.getRefCode("FqtType" , qType))){ %> <td width="80%" class="dataValue dataFormValue" nowrap style="vertical-align: middle;"> <fl:getMessage code="L621C" alt="De"/> <input type="text" name="<%= lfqPos %>_ResponseInt" value="" size="20"> </td><td width="80%" class="dataValue dataFormValue" nowrap style="vertical-align: middle;"> <fl:getMessage code="L8254" alt="À"/> <input type="text" name="<%= lfqPos %>_ResponseInt" value="" size="20"> </td></tr> <% } else { //Pas Texte libre, c-a-d REF ou LST boolean isREF = false; boolean isLST = false; if ( qType.equals(dico.getRefIdByCode("FqtType" , "REF")) ) { isREF = true; } if ( qType.equals(dico.getRefIdByCode("FqtType" , "LST")) ) { isLST = true; } boolean isCombo = true; boolean isRadio = false; boolean isCheck = false; String dispType = null; try { dispType = curQuestion.getFqtDispType(); } catch (FieldNotInitializedException fnie) { } if (dispType != null && dispType.equals(dico.getRefIdByCode("FqtDispType", "RADIO"))) { isCombo = false; isRadio = true; } if (dispType != null && dispType.equals(dico.getRefIdByCode("FqtDispType", "CHECK"))) { isCombo = false; isCheck = true; } int complementaryText = 0; try { complementaryText = curQuestion.getFqtAssociatedText(); } catch (FieldNotInitializedException fnie) { } int nbColumn = 1; try { nbColumn = curQuestion.getFqtColumnsNb(); } catch (FieldNotInitializedException fnie) { } int hasOther = 0; try { hasOther = curQuestion.getFqtHasOther(); } catch (FieldNotInitializedException fnie) { } String refTableID = null; try { refTableID = curQuestion.getFqtRefTable(); } catch (FieldNotInitializedException fnie) { } Vector listSelectedRef = null; try{ listSelectedRef = (Vector)curQuestion.getCustomProperty("FqtRefsDisp_"); }catch(FieldNotInitializedException e){} Vector listRef2Init = null; try{ listRef2Init = (Vector)curQuestion.getCustomProperty("FqtRefsInit_"); }catch(FieldNotInitializedException e){} Vector possibleResponses = new Vector(); if ( isLST ) { for (int j=0 ; j < 15 ; j++) { String lstAnswer = null; try { Method getter = Class.forName("com.edeal.frontline.FormQuestionBean").getMethod("getFqtLstAnswer" + j , null); lstAnswer = (String) getter.invoke(curQuestion , null); } catch (Exception e) { } if (lstAnswer != null) { Vector oneResponse = new Vector(); oneResponse.add(Integer.toString(j)); oneResponse.add(lstAnswer); possibleResponses.add(oneResponse); } } } else { try { possibleResponses = dico.getRefList(session, refTableID , "Te1"); if(listSelectedRef != null && listSelectedRef.size() > 0){ int k = 0; for(int h=0; h<possibleResponses.size(); h++){ String responseChoice = (String) ((Vector) possibleResponses.elementAt(h)).elementAt(0); if(!listSelectedRef.contains(responseChoice)){ possibleResponses.removeElementAt(h); k++; } } } } catch (FrontlineException fe) { logger.error("DBG: dico.getRefList a lancé une exception : " + fe.getMessage()); } } if (isCombo) { %> <td class="dataValue" width="80%"> <select name="<%= lfqPos %>_<%= isLST ? "ResponsePosition" : "ResponseRefID" %>"> <% for (int j=0 ; j < possibleResponses.size() ; j++) { String responseChoice = (String) ((Vector) possibleResponses.elementAt(j)).elementAt(0); String responseLabel = (String) ((Vector) possibleResponses.elementAt(j)).elementAt(1); if(listRef2Init != null && listRef2Init.contains(responseChoice)){ %> <option value="<%= responseChoice %>" selected><%= responseLabel %></option> <% }else{ %> <option value="<%= responseChoice %>"><%= responseLabel %></option> <% } } %> </select> <% if (complementaryText > 0) { %> <input type="text" name="<%= lfqPos %>_ResponseComplementaryText_Any" value="" size="<%= Integer.toString(complementaryText) %>"> <% } %> </td> </tr> <% } else { // pas combo , c-a-d checkbox ou radio String tagType = "checkbox"; if (isRadio) { tagType = "radio"; } %> <td width="80%"> <table border="0" width="100%"> <tr valign="top"> <% int nbResByColumn = possibleResponses.size() / nbColumn; if ( nbColumn * nbResByColumn < possibleResponses.size() ) nbResByColumn++; int cptPossibleResponse = 0; for (int j = 0 ; j < possibleResponses.size() ; j++) { String responseChoice = (String) ((Vector) possibleResponses.elementAt(j)).elementAt(0); String responseLabel = (String) ((Vector) possibleResponses.elementAt(j)).elementAt(1); if (cptPossibleResponse % nbResByColumn == 0) { if (cptPossibleResponse > 0) { %> </td> <% } %> <td class="dataValue dataFormValue"> <label><input type="<%= tagType %>" name="<%= lfqPos %>_<%= isLST ? "ResponsePosition" : "ResponseRefID" %>" value="<%= responseChoice %>" <%= (listRef2Init != null && listRef2Init.contains(responseChoice)) ? "checked" : "" %>><%= responseLabel %></label> <% } else { %> <br><label><input type="<%= tagType %>" name="<%= lfqPos %>_<%= isLST ? "ResponsePosition" : "ResponseRefID" %>" value="<%= responseChoice %>" <%= (listRef2Init != null && listRef2Init.contains(responseChoice)) ? "checked" : "" %>><%= responseLabel %></label> <% } if ( (complementaryText > 0) || (hasOther > 0 && j == possibleResponses.size() - 1) ) { %> <input type="text" name="<%= lfqPos %>_ResponseComplementaryText_<%= responseChoice %>" value="" size="<%= complementaryText > 0 ? Integer.toString(complementaryText) : Integer.toString(hasOther) %>"> <% } cptPossibleResponse++; } %> </td> </tr> </table> </td> </tr> <% } } }//currQuestion != null }//N est pas un paragraph }//End for }//If list != null %></table> <% if(formTabMode) { %> </td> <td style="width: 15px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_right.gif)"></td> </tr> <tr> <td style="width: 13px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_bottom-left.gif)"></td> <td style="background: url(<fl:webapp/>/icons/smalltabs/b_bottom.gif)"></td> <td style="width: 15px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_bottom-right.gif)"></td> </tr></table> </td></tr> </table> </span> <% } %> <script language="javascript"> window.focus(); </script> </fl:bigTabs> </fl:form> <% if (isPreview) { %> <div align="center"> <a href="javaScript:window.top.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </div> </body> </html> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de