Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\kbase\faqheader\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. * * CVS Info for $RCSfile$ * * $Revision$ * $Author$ $Date$ ******************************************************************************/ %> <%@page contentType="text/html; charset=UTF-8" session="true"%> <%@page session="true" import="com.edeal.frontline.*"%> <%@page session="true" import="java.util.*"%> <%@page session="true" import="com.edeal.frontline.navigation.*" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.FAQHeaderBean" id="FAQHeader" scope="request"/> <% 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(); //récupérer la langue en cours FlLocale locale = FlLocale.getInstance(session); String langageID = locale.getLanguageID(); //si la langue dans fllocal est null alors français pas defaut if(langageID == null) { try { langageID = dico.getRefIdByCode("Lna", "Val", "fr_FR"); } catch (Exception ex) { } } String fahID = null; try { fahID = FAQHeader.getID(); } catch (FieldNotInitializedException e) { } String tagQuery = "(TagLngID='" + langageID + "' OR TagLngID is null)"; tagQuery = WebUtils.urlEncode(context, tagQuery); String faqQuery = "FahID<>\'" + fahID + "\'"; //faqQuery = WebUtils.urlEncode(context, faqQuery); //faqQuery = Utils.urlEncode(context, faqQuery); String fahStatusID = null; try { fahStatusID = FAQHeader.getFahStatus(); } catch (FieldNotInitializedException e) { } String fahStatus = null; if (fahStatusID != null) { fahStatus = (String)dico.getRefDisp("FahStatus", fahStatusID); } else { fahStatus = ""; } String fahSourceID = null; try { fahSourceID = FAQHeader.getFahSource(); } catch (FieldNotInitializedException e) { } String fahSource = null; if (fahSourceID != null) { fahSource = (String)dico.getRefDisp("FahSource", fahSourceID); } String fahFromFahID = null; try { fahFromFahID = FAQHeader.getFahFromFahID(); } catch (FieldNotInitializedException e) { } Boolean havingOrigin = fahFromFahID != null ; String fahCatLev1 = null; try { fahCatLev1 = FAQHeader.getFahCatLev1(); } catch (FieldNotInitializedException e) { fahCatLev1 = ""; } %> <title><fl:getMessage code="L70F6" alt="Fiche de connaissance"/></title> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <style> .content-editor { position: relative; left: 0; right: 0; height: 100%; width: 100%; } .content-editor-fullscreen { /*display:block;*/ position: absolute; left: 0; top: 0; bottom: 0; right: 0; padding-top: 8px; padding-left: 8px; padding-right: 8px; padding-bottom: 8px; vertical-align: middle; horizontal-align: middle; width: 98%; height: 98%; min-height: 800px; /*max-height: 950px;*/ background-color: white; layer-background-color: white; border: 1px solid #bbb; z-index: 10; border-radius: 10px 10px; -moz-border-radius: 10px; } .language_without_message { filter: alpha(opacity = 20); -moz-opacity: 0.2; -khtml-opacity: 0.2; opacity: 0.2; } .language_current { border: 1px solid black; } .language_current_without_message { border: 1px solid black; filter: alpha(opacity = 20); -moz-opacity: 0.2; -khtml-opacity: 0.2; opacity: 0.2; } </style> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/edeal/libraries/json.org/json2/json2.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/inputAC_js.jsp"></script> <script language="JavaScript"> var isFAQSaved = false; function changeLanguage(codeLanguage) { var f = document.forms[0]; var faqTitle = f.FaqTitle.value; if ((!isEmptyContents() && faqTitle == '') || (faqTitle != '' && isEmptyContents())) { alert('<fl:getMessage code="L810D" alt="Veuillez saisir un titre et un contenu" js="true"/>'); return; } saveFAQ(); loadFAQ(codeLanguage); //after this we have the new language setTagQuery(); loadTagList(); loadTagFAQHeaderList(); } function loadTag() { loadTagList(); loadTagFAQHeaderList(); } function doSubmit() { var f = document.forms[0]; if (!doCompareDate()) return; var faqTitle = f.FaqTitle.value; if ((!isEmptyContents() && faqTitle == '') || (faqTitle != '' && isEmptyContents())) { alert('<fl:getMessage code="L810D" alt="Veuillez saisir un titre et un contenu" js="true"/>'); return; } saveFAQ(); return true; } function loadLanguage() { var langageID = $("#langageID").val(); var ajaxURL = '<fl:webapp/>/get_faq_languages_bar.fl?id=' + $("input[name='id']").val() + '&langageID=' + langageID; doAjax(ajaxURL, languageCallBack); } function languageCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_language").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function loadFAQ(codeLanguage) { setLangageID(codeLanguage); var fahID = $("input[name='id']").val(); $.getJSON("<fl:webapp/>/get_faq_content.fl?id=" + fahID + "&langageID=" + codeLanguage, function(result) { var f = document.forms[0]; f.FaqTitle.value = decodeURIComponent(result.faqTitle); insertContents(decodeURIComponent(result.faqResponse)); loadLanguage(); }); } function saveFAQ() { var f = document.forms[0]; var faqResponse = encodeURI(getContents()); var faqTitle = f.FaqTitle.value; var fahID = $("input[name='id']").val(); var faqLngID = $("#langageID").val(); var faqFahID = fahID != "" ? fahID : "emptyFaqFahID"; var field = { "FaqFahID" : faqFahID, "FaqTitle" : faqTitle, "FaqResponse" : faqResponse, "FaqLngID" : faqLngID }; var res = []; res[0] = { "type" : "FAQ", "id" : "FaqID", "fields" : field }; var jsondata = JSON.stringify(res); if (!isEmptyContents() && faqTitle != '') { $.ajax({ data: jsondata, type: "POST", url: "<fl:webapp/>/save_faq_ajax.fl?id=" + fahID + "&langageID=" + faqLngID, timeout: 20000, contentType: "application/json;charset=utf-8", dataType: 'json', async: false, success: analyseResponse }); } function analyseResponse(data) { if (data != null) { if (data.faqHeaderID != '') { //creation of new FAQ Header setFAQHeaderID(data.faqHeaderID); } } } } function setLangageID(lngID) { $("#langageID").val(lngID); } function setFAQHeaderID(id) { $("input[name='id']").val(id); } //load all tags function loadTagList() { var fahID = $("input[name='id']").val(); var faqLngID = $("#langageID").val(); var ajaxURL = '<fl:webapp/>/get_tag_list.fl?id=' + fahID + '&langageID=' + faqLngID; doAjax(ajaxURL, tagListCallBack); } function tagListCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_tag").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } //load tags of FAQHeader function loadTagFAQHeaderList() { var fahID = $("input[name='id']").val(); var faqLngID = $("#langageID").val(); var ajaxURL = '<fl:webapp/>/get_faqh_tag_list.fl?id=' + fahID + '&langageID=' + faqLngID; doAjax(ajaxURL, tagFAQHeaderCallBack); } function tagFAQHeaderCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_faqh_tag").html(eDealXmlhttpArr[index].responseText); refreshSelectedTags(); } hideWaiting(); } function doOnLoad() { loadSubCategory($('#FahCatID option:selected').val()); loadFAQ('<%= langageID %>'); loadTagList(); loadTagFAQHeaderList(); loadFaqLinkList(); } function addTag() { var langageID = $("#langageID").val(); var tagText = $("#tagText").val(); var id = $("input[name='id']").val(); var tagID = $("#tagTextHidden__").val(); var ajaxURL = "<fl:webapp/>/add_tag.fl?id=" + id + "&langageID=" + langageID; if (tagID != "") { //selection ajaxURL += "&tagID=" + tagID; } else { //adding ajaxURL += "&tagText=" + encodeURI(tagText); } doAjax(ajaxURL); } function refreshSelectedTags() { var selectedTags = ''; $("#tagFaqHSelectBox option").each(function () { selectedTags += $(this).val() + ";"; }); $("#selectedTags").val(selectedTags.substring(0, selectedTags.length - 1)); } function addKey() { var tagCode = $('#tagSelectBox option:selected').val(); var tagDisplay = $('#tagSelectBox option:selected').text(); if (tagCode != '') { $("#tagFaqHSelectBox").append($('<option>', { value : tagCode }).text(tagDisplay)); removeTag('tagSelectBox'); refreshSelectedTags(); } } function refreshTag(action) { if (action == 'add') { removeTag('tagSelectBox'); loadTagFAQHeaderList(); } else if (action == 'delete') { removeTag('tagFaqHSelectBox'); loadTagList(); } refreshSelectedTags(); } function removeTag(selectBox) { $('#'+ selectBox + ' option:selected').remove(); } function deleteKey() { var fahID = $("input[name='id']").val(); var tagCode = $('#tagFaqHSelectBox option:selected').val(); var ajaxURL = '<fl:webapp/>/tag_faqh_list.fl?id=' + fahID + '&tagCode=' + tagCode + '&action=delete'; doAjax(ajaxURL); } function setTagQuery() { var langageID = $("#langageID").val(); var tagQuery = "(TagLngID='" + langageID + "' OR TagLngID IS NULL)"; $("#tagTextQuery__").val(tagQuery); } //load fiche connexe function loadFaqLinkList() { var fahID = $("input[name='id']").val(); var ajaxURL = '<fl:webapp/>/get_faqlink_list.fl?id=' + fahID; doAjax(ajaxURL, faqLinkListCallBack); } function faqLinkListCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_faqlink").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function addFaqLink() { var fahID1 = $("input[name='id']").val(); var fahID2 = $("#FqlFahID1").val(); var ajaxURL = '<fl:webapp/>/faqh_link.fl?fahID1=' + fahID1 + '&fahID2=' + fahID2 + '&action=add'; doAjax(ajaxURL); } function doFqlFahID1Change() { addFaqLink(); } function deleteFAQLink() { var faqLinkID = $('#faqLinkSelectBox option:selected').val(); if (faqLinkID == '' || faqLinkID == undefined) { alert('<fl:getMessage code="M9021" alt="Veuillez choisir une fiche connexe" js="true"/>'); } else { var ajaxURL = '<fl:webapp/>/faqh_link.fl?faqLinkID=' + faqLinkID + '&action=delete'; doAjax(ajaxURL); } } function doCompareDate() { f = document.forms[0]; var dateBeg = f.FahBeginDt.value; var dateEnd = f.FahExpireDt.value; if (dateBeg != "" && dateEnd == "") { alert('<fl:getMessage code="M9012" alt="Veuillez spécifier la date de fin" js="true"/>'); return; } if (dateEnd != "" && dateBeg == "") { alert('<fl:getMessage code="M9011" alt="Veuillez spécifier la date de début" js="true"/>'); return; } if (dateBeg != "" && dateEnd != "" && compareDate(dateBeg,'',dateEnd,'') > 0) { alert('<fl:getMessage code="M0021" alt="La date de début doit être inférieure à la date de fin." js="true"/>'); return; } return true; } function deSelectListBox(listbox) { if (listbox.id == "tagFaqHSelectBox") { $("#tagSelectBox option:selected").prop("selected", ""); } else if (listbox.id == "tagSelectBox"){ $("#tagFaqHSelectBox option:selected").prop("selected", ""); } } function saveFAQIfOpened() { if (!isFAQSaved) { saveFAQ(); isFAQSaved = true; } } function fullSreenContentEditor(){ $('#content-editor').toggleClass('content-editor-fullscreen'); } function doSelectCorrespondent() { var f = document.forms[0]; var corID = f.FahCntctCorID.value; var url = '<fl:webapp/>/select_correspondent.fl?field=FahCntctCorID'; var multivalSeparator = '|'; if (f.$$multivalSeparator) { multivalSeparator = f.$$multivalSeparator.value; } if (corID != '') { url += '&CorID=' + encodeURIComponent(corID); } if (multivalSeparator != '') { url += '&multivalSeparator=' + encodeURIComponent(multivalSeparator); } window.open(url, 'ChoixCorres', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=835,height=640,screenX=30,screenY=10'); } function loadFaqHeaderOrigin(fahID) { if ($('#object_actions').css('display') == 'block') { $('#object_actions').hide(); $('#object_body').css('margin-right', '0px'); $('#FahIsUpFront_label').hide(); $('#FahIsUpFront_value').hide(); $('#second_column').hide(); $('#separation_column').hide(); $('#FahStatus_label').hide(); $('#FahStatus_value').hide(); $('#read_colomn').width('49%'); $('#edit_colomn').width('49%'); $("#BTabs tr td.ongletblanc").html('<%= Utils.getMessage(session, "L808E", true, "Fiche locale") %>'); $("#ctct_bloc2_1").html($("#ctct_bloc1_1").html()); $("#ctct_bloc1_1").html(''); $("#ctct_bloc2_2").html($("#ctct_bloc1_2").html()); $("#ctct_bloc1_2").html(''); $('#ctct_sep').hide(); $("#row1").html($("#bloc1").html()); $("#bloc1").html(''); $("#row2").html($("#bloc2").html()); $("#bloc2").html(''); $('#sepbloc').hide(); faqHeaderOrigin(fahID); $('.icon_read_version').hide(); CKEDITOR.tools.callFunction(85) installAjaxSuggests(document.getElementById('tagText'),'Tag','TagText','1','20','false'); installFobAC(document.forms[0].lblFqlFahID1); } else { $('#object_actions').show(); $('#read_colomn').width('0%'); $('#edit_colomn').width('100%'); $('.icon_read_version').prop('src', '<fl:webapp/>/icons/right.png'); $('#FahIsUpFront_label').show(); $('#object_body').css('margin-right', '210px'); $('#FahIsUpFront_value').show(); $('#second_column').show(); $('#separation_column').show(); $('#FahStatus_label').show(); $('#FahStatus_value').show(); $("#BTabs tr td.ongletblanc").html('<%= Utils.getMessage(session, "L70F6", true, "Fiche de connaissance") %>'); $('#div_read_origin').hide('slow', function(){ $('.icon_read_version').show(); }); $("#div_read_origin").html(''); $("#ctct_bloc1_1").html($("#ctct_bloc2_1").html()); $("#ctct_bloc2_1").html(''); $("#ctct_bloc1_2").html($("#ctct_bloc2_2").html()); $("#ctct_bloc2_2").html(''); $('#ctct_sep').show(); $("#bloc1").html($("#row1").html()); $("#row1").html(''); $("#bloc2").html($("#row2").html()); $("#row2").html(''); $('#sepbloc').show(); CKEDITOR.tools.callFunction(85) installAjaxSuggests(document.getElementById('tagText'),'Tag','TagText','1','20','false'); installFobAC(document.forms[0].lblFqlFahID1); } } function loadSubCategory(catID) { if (catID == undefined || catID == null || catID == '') { $("#FahCatLev1").html("<option value=''> </option>"); $("#FahCatLev1").width($("#div_FahCatLev1").width()); return; } $.getJSON("<fl:webapp/>/get_solicitation_subcategory.fl?catID=" + catID, function(data) { if (data != null) { var optContent = "<option value=''> </option>"; for (var i = 0; i < data.length; i++) { var optValue = data[i].value; var optText = data[i].text; optContent += "<option" if (optValue == '<%= fahCatLev1 %>') { optContent += " selected"; } optContent += " value='" + optValue + "'>" + optText + "</option>" } $("#FahCatLev1").html(optContent); $("#FahCatLev1").width($("#div_FahCatLev1").width());//For IE7 } }); } <% if (havingOrigin) { %> function faqHeaderOrigin(id) { $('#div_read_origin').hide(); if (id == undefined) { ajaxURL = '<fl:webapp/>/get_faqheader_lastversion.fl?fahFromFahID=<%= fahFromFahID %>'; } else { ajaxURL = '<fl:webapp/>/read_faqheader_origin.fl?id=' + id + '&fahFromFahID=<%= fahFromFahID %>'; } $.ajax({ url: ajaxURL, success: function(data) { $('#div_read_origin').html(data); $('#div_read_origin').show('slow'); }, error:function (xhr, ajaxOptions, thrownError){ alert(xhr.status); alert(thrownError); } }); } <% } %> function performAddTag(code, keyWord) { $("#tagFaqHSelectBox").append($('<option>', { value : code }).text(keyWord)); refreshSelectedTags(); } </script> <% if (havingOrigin) { %> <table cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td id="read_colomn"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="100%"><div id="div_read_origin"></div></td> <td> <div> <a href="javascript: loadFaqHeaderOrigin();"> <img class="icon_read_version" src="<fl:webapp/>/icons/right.png" width="20px" alt="Voir la fiche d'origine" title="Voir la fiche d'origine"> </a> </div> </td> </tr> </table> </td> <td valign="top" id="edit_colomn"> <% } %> <fl:form action="/save_faqheader_and_tag.fl" bean="FAQHeader"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L70F6\", false, true, \"Fiche de connaissance\")%>" ou="<%=\"edit_faqheader.fl\" + (fahID != null ? \"?id=\" + fahID : \"\")%>" > <input type="hidden" name="langageID" id="langageID" value="<%= langageID %>"> <input type="hidden" name="FahSource" id="FahSource" value="<%= fahSourceID %>"> <table class="container" cellpadding="0" width="100%"> <tr class="fieldline"> <td colspan="5"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche" id="FahTitle_label"> <fl:label field="FahTitle" labelClassName="titreFiche" /> </td> <td class="fieldTitreFiche" id="FahTitle_value"> <fl:input property="FahTitle" mandatoryMsgCode="L63DC" /> </td> </tr> </table> </td> </tr> <tr> <td colspan="5" class="ligne_separation" /> </tr> </table> <table class="container" cellpadding="0" width="100%"> <tr> <td class="column2" width="100%"> <table class="container" cellpadding="0" width="100%"> <fl:fieldEdit property="FahCatID" alt=" " mandatoryMsgCode="M9022" onchange="loadSubCategory(this.value);"/> <!--<fl:fieldEdit property="FahCatLev1" alt=" "/>--> <tr class="fieldline"> <td class="dataLabel" id="FahCatLev1_label"> <div> <fl:label field="FahCatLev1"/> </div> </td> <td class="dataValue" id="FahCatLev1_value"> <div class="input select" id="div_FahCatLev1"> <select class="input select" name="FahCatLev1" id="FahCatLev1"> </select> </div> </td> </tr> <tr class="fieldline"> <td class="dataLabel" id="FahStatus_label"><fl:label field="FahStatus"/></td> <td class="dataValue" id="FahStatus_value"><input type="hidden" name="FahStatus" id="FahStatus" value="<%= fahStatusID %>"><div class="input text"><input type="text" value="<%= fahStatus %>" readonly="readonly" disabled="disabled" class="input text"/></div></td> </tr> <fl:fieldEdit property="FahBeginDt"/> <fl:fieldEdit property="FahExpireDt"/> <fl:fieldEdit property="FahIsUpFront"/> <fl:fieldEdit property="FahAudienceID"/> </table> </td> <td class="separation" id="separation_column"> <div class="separation"></div> </td> <td class="column2" id="second_column"> <table class="container" cellpadding="0"> <fl:fieldEdit property="FahActID" mandatoryMsgCode="L7104"/> <fl:fieldEdit property="FahOwnrActID" mandatoryMsgCode="L7105"/> <tr class="fieldline"> <td class="dataLabel" id="FahSource_label"><fl:label field="FahSource"/></td> <td class="dataValue" id="FahSource_value"><div class="input text"><input type="text" value="<%= fahSource %>" readonly="readonly" disabled="disabled" class="input text"/></div></td> </tr> <fl:fieldEdit property="FahPblChannel"/> <fl:fieldEdit property="FahRoleMV_"/> </table> </td> </tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="FAQHeaderTabs"> <fl:sTab id="FICHE" title="<%= Utils.getMessage(session, \"L62EB\", \"Fiche\") %>" onselect="loadLanguage(); isFAQSaved = false;"> <div id="content-editor" class="content-editor"> <table class="container" cellpadding="0" width="100%"> <tr> <td> <table width="100%"> <tr align="right"> <td width="35%"></td> <td width="35%"></td> <td width="25%"><div id="div_language"></div></td> <td width="5%"> <img src="<fl:webapp/>/icons/view-fullscreen.png" title="<fl:getMessage code="A4005" alt="Plein écran"/>" id="fullscreen" alt="<fl:getMessage code="A4005" alt="Plein écran"/>" onclick="javascript:fullSreenContentEditor();" style="cursor: pointer;"> </td> </tr> </table> </td> </tr> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0" width="100%"> <tr class="ligne_separation"> <td></td> </tr> <tr> <td class="titrePartie"> <fl:label field="FaqTitle" /> </td> </tr> <tr> <td class="dataValue noPaddingLeft"> <div class="input text"><input type="text" name="FaqTitle" id="FaqTitle" class="input text" width="100%"></div> </td> </tr> <tr class="ligne_separation"> <td></td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"> <td></td> </tr> <tr> <td class="titrePartie"> <fl:label field="FaqResponse"/> </td> </tr> <tr> <td class="dataValue noPaddingLeft"> <div class="input textarea"><textarea name="FaqResponse" id="FaqResponse" class="input textarea"> </textarea></div> </td> </tr> <tr class="ligne_separation"> <td></td> </tr> </table> <table class="container" cellpadding="0" width="100%"> <tr> <td colspan="3" class="ligne_separation"/> </tr> <tr> <%-- Bloc 1 --%> <td class="column2" id="bloc1"> <table class="data_column" cellpadding="0" width="100%"> <tr> <td width="47%"> <table width="100%"> <tr> <td><label class="dataLabel"><fl:getMessage code="F70AC" alt="Mot(s) clé(s)"/></label></td> </tr> <tr><td class="ligne_separation"></td></tr> <tr> <td colspan="2"> <input type="hidden" value="" id="selectedTags" name="selectedTags"/> <div style="height: 100%; width: 100%" id="div_tag"></div> </td> </tr> </table> </td> <td width="6%" align="center" valign="middle"> <table width="100%" align="center"> <tr><td align="center"><a href="javascript:addKey()"><img src="<fl:webapp/>/icons/ico/plus.gif" id="bt_add" title="<fl:getMessage code="A000F" alt="Ajouter"/>"></a></td></tr> <tr><td align="center"><a href="javascript:deleteKey()"><img src="<fl:webapp/>/icons/ico/moins.gif" id="bt_delete" title="<fl:getMessage code="A0007" alt="Supprimer"/>"></a></td></tr> </table> </td> <td width="47%"> <div class="input fieldTable" style="width: 100%"> <table cellspacing="0" class="fieldTable" width="100%"> <tr valign="top"> <td class="principalText bigFieldPart"> <div class="fobLeftDiv"> <fl:input property="TagText" id="tagText" nodiv="true" query="<%= tagQuery %>" width="85%"> <fl:autocompleter table="Tag" field="TagText" caseSensitive="false" maxLimit="20" trigger="1"/> </fl:input> </div> </td> <td class="smallFieldPart"> <span> <a href="javascript: $('#tagText').val(''); void('');"> <img class="icon" title="<fl:getMessage code="A3005" alt="Vider le champ"/>" alt="<fl:getMessage code="A3005" alt="Vider le champ"/>" src="<fl:webapp/>/icons/ico/supprimer.gif"> </a> <a href="javascript: addTag();void('');"> <img class="icon" title="<fl:getMessage code="L70F8" alt="Ajouter ce mot clé"/>" alt="<fl:getMessage code="L70F8" alt="Ajouter ce mot clé"/>" src="<fl:webapp/>/icons/ico/plus.gif"> </a> </span> </td> </tr> <tr><td class="ligne_separation"></td></tr> <tr> <td colspan="2" width="100%"> <div style="height: 100%; width: 100%" id="div_faqh_tag"></div> </td> </tr> </table> </div> </td> </tr> </table> </td> <%-- Séparation --%> <td class="separation" id="sepbloc"><div class="separation"></div></td> <%-- Bloc 2 --%> <td class="column2" id="bloc2"> <table class="fieldTable" cellpadding="0" width="100%"> <tr> <td> <table class="data_column" cellpadding="0" width="100%"> <fl:fieldEdit property="FqlFahID1" query="<%= faqQuery %>" width="85%"/> </table> </td> <td align="right"> <a href="javascript:deleteFAQLink()"> <img title="<fl:getMessage code="A0007" alt="Supprimer"/>" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" class="icon" src="<fl:webapp/>/icons/ico/moins.gif"> </a> </td> </tr> <tr><td colspan="2" class="ligne_separation"></td></tr> <tr> <td colspan="2"> <div style="height: 100%; width: 100%" id="div_faqlink"></div> </td> </tr> </table> </td> </tr> <tr><td id="row1" colspan="3"></td></tr> <tr><td id="row2" colspan="3"></td></tr> </table> </td> </tr> </table> </div> </fl:sTab> <fl:sTab id="CONTACTS" title="<%= Utils.getMessage(session, \"L3106\", \"Contacts\") %>" onselect="saveFAQIfOpened()" > <table class="container" cellpadding="0" width="100%"> <tr class="fieldline"> <td class="column2" width="100%"> <table class="container" cellpadding="0" width="100%"> <tr class="fieldline"> <td class="column2" id="ctct_bloc1_1"> <table class="data_column" cellpadding="0" width="100%"> <fl:fieldEdit property="FahCntctActID"/> </table> </td> <td class="separation" id="ctct_sep"> <div class="separation"></div> </td> <td class="column2" id="ctct_bloc1_2"> <table class="data_column" cellpadding="0" width="100%"> <fl:fieldEdit property="FahCntctCorID" selectUrl="javascript:doSelectCorrespondent()"/> </table> </td> </tr> <tr class="fieldline"> <td id="ctct_bloc2_1" colspan="3"></td> </tr> <tr class="fieldline"> <td id="ctct_bloc2_2" colspan="3"></td> </tr> </table> </td> </tr> </table> </fl:sTab> <fl:sTab id="FICHIERS" title="<%= Utils.getMessage(session, \"L201C\", \"Fichiers\") %>" onselect="saveFAQIfOpened()"> <fl:attach name="FAQHeader" colID="FahAttID" /> </fl:sTab> </fl:smallTabs> </fl:bigTabs> </fl:form> <% if (havingOrigin) { %> </td></tr> </table> <% } %> <!-- CKEditor --> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/adapters/jquery.js"></script> <script type="text/javascript"> var editor = CKEDITOR.replace('FaqResponse', { filebrowserImageBrowseUrl : '<fl:webapp/>/js/wysiwyg/filemanager/index.jsp', filebrowserWindowWidth : 1024, filebrowserWindowHeight : 500, toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'], '/', ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Image','Table','-','Link','TextColor','BGColor','Source'] <%--,['TranslateButton']--%> ], resize_enabled : false, contentsCss : '<fl:webapp/>/css/empty.css' }); editor.on('pluginsLoaded', function( ev ){ //Translation button editor.addCommand('translateCommand', { exec : function(editor) { window.open('translation_popup.fl?objSQL=FAQ&id=<%=fahID%>&to='+$('#langageID').val(), 'Translation', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no, width=500, height=250'); } }); editor.ui.addButton('TranslateButton', { label : '<fl:getMessage code="L807F" alt="Traduire" js="true"/>', command : 'translateCommand', icon: '<fl:webapp/>/icons/translate.gif' }); }); function insertContents(value) { editor.setData(value); } function getContents() { return editor.getData(); } function setFaqTitle(value){ $("#FaqTitle").val(value); } function isEmptyContents(){ var editor_val = editor.document.getBody().getText(); if (editor_val != '') { return false ; } return true ; //return ( ("" == getContents()) || ('<br />\n' == getContents()) || ('<br />' == getContents())); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de