Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\sales\enterprise\read_tabtextes.jsp
<%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.helper.ContextHelper" %> <%@page import="com.edeal.frontline.helper.custom.EnterpriseHelper"%> <%@ page import="com.edeal.frontline.*" %> <%@ page import="java.util.*" %> <%@ page import="com.edeal.frontline.grid.GridData" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <!-- http://u-project2.umanis.com/view.php?id=48902 | Ajout de l'onglet : Textes | Hamza L --> <%-- Taux de générosité --%> <% FlRequest flRequest=new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = flRequest.getContext().getDataDictionary(); String id = flRequest.getParameter("id"); %> <table class="container" cellpadding="0"> <tr><td colspan="3" class="titreInterneSmalltabs"><fl:getMessage code="LF037" alt="Textes"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> </table> <fl:access name="Textes_" operation="create"> <form name="textes" class="fieldTable" id="textes"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <span class="criteriaLabel"> <fl:getMessage code="FF0CB" alt="Type de texte"/> </span> <% try { Vector<Vector<String>> values = dico.getRefList(session, "Tx_", "Te1"); %> <select name="TxtTypID" id="TxtTypID" style="background-color: #FDCBCC"> <% if (values != null) { for (Vector<String> row : values) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> <fl:getMessage code="F303F" alt="Langue"/> </span> <% try { Vector<Vector<String>> values1 = dico.getRefList(session, "Lna", "Te1"); %> <select name="TxtLngID" id="TxtLngID" style="background-color: #FDCBCC"> <% if (values1 != null) { for (Vector<String> row : values1) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> <span class="criteriaLabel"> <fl:getMessage code="FF2DC" alt="Traduit par"/> </span> <% try { Vector<Vector<String>> values2 = dico.getRefList(request.getSession(), "Tr_", "Te1"); %> <select name="TxtTrTypID" id="TxtTrTypID" style="background-color: #FDCBCC"> <% if (values2 != null) { for (Vector<String> row : values2) { String refID = row.firstElement(); String refDisp = row.elementAt(1); %> <option value="<%= Utils.formatToWeb(refID, true) %>"><%= Utils.formatToWeb(refDisp, false) %></option> <% } } %> </select> <% } catch (FrontlineException fle) { } %> </td> <td class="smallFieldPart"><a href="javascript:addTexte()"> <img src="<fl:webapp/>/icons/ico/save_all_long.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a> </td> </tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr><td colspan="3" class="dataValue"><fl:getMessage code="F203D" alt="Contenu"/></td></tr> <tr><td colspan="3" class="dataLabel"> </td></tr> <tr> <td> <textarea id="TxtContent" name="TxtContent" class="input textarea" style="width:100%; width:100%;"></textarea> </td> </tr> </table> </form> </fl:access> <fl:grid name="TEXTES" ajaxUrl="<%= \"/embedded_list_ajax.fl?code=TEXTES&TxtTiersID=\" + id %>"/> <script type="text/javascript"> function addTexte() { var f = window.document.textes; var args = '&TxtTiersID=<%=id%>'; args += '&Type=Textes_'; console.log(f.TxtLngID.value); if (f.TxtLngID.value != '') { args += '&TxtLngID=' + encodeURIComponent(f.TxtLngID.value); } if (f.TxtTypID.value != '') { args += '&TxtTypID=' + encodeURIComponent(f.TxtTypID.value); } if (f.TxtContent.value != '') { args += '&TxtContent=' + encodeURIComponent(f.TxtContent.value); } if (f.TxtTrTypID.value != '') { args += '&TxtTrTypID=' + encodeURIComponent(f.TxtTrTypID.value); } //TxtTrTypID //var ajaxURL = '<fl:link url="/save_object_ajax.fl?type=Room_&$$presentFields="/>' + args; var ajaxURL = '<fl:link url="/save_custom_ajax.fl?"/>' + args; doAjax(ajaxURL, waitNrefreshSLTextes); } function waitNrefreshSLTextes(arrIndex) { if(eDealXmlhttpArr[arrIndex].readyState == 4) { var rtrn = trimStr(eDealXmlhttpArr[arrIndex].responseText); if (rtrn == '') { refreshTxts(); window.scrollTo(0,1000); } else { hideWaiting(); alert('<fl:getMessage code="MF0BE" alt="Impossible de supprimer le texte seléctionné." js="true"/>'); } } } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de