Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\massemailing\edit.jsp
<% /****************************************************************************** * 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 contentType="text/html; charset=UTF8" session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest"%> <%@ page import="com.edeal.frontline.FlContext"%> <%@ page import="com.edeal.frontline.Utils"%> <%@ page import="com.edeal.frontline.FieldNotInitializedException"%> <%@ page import="com.edeal.frontline.services.FlServiceException"%> <%@ page import="com.edeal.frontline.FrontlineException"%> <%@ page import="com.edeal.frontline.MessagesBean"%> <%@ page import="com.edeal.frontline.FlLocale"%> <%@ page import="com.edeal.frontline.DataDictionary"%> <%@ page import="java.util.Vector"%> <%@ page import="java.util.HashMap"%> <%@ page import="java.util.Map.Entry"%> <%@ page session="true" import="com.edeal.frontline.FieldBean"%> <%@ page import="com.edeal.frontline.navigation.WebUtils"%> <%@ page import="java.util.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <jsp:useBean class="com.edeal.frontline.MassEmailingBean" id="MassEmailing" 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(); String id = null; try { id = MassEmailing.getID(); } catch (FieldNotInitializedException fnie) { } boolean isCreate = id == null; Integer emlDstType = null; try{ emlDstType =(Integer)MassEmailing.getProperty("EmlDstType"); } catch (Exception e) { } String emlTypeDst = null; try{ emlTypeDst =(String)MassEmailing.getEmlTypeDst(); } catch (Exception e) { } String emlStatus = null; try{ emlStatus =(String)MassEmailing.getEmlStatus(); } catch (Exception e) { emlStatus = dico.getRefIdByCode("EmlStatus", "MAKING"); } String emlStatusDisp = (String)dico.getRefDisp(session, "Mes", "Te1", dico.getRefIdByCode("EmlStatus", "MAKING")); boolean isDstSubsSilChecked = request.getAttribute("isDstSubsSilChecked") != null ? (Boolean)request.getAttribute("isDstSubsSilChecked") : false; boolean isDstSubsPerChecked = request.getAttribute("isDstSubsPerChecked") != null ? (Boolean)request.getAttribute("isDstSubsPerChecked") : false; String emlFltType = (String) request.getAttribute("emlFltType"); String emlSndType = (String) request.getAttribute("emlSndType"); String massEmailingTypeOptionSelectedId = (String) request.getAttribute("massEmailingTypeOptionSelectedId"); //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) { } } //code type de message String codeMsgModele = dico.getRefIdByCode("tpe", "Te1", "MODELE"); String codeMsgProduit = dico.getRefIdByCode("tpe", "Te1", "PRODUIT"); String codeMsgImporte = dico.getRefIdByCode("tpe", "Te1", "IMPORTE"); //code type de destination String codeDestPer = dico.getRefIdByCode("Mtd", "Te1", "PER"); String codeDestSil = dico.getRefIdByCode("Mtd", "Te1", "SIL"); String codeDestPerSil = dico.getRefIdByCode("Mtd", "Te1", "PERSIL"); String emlTypeDstObj = null; if (emlTypeDst != null && emlTypeDst.equals(codeDestPer)){ emlTypeDstObj = dico.getTable("sql", "PERSON").getObjID(); } else { if ((emlTypeDst != null) && ((emlTypeDst.equals(codeDestSil)) || (emlTypeDst.equals(codeDestPerSil)))){ emlTypeDstObj = dico.getTable("sql", "SILHOUETTE").getObjID(); } } String sndQuery = "FldFobID:ObjSQL='Actor'|FldObjID:ObjSql='Person'"; sndQuery = WebUtils.urlEncode(context, sndQuery); String perQuery = "Se2Model:SmdObjID:ObjSql='Person'"; perQuery = ""; perQuery = WebUtils.urlEncode(context, perQuery); String silQuery = "Se2Model:SmdObjID:ObjSql='Silhouette'"; perQuery = ""; silQuery = WebUtils.urlEncode(context, silQuery); HashMap<String, String> hmapAllEmailDisplay = (HashMap<String, String>) flRequest.getAttribute("hmapAllEmailDisplay"); if (hmapAllEmailDisplay == null) { hmapAllEmailDisplay = new HashMap<String, String>(); } HashMap<String, String> hmapEmailDisplay = (HashMap<String, String>) flRequest.getAttribute("hmapEmailDisplay"); if (hmapEmailDisplay == null) { hmapEmailDisplay = new HashMap<String, String>(); } HashMap<String, String> hmapMassEmailingType = (HashMap<String, String>) flRequest.getAttribute("hmapMassEmailingType"); if (hmapMassEmailingType == null) { hmapMassEmailingType = new HashMap<String, String>(); } java.util.Date emlSndDate = (java.util.Date) request.getAttribute("emlSndDate"); String strDate = ""; String strTime = ""; if (emlSndDate != null){ strDate = Utils.formatToWebDate(session, emlSndDate, true); strTime = Utils.formatToWebTime(session, emlSndDate, true).substring(0, 5); } String strReDate = ""; String strReTime = ""; try{ java.util.Date emlReSndDate = MassEmailing.getEmlReSndDate(); if (emlReSndDate != null){ strReDate = Utils.formatToWebDate(session, emlReSndDate, true); strReTime = Utils.formatToWebTime(session, emlReSndDate, true).substring(0, 5); } }catch(FieldNotInitializedException e){ } boolean hasFileStorageService; try{ context.getServiceManager().getServiceClient("FileStorage"); hasFileStorageService = true; }catch(FlServiceException e){ hasFileStorageService = false; } boolean hasUrlTrackingService; try{ context.getServiceManager().getServiceClient("UrlTracking"); hasUrlTrackingService = true; }catch(FlServiceException e){ hasUrlTrackingService = false; } Boolean isFax = false, isEMail = false, isSMS = false; String emlType = null; try { emlType = (String)MassEmailing.getEmlType(); } catch (Exception e) { } if (emlType != null) { try { String emlTypeDisp = (String)dico.getRefDisp(session, "Mty", "Te2", emlType); isFax = "FAX".equals(emlTypeDisp); isSMS = "SMS".equals(emlTypeDisp); isEMail = "EMAIL".equals(emlTypeDisp); } catch (Exception e) { } } else { isEMail = true; } %> <!--[if !IE]><!--> <style> .fieldset { -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; } </style> <!--<![endif]--> <style> .fieldset { } .legend { padding: 0.2em 0.5em; /*display: block;*/ font-size: 1em; font-weight: bold; color: black; } .message-editor { position: relative; left: 0; right: 0; height: 100%; width: 100%; } .message-editor-fullscreen { /*display:block;*/ position: absolute; left: 0; top: 0; bottom: 0; right: 0; margin-bottom: 2px; margin-top: 2px; margin-left: 4px; margin-right: 10px; padding-bottom: 4px; padding-top: 8px; padding-left: 8px; padding-right: 8px; padding-bottom: 8px; vertical-align: middle; horizontal-align: middle; width: 98%; height: 98%; min-height: 650px; 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/>/netbusiness/emaillink/emaillink.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/textAC_js.jsp"></script> <script language="javascript"> // Ignore these changes function emlCodeChange(){ var f = document.forms[0]; if(/[^a-zA-Z0-9]/.test(f.EmlCode.value)){ alert('<fl:getMessage code="M900005" alt="Le code que vous avez entré est invalide !" js="true"/>'); f.EmlCode.value = ""; f.EmlCode.focus(); } } function setMassEmailingID(meID){ $("input[name='id']").val(meID); } function fullSreenMessageEditor(){ $('#message-editor').toggleClass('message-editor-fullscreen'); } function changeLanguage(codeLanguage) { var f = document.forms[0]; var msgSubject = f.MsgSubject.value; if (!(isEmptyContents()) && (msgSubject == '')) { alert('<fl:getMessage code="M6033" alt="Veuillez saisir un sujet."/>'); } else { loadMessage(codeLanguage); if (!(isEmptyContents()) && (msgSubject != '')) { saveMessage(); } } codeLng = codeLanguage; } function loadMessage(codeLanguage) { $.getJSON("<fl:webapp/>/get_message_content.fl?id=" + $("input[name='id']").val() + "&langageID=" + codeLanguage, function(result) { var f = document.forms[0]; f.MsgSubject.value = result.msgSubject != "" ? decodeURIComponent(result.msgSubject) : ""; insertContents(decodeURIComponent(result.msgBody)); f.MsgBodyText.value = result.msgBodyText != "" ? decodeURIComponent(result.msgBodyText) : ""; loadAttachments(result.msgID); setLangageID(codeLanguage); loadLanguage(); codeLng = codeLanguage; }); } function loadAttachments(msgID) { var ajaxURL = '<fl:webapp/>/get_attachement_div.fl?messageID=' + msgID; doAjax(ajaxURL, attachmentsCallBack); } function attachmentsCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_attachement").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function loadLanguage() { var ajaxURL = '<fl:webapp/>/get_language_div.fl?id=' + $("input[name='id']").val() + '&languageID=' + $("#langageID").val(); doAjax(ajaxURL, languageCallBack); } function languageCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_language").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function loadModel(idModel) { var f = document.forms[0]; if (idModel != null && idModel != '') { $.getJSON('<fl:webapp/>/get_model_message.fl?id='+$("input[name='id']").val()+'&msgID='+idModel+'&emlCode='+f.EmlCode.value, function(result) { if (result != null){ if (result.status == "OK"){ f.MsgSubject.value = decodeURIComponent(result.msgSubject); insertContents(decodeURIComponent(result.msgBody)); f.MsgBodyText.value = result.msgBodyText != "" ? decodeURIComponent(result.msgBodyText) : ""; loadAttachments(result.msgID); loadLanguage(); $("#msgID").val(result.msgID); $("input[name='id']").val(result.emlID); } else if (result.status == "NO"){ alert(result.errorMessage); } } }); } else { alert('<fl:getMessage code="M9005" alt="Veuillez choisir un modèle" js="true"/>'); } } function setLangageID(lngID) { $("#langageID").val(lngID); } function saveMessage(msgType) { var f = document.forms[0]; var msgBody = encodeURI(getContents()); msgBody = msgBody.replace('+', '%2B'); var msgBodyText = encodeURI(f.MsgBodyText.value); msgBodyText = msgBodyText.replace('+', '%2B'); var msgContent = getContents(); var msgSubject = encodeURI(f.MsgSubject.value); msgSubject = msgSubject.replace('+', '%2B'); var file = $("input[name='MsgAttID']").val().split('|'); try{ var doc = $("input[name='MsgDocID']").val().split('|'); }catch(e){ } msgType = (msgType == null) ? "<%=codeMsgProduit%>" : msgType; <% if (emlTypeDstObj == null){ %> msgObjID = ""; <%} else {%> msgObjID = "<%= emlTypeDstObj%>"; <%}%> var field = {"MsgSubject":msgSubject,"MsgBody":msgBody,"MsgBodyText":msgBodyText,"MsgLngRef":$("#langageID").val(),"MsgAttID":file,"MsgDocID":doc,"MsgCode":f.EmlCode.value,"MsgType":msgType,"MsgObjID":msgObjID}; var res = []; res[0] = {"type":"Messages","id":"msgID","fields":field}; var jsondata = JSON.stringify(res); $.ajax({ data: jsondata, type: "POST", url: '<fl:webapp/>/save_message.fl?id='+$("input[name='id']").val()+'&langageID='+$("#langageID").val(), timeout: 20000, contentType: "application/json;charset=utf-8", dataType: 'json', async: false, success: analyseResponse }); function analyseResponse(data) { if (data != null){ if (data.EmmID != ''){ //ID du nouveau massemailing créé $("input[name='id']").val(data.EmmID); } if (data.MsgID != ''){ //ID du nouveau message créé $("#msgID").val(data.MsgID); } if (data.status != '' && msgType == "<%=codeMsgModele%>") { //ID du nouveau message créé if (data.status == "OK") alert('<fl:getMessage code="M9023" alt="Le modèle a été bien enregistré" js="true"/>') if (data.status == "NO") alert('<fl:getMessage code="M9024" alt="Erreur lors de l\\\'enregistrement du modèle" js="true"/>') } } } } var isMassEmailingSaved = false; //Sauver la partie commune et le premier onglet function saveMassEmailing() { var rtn = true; var f = document.forms[0]; //partie commune var emlName = f.EmlName.value; var emlCode = f.EmlCode.value; var emlRegroupement = f.EmlRegroupement.value; var emlType = f.EmlType.value; var emlStatus = "<%= emlStatus %>"; var emlOwner = f.EmlOwner.value; var field = {"EmlName":emlName,"EmlCode":emlCode,"EmlRegroupement":emlRegroupement,"EmlType":emlType,"EmlStatus":emlStatus,"EmlOwner":emlOwner}; var res = []; res[0] = {"type":"MassEmailing","id":"emlIDempty","fields":field}; var jsondata = JSON.stringify(res); $.ajax({ data: jsondata, type: "POST", url: '<fl:webapp/>/save_massemailing_ajax.fl', timeout: 20000, contentType: "application/json;charset=utf-8", dataType: 'json', async: false, success: analyseResponse }); function analyseResponse(data) { if ((data != null) && (data.status == "OK")){ if (data.EmlID != ''){ //ID du nouveau massemailing créé $("input[name='id']").val(data.EmlID); } } else { rtn = false; } } if (rtn) isMassEmailingSaved = true; else alert('<fl:getMessage code="L70BA" alt="Erreur lors de la création de l\\\'emailing" js="true"/>'); return rtn; } function saveModel() { saveMessage("<%=codeMsgModele%>"); } var isMessageLoaded = false; function setMessageLoaded() { isMessageLoaded = true; } function saveMessageContent() { if (isMessageLoaded){ saveMessage(); isMessageLoaded = false; } } function communsFieldsConditions() { var f = document.forms[0]; if (f.EmlName.value == '') { document.getElementById('EmlName_msg').style.display = "inline"; alert('<fl:getMessage code="L63B1" alt="Veuillez saisir un nom" js="true"/>'); f.EmlName.focus(); return; } if (f.EmlCode.value == '') { document.getElementById('EmlCode_msg').style.display = "inline"; alert('<fl:getMessage code="L6144" alt="Veuillez saisir un code" js="true"/>'); f.EmlCode.focus(); return; } if (f.EmlRegroupement.value == '') { document.getElementById('EmlRegroupement_msg').style.display = "inline"; alert('<fl:getMessage code="M9007" alt="Veuillez saisir un code de regroupement" js="true"/>'); f.EmlCode.focus(); return; } if (f.EmlOwner.value == '') { document.getElementById('EmlOwner_msg').style.display = "inline"; alert('<fl:getMessage code="L7019" alt="Veuillez saisir un auteur" js="true"/>'); f.EmlOwner.focus(); return; } return true; } function doSubmit() { //conditions sur les champs partagés var f = document.forms[0]; emlCodeChange(); if (!communsFieldsConditions()) return; desType = null; if (!destConditions()) return; if (!filerSupp()) return; //Abonnement abonnement(); if (!filtreCondition()) return; //EmlDstSubsSil if (($('#EmlDstSubsPer').val() != '') && ($('#checkDstSubsSil').is(':checked'))) { $('#EmlDstSubsSil').val($('#EmlDstSubsPer').val()); } //Correspondance entre destinataire et filtrage if (!correspondance()) return; //Save nofilter stat in EmlFltType if ($('input[type=radio][name=nofilter]:checked').length > 0) { $('#EmlFltType').val("true"); } else { $('#EmlFltType').val("false"); } if (!mailCondition()) return; //save mail list in EmlMailSendField $('#EmlMailSendField').val(selectAllOptionsValues()); //onglet envoi if ((desType == 'SIL' || desType == 'PERSIL') && ($('input[type=radio][name=exp]:checked').attr('value') == "variable")) { alert('<fl:getMessage code="L7069" alt="Un expéditeur variable n\\\'est possible qu\\\'avec des destinataires personnes. Vous utilisez des silhouettes, merci de choisir un expéditeur fixe" js="true"/>'); return; } if ($('input[type=radio][name=exp]:checked').attr('value') == "variable") { if ($('#EmlSndFldID').val() == ''){ alert('<fl:getMessage code="M9001" alt="Veuillez choisir un expéditeur variable" js="true"/>'); return; } } if ($('input[type=radio][name=exp]:checked').length == 0) { alert('<fl:getMessage code="F7070" alt="Veuillez choisir un expéditeur" js="true"/>'); return; } if ($('input[type=radio][name=exp]:checked').attr('value') == "fixe") { if ($('#EmlSndEnsID').val() == ''){ alert('<fl:getMessage code="L7069" alt="Un expéditeur variable n\\\'est possible qu\\\'avec des destinataires personnes. Vous utilisez des silhouettes, merci de choisir un expéditeur fixe" js="true"/>'); return; } } //save sender type $('#EmlSndType').val($('input[type=radio][name=exp]:checked').attr('value')); //save linksSelectBox value $('#EmlFltLinkElnID').val($('#linksSelectBox option:selected').val()); //save date and time email send setDateAndTimeEmailSend(); //save date and time email resend setDateAndTimeEmailReSend(); //save current message var msgSubject = f.MsgSubject.value; if (isMessageLoaded && !(isEmptyContents()) && (msgSubject == '')) { alert('<fl:getMessage code="M6033" alt="Veuillez saisir un sujet."/>'); return; } else if (!(isEmptyContents()) && (msgSubject != '')) { saveMessageContent(); } var continueAfterSil = true; // If we have silhouettes, check the message for unsupported fields if ($('#EmlDstSelSil').val() != '' || $('#EmlDstPopSil').val() != '') { $.ajax({ type: "GET", url: '<fl:webapp/>/check_sil_fusion_fields.fl?id=' + $("input[name='id']").val() + '&ShowFields=true', timeout: 5000, async: false, success: analyseResponse }); } function analyseResponse(data) { if (data != '') { continueAfterSil = false; } } if (!continueAfterSil) { return false; } //save links if (!saveEmailLinks()) return; disableBlocksGroup1BeforeSaving(); disableBlocksGroup2BeforeSaving(); return true; } function abonnement(){ if ($('input[name=destinataires]:checked').attr('id') == 'SubsCheckBox') { if ($('#EmlDstSubsCheckBoxPer').is(':checked')){ $('#EmlDstSubsPer').val($('#massEmailingTypeSelectBox option:selected').val()); } else { $('#EmlDstSubsPer').val(""); } if ($('#EmlDstSubsCheckBoxSil').is(':checked')){ $('#EmlDstSubsSil').val($('#massEmailingTypeSelectBox option:selected').val()); } else { $('#EmlDstSubsSil').val(""); } } } //end doSubmit function filerSupp() { if ($('input[type=radio][name!=destinataires][name!=exp]:checked').length == 0) { alert('<fl:getMessage code="L705F" alt="Veuillez choisir un filtre supplémentaire" js="true"/>'); return; } return true; } function correspondance() { if (($('input[type=radio][name=EmlFltPopOp]:checked').length > 0) && (desType != '')) { if (((desType == 'PER') && ($('#EmlFltPopSil').val() != '')) || ((desType == 'SIL') && ($('#EmlFltPopPer').val() != ''))) { alert('<fl:getMessage code="L7061" alt="Veuillez vérifier la correspondance entre ce qui a été choisi en destinataire et ce qui est appliqué en filtrage" js="true"/>'); return; } } return true; } function filtreCondition(){ var f = document.forms[0]; //Règle population if (($('input[type=radio][name=EmlFltPopOp]:checked').length > 0) && (f.EmlFltPopPer.value == '') && (f.EmlFltPopSil.value == '' )){ alert('<fl:getMessage code="M9002" alt="Veuillez choisir une personne ou une silhouette" js="true"/>'); return; } //Règle suivi emailing if (($('input[type=radio][name=EmlFltReadMsgOp]:checked').length > 0) && (f.EmlFltReadEmlID.value == '')){ alert('<fl:getMessage code="F61C4" alt="Veuillez choisir un emailing" js="true"/>'); f.EmlFltReadEmlID.focus(); return; } //Règle suivi de liens if (($('input[type=radio][name=EmlFltLinkOp]:checked').length > 0) && (f.EmlFltLinkEmlID.value == '') && ($('#EmlFltPopSil').val() == '')){ alert('<fl:getMessage code="M9003" alt="Veuillez choisir un message et un lien" js="true"/>'); return; } //Règle abonnements if (($('input[type=radio][name=EmlFltSubsOp]:checked').length > 0) && (f.EmlFltSubs.value == '')){ alert('<fl:getMessage code="M9004" alt="Veuillez choisir un newsletter" js="true"/>'); f.EmlFltSubs.focus(); return; } return true; } function mailCondition(){ if (!noOptions("#mailSelectBox")) { alert('<fl:getMessage code="M9006" alt="Veuillez choisir au moins une adresse mail d\\\'envoi" js="true"/>'); return; } return true; } function destConditions(){ //conditions dans l'onglet "Destinataires" if ($('input[type=radio][name=destinataires]:checked').length == 0){ alert('<fl:getMessage code="L7025" alt="Veuillez choisir un destinataire" js="true"/>'); return; } else { // save index radio checked $('#EmlDstType').val($('input[name=destinataires]:checked').index('input[name=destinataires]')); var radio_id = $('input[name=destinataires]:checked').attr('id'); if ($('#EmlDst' + radio_id + 'Per').attr('type') == 'checkbox'){ typeDestPer = (!$('#EmlDst' + radio_id + 'Per').is(':checked')); typeDestSil = (!$('#EmlDst' + radio_id + 'Sil').is(':checked')); } else { typeDestPer = ($('#EmlDst' + radio_id + 'Per').val() == ''); typeDestSil = ($('#EmlDst' + radio_id + 'Sil').val() == ''); } if (typeDestPer && typeDestSil){ alert('<fl:getMessage code="L7026" alt="Veuillez choisir au moins un type de destinataire" js="true"/>'); return; } else { // les 2 champs sont remplis ou cochés if (!typeDestPer && !typeDestSil){ // type PERSIL desType = 'PERSIL'; $('#EmlTypeDst').val('<%= codeDestPerSil %>'); } else { if (!typeDestPer && typeDestSil){ // type PER desType = 'PER'; $('#EmlTypeDst').val('<%= codeDestPer %>'); } else if (typeDestPer && !typeDestSil){ // type SIL desType = 'SIL'; $('#EmlTypeDst').val('<%= codeDestSil %>'); } } return true; } } } function setDateAndTimeEmailSend(){ if($("#lblDate").val() != '') { if($("#lblTime").val() == '') { $("#lblTime").val('00:00'); } $("#EmlSndDate").val($("#lblDate").val() + ' ' + $("#lblTime").val()); } } function setDateAndTimeEmailReSend(){ if($("#lblReDate").val() != '') { if($("#lblReTime").val() == '') { $("#lblReTime").val('00:00'); } $("#EmlReSndDate").val($("#lblReDate").val() + ' ' + $("#lblReTime").val()); } } //get all options of mailSelectBox function selectAllOptionsValues(){ var selObj = document.getElementById('mailSelectBox'); var result = ""; for (var i = 0 ; i < selObj.options.length ; i++) { result = result + selObj.options[i].value; if (i < selObj.options.length - 1) { result = result + "|"; } } return result; } function deleteEntry(){ //If no items are present in 'toSelectBox' (or) if none of the items are selected inform the user using an alert if(!noOptions("#mailSelectBox") || !isSelected("#mailSelectBox")){return;} //If atleast one of the item is selected, initially the selected option would be 'removed' and then it is appended to 'fromSelectBox' (select box) $('#mailSelectBox option:selected').remove(); } function moveRight(){ if(!noOptions("#allMailSelectBox") || !isSelected("#allMailSelectBox")){return;} if (isExisting($('#allMailSelectBox option:selected').text())) {return;} $('#allMailSelectBox option:selected').clone().appendTo('#mailSelectBox'); } function moveUp(){ if(!noOptions("#mailSelectBox") || !isSelected("#mailSelectBox")){return;} $('#mailSelectBox option:selected').each(function(){ $(this).insertBefore($(this).prev()); }); } function moveDown(){ //If no items are present in 'mailSelectBox' (or) if none of the items are selected inform the user using an alert if(!noOptions("#mailSelectBox") || !isSelected("#mailSelectBox")){return;} //If atleast one of the item is selected, through loop - the selected option would be moved downwards var eleValue = $('#mailSelectBox option:selected:last').next(); $("#mailSelectBox option:selected").each(function(){ $(this).insertAfter(eleValue); eleValue = $(eleValue).next(); }); } function moveTopMost(){ //If no items are present in 'mailSelectBox' (or) if none of the items are selected inform the user using an alert if(!noOptions("#mailSelectBox") || !isSelected("#mailSelectBox")){return;} //If the selected item(s) index is greater than first item (option) index then move that item to the first position if($('#mailSelectBox option:selected').attr('index') > $('#mailSelectBox option:first').attr('index')){ $('#mailSelectBox option:selected').insertBefore($('#mailSelectBox option:first')); } } function moveBottomMost(){ //If no items are present in 'mailSelectBox' (or) if none of the items are selected inform the user using an alert if(!noOptions("#mailSelectBox") || !isSelected("#mailSelectBox")){return;} //If the selected item(s) index is less than last item (option) index then move that item to the last position if($('#mailSelectBox option:selected').attr('index') < $('#mailSelectBox option:last').attr('index')){ $('#mailSelectBox option:selected').insertAfter($('#mailSelectBox option:last')); } } //Below function is to validate the select box, if none of the item(s) is selected then it alerts saying 'Please select atleast one option' if user selects an item then it returns true function isSelected(thisObj){ if (!$(thisObj+" option:selected").length){ return 0; } return 1; } //Below function is to validate the select box, if none of the item(s) where present in the select box provided then it alerts saying 'There are no options to select/move' if select box has more than one item it returns true function noOptions(thisObj){ if(!$(thisObj+" option").length){ return 0; } return 1; } function isExisting(thisElement){ var found = false ; $("#mailSelectBox option").each(function(){ if ($(this).text() == thisElement){ alert('<fl:getMessage code="L7076" alt="Cette adresse mail existe déjà " js="true"/>'); found = true; return false; } }); return found; } function uncheckCheckbox(identifiant){ $("#"+identifiant+"").removeAttr("checked"); $("#"+identifiant+"").attr('disabled', 'disabled'); } function uncheckRadio(name){ $("input[name="+name+"]").removeAttr("checked"); $("input[name="+name+"]").attr('disabled', 'disabled'); } function emptyField(identifiant){ $("#"+identifiant+"").val(""); $("#"+identifiant+"").attr('readonly', 'readonly'); } function emptySelect(identifiant){ $("#"+identifiant+" option:first").attr('selected', 'selected'); } var blocksIds1 = new Array("fsciblages", "fspopulations", "fsabonnements", "fsbase"); var checkBoxIds = new Array; checkBoxIds["Sel"] = "fsciblages"; checkBoxIds["Pop"] = "fspopulations"; checkBoxIds["SubsCheckBox"] = "fsabonnements"; checkBoxIds["All"] = "fsbase"; function disableBlocksGroup1BeforeSaving(){ disableOtherBlocksGroup1(checkBoxIds[$('input[type=radio][name=destinataires]:checked').attr('id')]); } function disableBlocksGroup2BeforeSaving(){ if ($('input[type=radio][name=nofilter]').is(':checked')){ disableOtherBlocksGroup2('filtrage'); } else { if ($('input[type=radio][name=EmlFltPopOp]').is(':checked')){ disableOtherBlocksGroup2('fsrpopulation'); } else { if ($('input[type=radio][name=EmlFltReadMsgOp]').is(':checked')){ disableOtherBlocksGroup2('fsrmessage'); } else { if ($('input[type=radio][name=EmlFltLinkOp]').is(':checked')){ disableOtherBlocksGroup2('fsrsuivi'); } else { if ($('input[type=radio][name=EmlFltSubsOp]').is(':checked')) disableOtherBlocksGroup2('fsrabonnement'); } } } } } function disableOtherBlocksGroup1(bId){ for (indx in blocksIds1){ if (blocksIds1[indx] != bId){ disableBlockGroup1(blocksIds1[indx]); } } enabledThisBlock(bId); } function disableBlockGroup1(bId){ switch (bId) { case "fsciblages": emptyField('EmlDstSelPer'); emptyField('lblEmlDstSelPer'); emptyField('EmlDstSelSil'); emptyField('lblEmlDstSelSil'); break; case "fspopulations": emptyField('EmlDstPopPer'); emptyField('lblEmlDstPopPer'); emptyField('EmlDstPopSil'); emptyField('lblEmlDstPopSil'); break; case "fsabonnements": uncheckCheckbox('EmlDstSubsCheckBoxPer'); uncheckCheckbox('EmlDstSubsCheckBoxSil'); break; case "fsbase": uncheckCheckbox('EmlDstAllPer'); uncheckCheckbox('EmlDstAllSil'); break; } } function enabledThisBlock(bId){ switch (bId) { case "fsciblages": $('#lblEmlDstSelPer').removeAttr('readonly'); $('#EmlDstSelPer').removeAttr('readonly'); $('#lblEmlDstSelSil').removeAttr('readonly'); $('#EmlDstSelSil').removeAttr('readonly'); break; case "fspopulations": $('#lblEmlDstPopPer').removeAttr('readonly'); $('#EmlDstPopPer').removeAttr('readonly'); $('#lblEmlDstPopSil').removeAttr('readonly'); $('#EmlDstPopSil').removeAttr('readonly'); break; case "fsabonnements": $('#EmlDstSubsCheckBoxPer').removeAttr('disabled'); $('#EmlDstSubsCheckBoxSil').removeAttr('disabled'); break; case "fsbase": $('#EmlDstAllPer').removeAttr('disabled'); $('#EmlDstAllSil').removeAttr('disabled'); break; case "fsrpopulation": $('#lblEmlFltPopPer').removeAttr('readonly'); $('#EmlFltPopPer').removeAttr('readonly'); $('#lblEmlFltPopSil').removeAttr('readonly'); $('#EmlFltPopSil').removeAttr('readonly'); break; case "fsrmessage": $('#lblEmlFltReadEmlID').removeAttr('readonly'); $('#EmlFltReadEmlID').removeAttr('readonly'); break; case "fsrsuivi": $('#lblEmlFltLinkEmlID').removeAttr('readonly'); $('#EmlFltLinkEmlID').removeAttr('readonly'); $('#EmlFltLinkElnID').removeAttr('readonly'); break; case "fsrabonnement": $('#EmlFltSubs').removeAttr('readonly'); break; } } //check this radio and uncheck other function radioChecking(radio){ $('input[type=radio][name!=destinataires][name!=exp][name!='+radio.name+']').removeAttr("checked"); } var blocksIds2 = new Array("filtrage", "fsrpopulation", "fsrmessage", "fsrsuivi", "fsrabonnement"); function disableOtherBlocksGroup2(bId){ for (indx in blocksIds2){ if (blocksIds2[indx] != bId){ disableBlockGroup2(blocksIds2[indx]); } } enabledThisBlock(bId); } function disableBlockGroup2(bId){ switch (bId) { case "filtrage": break; case "fsrpopulation": emptyField('lblEmlFltPopPer'); emptyField('EmlFltPopPer'); emptyField('lblEmlFltPopSil'); emptyField('EmlFltPopSil'); break; case "fsrmessage": emptyField('lblEmlFltReadEmlID'); emptyField('EmlFltReadEmlID'); break; case "fsrsuivi": emptyField('lblEmlFltLinkEmlID'); emptyField('EmlFltLinkEmlID'); emptySelect('linksSelectBox'); break; case "fsrabonnement": emptySelect('EmlFltSubs'); break; } } function doEmlFltLinkEmlIDChange(){ if ($('#EmlFltLinkEmlID').val() != "") { loadLinks(); } } function selectSmallTab(tabSetName, sTabPos) { // If the window is not fully loaded, then tab selection is not allowed // the ed_loaded property is set @ global_js level var selectedSTab = eval(tabSetName + "_selectedSTab"); var nbSTabs = eval(tabSetName + "_nbSTabs"); if (selectedSTab == sTabPos) { return; } if (sTabPos != 0) { if (!communsFieldsConditions()) return; if (!destConditions()) return; if (!filerSupp()) return; if (!filtreCondition()) return; if (!correspondance()) return; if ((!isMassEmailingSaved) && ($("input[name='id']").val() == "")) { if (!saveMassEmailing()) return; } //selectSmallTab2(tabSetName, sTabPos, selectedSTab); } if (!saveEmailLinks()) return; var f = document.forms[0]; if (!window.document.ed_loaded) return; var msgSubject = f.MsgSubject.value; if (isMessageLoaded) { if ((!isEmptyContents()) && (msgSubject == '')) { alert('<fl:getMessage code="M6033" alt="Veuillez saisir un sujet."/>'); } else if (!(isEmptyContents()) && (msgSubject != '')) { saveMessageContent(); selectSmallTab2(tabSetName, sTabPos, selectedSTab); } else { selectSmallTab2(tabSetName, sTabPos, selectedSTab); } } else { selectSmallTab2(tabSetName, sTabPos, selectedSTab); } } function selectSmallTab2(tabSetName, sTabPos, selectedSTab) { // 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); } } var isMonitoringDivLoaded = false; function loadMonitoringDiv(){ var iframeSuiviBody = $("#frame_monitoring").contents().find("body"); var img = '<img src="<fl:webapp/>/icons/chargement.gif" border="0" alt="<fl:getMessage code="L639B" alt="Chargement ..."/>">'; var content = '<table style="width:100%; height:100%"><tr><td style="vertical-align:middle;text-align: center;"><span style="color: #777777; font-size: 11px; font-family : Arial,Verdana,sans-serif;">'+ img +'</span></td></tr></table>'; iframeSuiviBody.append(content); $("#frame_monitoring").attr('src', '<fl:webapp/>/edit_massemailing_links.fl?id='+$("input[name='id']").val()); isMonitoringDivLoaded = true; } function saveEmailLinks(){ if (isMonitoringDivLoaded){ var iframeSuivi = document.getElementById('frame_monitoring'); if ((iframeSuivi.src != '') && (iframeSuivi.contentWindow.saveEmailLinks)){ if (!iframeSuivi.contentWindow.saveEmailLinks()) return false; } } isMonitoringDivLoaded = false; return true; } function testSilFusionFields() { doAjax('<fl:webapp/>/check_sil_fusion_fields.fl?id=<%= id %>'); } function doRefresh() { var f = window.document.forms[0]; presentFieldsValue(); f.action = "<fl:link url="/refresh_massemailing.fl"/>"; f.submit(); } function doOnLoad() { } </script> <fl:form action="/save_massemailing.fl" bean="MassEmailing" > <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"F7033\",\"MassEmailing\") %>" listTitle="<%= Utils.getMessage(session, \"F7033\", false, true, \"MassEmailing\") %>" ou="<%= \"/edit_massemailing.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <%--for linksSelectBox --%> <input type="hidden" value="" name="EmlFltLinkElnID" id="EmlFltLinkElnID"> <input type="hidden" value="" name="EmlSndType" id="EmlSndType"> <input type="hidden" value="" name="EmlMailSendField" id="EmlMailSendField"> <%-- nbr option to be checked int destinataire group --%> <input type="hidden" name="EmlDstType" id="EmlDstType"> <%-- status of EmlFltType radio --%> <input type="hidden" name="EmlFltType" id="EmlFltType" /> <%-- type de destination --%> <input type="hidden" name="EmlTypeDst" id="EmlTypeDst" /> <%-- date and time --%> <input type="hidden" value="" name="EmlSndDate" id="EmlSndDate"> <input type="hidden" value="" name="EmlReSndDate" id="EmlReSndDate"> <input type="hidden" name="EmlDstSubsSil" id="EmlDstSubsSil"> <input type="hidden" name="EmlDstSubsPer" id="EmlDstSubsPer"> <input type="hidden" name="msgID" id="msgID"> <input type="hidden" name="langageID" id="langageID" value="<%= langageID%>"> <input name="EmlStatus" id="EmlStatus" type="hidden" value="<%= emlStatus %>"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="EmlName" labelClassName="titreFiche" /> </td> <td class="fieldTitreFiche"> <fl:input property="EmlName" mandatoryMsgCode="L63B1" /> </td> </tr> </table> </td> </tr> <tr> <td colspan="3" class="ligne_separation" /> </tr> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="EmlCode" mandatoryMsgCode="L6144" unicityMsgCode="M60E3" onchange="emlCodeChange()" /> <fl:fieldEdit property="EmlRegroupement" mandatoryMsgCode="M9007"> <fl:suggest table="MassEmailing" field="EmlRegroupement" caseSensitive="false" maxLimit="20" trigger="1" /> </fl:fieldEdit> <tr class="fieldline"> <td class="dataLabel"><fl:label field="EmlType"/></td> <td class="dataValue"> <div> <!-- <select name="EmlType" class="input select" onchange="doRefresh()"> --> <select name="EmlType" class="input select"> <fl:getProperty name="MassEmailing" property="EmlType" alt="" except="CBULKFAX" type="select" edit="true"/> </select> </div> </td> </tr> </table> </td> <td class="separation"> <div class="separation"></div> </td> <td class="column2"> <table class="data_column" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel" id="EmlStatus_label"> <div> <fl:label forInput="EmlStatusForDisplay" field="EmlStatus" /> </div> </td> <td class="dataValue" id="EmlStatus_value"> <div class="input text"> <input readonly disabled class="input text" name="EmlStatusForDisplay" id="EmlStatusForDisplay" value="<fl:getProperty name="MassEmailing" property="EmlStatus" alt="<%= emlStatusDisp %>"/>"> </div> </td> </tr> <fl:fieldEdit property="EmlOwner" mandatoryMsgCode="L7019" /> </table> </td> </tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="MassMailingTabs"> <fl:sTab id="RECIPIENTS" title="<%= Utils.getMessage(session, \"L0006\", \"Destinataires\") %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <%-- Bloc 1 : Destinataires --%> <td class="column2"> <fieldset class="fieldset" id="fsetdest"> <legend class="legend"> <fl:getMessage code="L7017" alt="Choisir les destinataires" /> </legend> <table class="container" cellpadding="0"> <%-- Ciblages --%> <tr class="ligne_separation"> <td colspan="0"></td> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsciblages" class="fieldset"> <legend class="legend"> <input type="radio" name="destinataires" id="Sel" <%=((emlDstType != null) && (emlDstType == 0)) ? "checked" : "" %> onclick="disableOtherBlocksGroup1('fsciblages');"> <fl:getMessage code="L6036" alt="Ciblages" /> </legend> <br> <div id="div_ciblages"> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlDstSelPer" query="<%=WebUtils.urlEncode(context,perQuery)%>" /> <fl:fieldEdit property="EmlDstSelSil" query="<%=WebUtils.urlEncode(context,silQuery)%>" onchange="testSilFusionFields()" /> </table> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi" /> </span> </div> </fieldset> </td> </tr> <%-- Populations --%> <tr class="ligne_separation"> <td colspan="0"></td> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fspopulations" class="fieldset"> <legend class="legend"> <input type="radio" name="destinataires" id="Pop" <%=((emlDstType != null) && (emlDstType == 1)) ? "checked" : "" %> onclick="disableOtherBlocksGroup1('fspopulations');"> <fl:getMessage code="L6037" alt="Populations" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlDstPopPer" query="PopIsPer='1'"> <fl:fieldBackgroundAction ajaxAction="refresh_population_ajax.fl" iconUrl="/icons/ico/refresh.gif" labelCode="L6637" /> </fl:fieldEdit> <fl:fieldEdit property="EmlDstPopSil" query="PopIsSil='1'" onchange="testSilFusionFields()"> <fl:fieldBackgroundAction ajaxAction="refresh_population_ajax.fl" iconUrl="/icons/ico/refresh.gif" labelCode="L6637" /> </fl:fieldEdit> </table> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"><fl:getMessage code="L7016" alt="Cible générée lors de la sélection" /> </span> </fieldset> </td> </tr> <%-- Abonnements --%> <tr class="ligne_separation"> <td colspan="0"></td> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsabonnements" class="fieldset"> <legend class="legend"> <input type="radio" name="destinataires" id="SubsCheckBox" <%=((emlDstType != null) && (emlDstType == 2)) ? "checked" : "" %> onclick="disableOtherBlocksGroup1('fsabonnements');"> <fl:getMessage code="L65E8" alt="Abonnements" /> </legend> <br> <table class="container" cellpadding="0"> <tr class="fieldline"> <td id="massEmailingTypeSelectBox_label" class="dataLabel"> <div> <label for="massEmailingTypeSelectBox" title="<fl:getMessage code="F7075" alt="News letter"/>"> <fl:getMessage code="F7075" alt="News letter" /> </label> </div> </td> <td id="massEmailingTypeSelectBox_value" class="dataValue"> <div class="input select"> <select id="massEmailingTypeSelectBox" class="input select"> <% if (!hmapMassEmailingType.isEmpty() && hmapMassEmailingType != null){ for (Entry<String, String> currentEntry : hmapMassEmailingType.entrySet()) { String idType = currentEntry.getKey(); String type = (String)currentEntry.getValue(); %><option value='<%=Utils.formatToWeb(idType, false) %>' <%= massEmailingTypeOptionSelectedId != null && !"".equals(massEmailingTypeOptionSelectedId) && massEmailingTypeOptionSelectedId.equals(idType) ? "selected" : "" %>><%= Utils.formatToWeb(type, false) %></option> <% } } %> </select> </div> </td> </tr> <tr class="fieldline"> <td id="EmlDstSubsCheckBoxPer_label" class="dataLabel"> <div> <label for="EmlDstSubsCheckBoxPer" title="<fl:getMessage code="F3019" alt="Personnes"/>"> <fl:getMessage code="F3019" alt="Personnes" /> </label> </div> </td> <td id="EmlDstSubsCheckBoxPer_value" class="dataValue"> <input type="checkbox" class="checkbox" id="EmlDstSubsCheckBoxPer" name="EmlDstSubsCheckBoxPer" <%=(isDstSubsPerChecked) ? "checked" : "" %>> </td> </tr> <tr class="fieldline"> <td id="EmlDstSubsCheckBoxSil_label" class="dataLabel"> <div> <label for="EmlDstSubsCheckBoxSil" title="<fl:getMessage code="L6086" alt="Silhouettes"/>"> <fl:getMessage code="L6086" alt="Silhouettes" /> </label> </div> </td> <td id="EmlDstSubsCheckBoxSil_value" class="dataValue"> <input type="checkbox" class="checkbox" id="EmlDstSubsCheckBoxSil" name="EmlDstSubsCheckBoxSil" <%=(isDstSubsSilChecked) ? "checked" : "" %>> </td> </tr> </table> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi" /> </span> </fieldset> </td> </tr> <%-- Toute la base --%> <tr> <td colspan="0" class="ligne_separation" /> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsbase" class="fieldset"> <legend class="legend"> <input type="radio" name="destinataires" id="All" <%=((emlDstType != null) && (emlDstType == 3)) ? "checked" : "" %> onclick="disableOtherBlocksGroup1('fsbase');"> <fl:getMessage code="L7012" alt="Toute la base" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlDstAllPer" /> <fl:fieldEdit property="EmlDstAllSil" /> </table> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi" /> </span> </fieldset> </td> </tr> </table> </fieldset> </td> <td class="separation"> <div class="separation"></div> </td> <%-- Bloc 2 : Filtrage supplémentaire --%> <td class="column2"> <fieldset id="filtrage" class="fieldset"> <legend class="legend"> <fl:getMessage code="L7018" alt="Choisir un filtrage supplémentaire" /> </legend> <table class="container" cellpadding="0"> <%-- Règle population --%> <tr class="ligne_separation"> <td colspan="0"></td> </tr> <tr> <td> <input id="nofilter" name="nofilter" type="radio" class="radio" onclick="radioChecking(this);disableOtherBlocksGroup2('filtrage');" <%= (emlFltType == null || emlFltType.equals("true")) ? "checked":"" %>> <fl:getMessage code="L7024" alt="aucun filtre supplémentaire" /> </td> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsrpopulation" class="fieldset"> <legend class="legend"> <fl:getMessage code="F7034" alt="Règle population" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlFltPopOp" type="buttons" onclick="radioChecking(this);disableOtherBlocksGroup2('fsrpopulation');" /> <fl:fieldEdit property="EmlFltPopPer" query="PopIsPer='1'" /> <fl:fieldEdit property="EmlFltPopSil" query="PopIsSil='1'" /> </table> </fieldset> </td> </tr> <%-- Règle suivi emailing --%> <tr> <td colspan="0" class="ligne_separation" /> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsrmessage" class="fieldset"> <legend class="legend"> <fl:getMessage code="L7013" alt="Règle suivi emailing" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlFltReadMsgOp" type="buttons" onclick="radioChecking(this);disableOtherBlocksGroup2('fsrmessage');" /> <fl:fieldEdit property="EmlFltReadEmlID" query="EmlStatus:RefVal='SENT'" /> </table> </fieldset> </td> </tr> <%-- Règle suivi de liens --%> <tr> <td colspan="0" class="ligne_separation" /> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsrsuivi" class="fieldset"> <legend class="legend"> <fl:getMessage code="L7014" alt="Règle suivi de liens" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlFltLinkOp" type="buttons" onclick="radioChecking(this);disableOtherBlocksGroup2('fsrsuivi');" /> <fl:fieldEdit property="EmlFltLinkEmlID" query="EmlStatus:RefVal='SENT'" /> <tr class="fieldline"> <td class="dataLabel" id="EmlFltLinkElnID_label"> <div> <label title="<fl:getMessage code="F7037" alt="le lien"/>" for="EmlFltLinkElnID"> <fl:getMessage code="F7037" alt="le lien" /> </label> </div> </td> <td class="dataValue" id="EmlFltLinkElnID_value"> <div class="input select" id="div_links"></div> </td> <script type="text/javascript"> $("div_links").ready(function(){ loadLinks(); }); function loadLinks(){ var emailIDCurrent = $("input[name='id']").val(); var ajaxURL = "<fl:webapp/>/get_links.fl?emailID="+$('#EmlFltLinkEmlID').val()+"&emailIDCurrent="+emailIDCurrent; doAjax(ajaxURL, linksCallBack); } function linksCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_links").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } $('#EmlFltLinkEmlID_icons > a:nth-child(2)').click(function() { $("#div_links").html("<select class=\"input select\" name=\"linksSelectBox\" id=\"linksSelectBox\"><option value=\"\"> </option></select>"); }); </script> </tr> </table> </fieldset> </td> </tr> <%-- Règle abonnements --%> <tr> <td colspan="0" class="ligne_separation" /> </tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsrabonnement" class="fieldset"> <legend class="legend"> <fl:getMessage code="L7015" alt="Règle abonnements" /> </legend> <br> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlFltSubsOp" type="buttons" onclick="radioChecking(this);disableOtherBlocksGroup2('fsrabonnement');" /> <fl:fieldEdit property="EmlFltSubs" alt=" "/> </table> </fieldset> </td> </tr> </table> </fieldset> </td> </tr> </table> </fl:sTab> <fl:sTab id="MESSAGE" title="<%= Utils.getMessage(session, \"F6002\", \"Message\") %>" onselect="javascript:loadMessage($('#langageID').val());setMessageLoaded();"> <div id="message-editor" class="message-editor"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="40%"> <table class="container"> <tr class="fieldline"> <td class="dataLabel" id="EmlMsgID_label"> <div> <label title="<fl:getMessage code="L6352" alt="Modèle"/>" for="EmlMsgID"> <fl:getMessage code="L6352" alt="Modèle" /> </label> </div> </td> <td class="dataValue" id="EmlMsgID_value"> <div class="input fieldTable"> <table cellspacing="0" cellpadding="0" class="fieldTable"> <tr valign="top"> <td class="principalText bigFieldPart"> <div class="fobLeftDiv"> <input type="hidden" value="" class="input" name="EmlMsgID" id="EmlMsgID"> <input type="text" class="input fob" onfocus="displayOnFocus(this);acResizeDisplayDiv(this);" autocomplete="off" value="" name="lblEmlMsgID" id="lblEmlMsgID" style="width: 150px;"> </div> </td> <td class="smallFieldPart"> <span id="EmlMsgID_icons"> <table height="100%" width="100%"> <tr> <td> <a href="javascript:var langCurrent = $('#langageID').val(); var win = window.open('<fl:webapp/>/select.fl?type=Messages&field=EmlMsgID&formIndex=0&query=MsgType:RefVal=\'MODELE\'||MsgLngRef=\''+langCurrent+'\'', 'SelectActor', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=800,height=400')"> <img title="<fl:getMessage code="A2003" alt="Sélectionner"/>" alt="<fl:getMessage code="A2003" alt="Sélectionner"/>" class="icon" src="<fl:webapp/>/icons/ico/rechercher.gif"> </a> </td> <td> <a href="javascript:var f = window.document.forms[0]; f.EmlMsgID.value = f.lblEmlMsgID.value = ''; acLastCompleteValues['lblEmlMsgID'] = ''; acLastCompleteValues['EmlMsgID'] = ''; void('')" class="fob"> <img title="<fl:getMessage code="A3005" alt="Vider le champ"/>" alt="<fl:getMessage code="A3005" alt="Vider le champ"/>" class="icon" src="<fl:webapp/>/icons/ico/supprimer.gif"> </a> </td> <td> <a href="javascript:loadModel($('#EmlMsgID').val());"> <img title="<fl:getMessage code="L7033" alt="Charger le modèle"/>" alt="<fl:getMessage code="L7033" alt="Charger le modèle"/>" class="icon" src="<fl:webapp/>/icons/ico/importer.gif"> </a> </td> <td> <a href="javascript:saveModel();"> <img title="<fl:getMessage code="L7032" alt="Sauver comme modèle"/>" alt="<fl:getMessage code="L7032" alt="Sauver comme modèle"/>" class="icon" src="<fl:webapp/>/icons/ico/exporter.gif"> </a> </td> </tr> </table> </span> <script language="javascript"> var _EmlMsgID_query = "MsgType:RefVal='MODELE'";runOnTime("installFobAC(document.forms[0].lblEmlMsgID);", 1000); </script> </td> </tr> </table> </div> </td> </tr> </table> </td> <td width="12%"></td> <td width="14%"></td> <td width="9%"></td> <td width="25%"> <div id="div_language"></div> </td> <td width="10%"> <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:fullSreenMessageEditor();" style="cursor: pointer;"> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"> <td></td> </tr> <tr> <td class="titrePartie"> <fl:label field="MsgSubject" /> </td> </tr> <tr> <td class="dataValue noPaddingLeft"> <fl:input name="messages" property="MsgSubject" /> </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="MsgBody" /> </td> </tr> <tr> <td class="dataValue noPaddingLeft"> <textarea name="MsgBody" id="MsgBody"> </textarea> </td> </tr> <tr class="ligne_separation"> <td></td> </tr> <tr class="ligne_separation"> <td></td> </tr> <tr <%= isEMail ? "" : "style='display:none;'" %>> <td class="titrePartie"> <fl:label field="MsgBodyText" /> </td> </tr> <tr <%= isEMail ? "" : "style=\"display:none;\"" %>> <td class="dataValue noPaddingLeft"> <textarea name="MsgBodyText" id="MsgBodyText" style="width: 100%;"> </textarea> </td> </tr> <tr class="ligne_separation"> <td></td> </tr><tr class="ligne_separation"> <td></td> </tr> </table> <div id="div_attachement"></div> </div> </fl:sTab> <fl:sTab id="SENDING" title="<%= Utils.getMessage(session, \"L700F\", \"Envoi\") %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2" colspan="2"> <fieldset class="fieldset"> <legend class="legend"> <fl:getMessage code="L7036" alt="Expéditeur" /> </legend> <br> <table class="container" cellpadding="0"> <% if (emlType == null || !isFax) { %> <tr class="fieldline"> <td class="column2" colspan="2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel" id="variable_label"> <div> <label title="<fl:getMessage code="L7038" alt="variable"/>" for="variable"> <input type="radio" name="exp" id="exp_variable" value="variable" <%= ((emlSndType != null) && (emlSndType.equals("variable")))?"checked":"" %>> <fl:getMessage code="L7038" alt="variable" /> </label> </div> </td> <td class="dataValue" id="variable_value"> <div> <fl:input property="EmlSndFldID" comboFobThreshold="0" query="<%=WebUtils.urlEncode(context, sndQuery)%>" /> </div> </td> </tr> </table> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"> <fl:getMessage code="L7035" alt="sans gestion des retours en erreur" /> </span> </td> </tr> <tr class="ligne_separation"> <td colspan="2"></td> </tr> <% } %> <tr class="fieldline"> <td class="column2" colspan="2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel" id="fixe_label"> <div> <label title="<fl:getMessage code="L7039" alt="fixe"/>" for="fixe"> <input type="radio" name="exp" id="exp_fixe" value="fixe" <%= (((emlSndType != null) && (emlSndType.equals("fixe"))) || isFax) ? "checked" : "" %>> <fl:getMessage code="L7039" alt="fixe" /> </label> </div> </td> <td class="dataValue" id="fixe_value"> <div> <fl:input property="EmlSndEnsID" comboFobThreshold="0" /> </div> </td> </tr> </table> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <span style="font-size: 11px; font-family: Arial, Verdana, sans-serif; font-style: italic"> <fl:getMessage code="L7034" alt="avec gestion des retours en erreur" /> </span> </td> </tr> </table> </fieldset> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <fieldset class="fieldset"> <legend class="legend"> <fl:getMessage code="L7037" alt="Règle adresse email" /> </legend> <br> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <fl:fieldEdit property="EmlExcBlackList" /> <fl:fieldEdit property="EmlExclWrongEmail" /> </td> </tr> <tr class="fieldline"> <td class="column2"> <div> <label title="<fl:getMessage code="L7040" alt="envoyer en priorité à "/>"> <fl:getMessage code="L7040" alt="envoyer en priorité à " /> </label> </div> </td> </tr> </table> <table width="100%"> <tr> <td width="40%" valign="middle"> <div style="width: 100%; height: 100%"> <select id="allMailSelectBox" class="input select"> <% if (!hmapAllEmailDisplay.isEmpty() && hmapAllEmailDisplay != null){ for (Entry<String, String> currentEntry : hmapAllEmailDisplay.entrySet()) { String code = currentEntry.getKey(); String display = (String)currentEntry.getValue(); %> <option value='<%=Utils.formatToWeb(code, false) %>'><%= Utils.formatToWeb(display, false) %></option> <% } } %> </select> </div> </td> <td width="20%" align="center"> <div> <a href="javascript:moveTopMost()"><img src="<fl:webapp/>/icons/ico/flecheHdouble.gif" id="topmost" title="<fl:getMessage code="L703E" alt="le plus haut"/>"> </a> <br /> <a href="javascript:moveUp()"><img src="<fl:webapp/>/icons/ico/flecheH.gif" id="moveup" title="<fl:getMessage code="L7081" alt="monter"/>"> </a> <br /> <a href="javascript:moveRight()"><img src="<fl:webapp/>/icons/ico/flecheD.gif" id="moveright" title="<fl:getMessage code="L7082" alt="la droite"/>"> </a> <br /> <a href="javascript:moveDown()"><img src="<fl:webapp/>/icons/ico/flecheB.gif" id="movedown" title="<fl:getMessage code="L7083" alt="descendre"/>"> </a> <br /> <a href="javascript:moveBottomMost()"><img src="<fl:webapp/>/icons/ico/flecheBdouble.gif" id="bottommost" title="<fl:getMessage code="L7084" alt="le plus bas"/>"> </a> <br /> <a href="javascript:deleteEntry()"><img src="<fl:webapp/>/icons/ico/supprimer.gif" id="bottomdelete" title="<fl:getMessage code="L7085" alt="supprimer"/>"> </a> <br /> </div> </td> <td width="40%"> <div style="height: 100%; width: 100%"> <select id="mailSelectBox" size="8" style="width: 200px;" class="chpsTextObligatoire"> <% if (!hmapEmailDisplay.isEmpty() && hmapEmailDisplay != null){ for (Entry<String, String> currentEntry : hmapEmailDisplay.entrySet()) { String code = currentEntry.getKey(); String display = (String)currentEntry.getValue(); %> <option value='<%=Utils.formatToWeb(code, false) %>'><%= Utils.formatToWeb(display, false) %></option> <% } } %> </select> </div> </td> </tr> </table> </fieldset> </td> </tr> </table> </td> <td class="separation"> <div class="separation"></div> </td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="EmlSndTestGrp" comboFobThreshold="0" query="PopGenType:RefVal='MAILTEST'"> <fl:fieldBackgroundAction ajaxAction="refresh_population_ajax.fl" iconUrl="/icons/ico/refresh.gif" labelCode="L6637" /> </fl:fieldEdit> <tr class="fieldline"> <td id="EmlSndDate_label" class="dataLabel"> <div> <label for="EmlSndDate" title="<fl:getMessage code="F700E" alt="Date dâ??envoi"/>"> <fl:getMessage code="F700E" alt="Date dâ??envoi" /> </label> </div> </td> <td style="white-space: nowrap; width: 50%;" class="dataValue"> <input type="text" onblur="ctrlDateField(this, 'Veuillez saisir une date correcte du type jj/mm/aaaa.');" maxlength="10" size="10" value="<%= strDate %>" name="lblDate" id="lblDate" class="input Date"> <a onmouseout="window.status=' '; return true" onmouseover="window.status='Afficher le calendrier';return true;" href="JavaScript:openCalendar(document.forms[0].lblDate)"> <img class="icon" src="<fl:webapp/>/icons/ico/clock_neutre.gif"> </a> <input type="text" onblur="ctrlHourField(this, 'Veuillez saisir une heure correcte.');" maxlength="5" size="5" value="<%= strTime %>" class="input Time" name="lblTime" id="lblTime"> </td> </tr> <fl:fieldEdit property="EmlResend" /> <tr class="fieldline"> <td id="EmlReSndDate_label" class="dataLabel"> <div> <label for="EmlReSndDate" title="<fl:getMessage code="F7088" alt="Date de réenvoi"/>"> <fl:getMessage code="F7088" alt="Date de réenvoi" /> </label> </div> </td> <td style="white-space: nowrap; width: 50%;" class="dataValue"> <input type="text" onblur="ctrlDateField(this, 'Veuillez saisir une date correcte du type jj/mm/aaaa.');" maxlength="10" size="10" value="<%= strReDate %>" name="lblReDate" id="lblReDate" class="input Date"> <a onmouseout="window.status=' '; return true" onmouseover="window.status='Afficher le calendrier';return true;" href="JavaScript:openCalendar(document.forms[0].lblReDate)"> <img class="icon" src="<fl:webapp/>/icons/ico/clock_neutre.gif"> </a> <input type="text" onblur="ctrlHourField(this, 'Veuillez saisir une heure correcte.');" maxlength="5" size="5" value="<%= strReTime %>" class="input Time" name="lblRETime" id="lblReTime"> </td> </tr> <fl:fieldEdit property="EmlSndEosID" comboFobThreshold="0" mandatoryMsgCode="L703A" /> </table> </td> </tr> </table> </fl:sTab> <% if (emlType == null || isEMail) { %> <fl:sTab id="MONITORING" title="<%= Utils.getMessage(session, \"L7010\", \"Suivi\") %>" onselect="loadMonitoringDiv();"> <IFRAME id="frame_monitoring" width="100%" height="400px" frameborder="0" scrolling="auto" > </IFRAME> </fl:sTab> <% } %> </fl:smallTabs> </fl:bigTabs> </fl:form> <!-- 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 simpleLinkURL = ''; var simpleLinkText = ''; var codeLng = 'fr_FR'; var editor = CKEDITOR.replace('MsgBody', { <%if(hasFileStorageService){%> filebrowserImageBrowseUrl : '<fl:webapp/>/js/wysiwyg/filemanager/index.jsp?type=image', filebrowserUploadUrl : '<fl:webapp/>/ck_upload.fl', filebrowserBrowseUrl : '<fl:webapp/>/js/wysiwyg/filemanager/index.jsp', filebrowserWindowWidth : 1024, filebrowserWindowHeight : 500, resize_enabled : false, height : "350", <%}%> toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'], '/', ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source','-','FusionButton','SimpleLinkButton','CustomFormButton',<%if(hasUrlTrackingService){%>,'TrackingLinkButton','SnippetButton'<%}%>], ['TranslateButton'] ], contentsCss : '<fl:webapp/>/css/empty.css', fullPage: true }); CKEDITOR.on( 'dialogDefinition', function( ev ){ var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ){ dialogDefinition.removeContents('advanced'); // Get a reference to the 'Image Info' tab. var infoTab = dialogDefinition.getContents('info'); // Remove unnecessary widgets from the 'Image Info' tab. infoTab.remove('txtHeight'); infoTab.remove('txtWidth'); infoTab.remove('txtBorder'); infoTab.remove('txtHSpace'); infoTab.remove('txtVSpace'); infoTab.remove('cmbAlign'); infoTab.remove('btnLockSizes');// infoTab.remove('btnResetSize'); infoTab.remove('previewImage'); infoTab.remove('ImagePreviewLoader'); infoTab.remove('ImagePreviewBox'); infoTab.remove('previewImage'); } }); editor.on('pluginsLoaded', function( ev ){ //Fusion button editor.addCommand('fusionCommand', { exec : function(editor) { getFusionField(); } }); editor.ui.addButton('FusionButton', { label : '<fl:getMessage code="F7066" alt="Fusion" js="true"/>', command : 'fusionCommand', icon: '<fl:webapp/>/icons/fusion.gif' }); //Tracking link button editor.addCommand('tlinkCommand', { exec : function(editor) { getTrackingLink(); } }); editor.ui.addButton('TrackingLinkButton', { label : '<fl:getMessage code="L702E" alt="Lien Suivi" js="true"/>', command : 'tlinkCommand', icon: '<fl:webapp/>/icons/link_go.gif' }); //Simple link button editor.addCommand('slinkCommand', { exec : function(editor) { getSimpleLink(); } }); editor.ui.addButton('SimpleLinkButton', { label : '<fl:getMessage code="L6180" alt="Lien" js="true"/>', command : 'slinkCommand', icon: '<fl:webapp/>/icons/link.gif' }); //custom form button editor.addCommand('scustomFormCommand', { exec : function(editor) { getCustomFormPopUp(); } }); editor.ui.addButton('CustomFormButton', { label : '<fl:getMessage code="L81B4" alt="Questionnaires personnalisés" js="true"/>', command : 'scustomFormCommand', icon: '<fl:webapp/>/icons/script_link.png' }); //Snippet Email button editor.addCommand('snippetCommand', { exec : function(editor) { getSnippet(); } }); editor.ui.addButton('SnippetButton', { label : '<fl:getMessage code="L706A" alt="Snippet" js="true"/>', command : 'snippetCommand', icon: '<fl:webapp/>/icons/snippet.gif' }); //Translation button editor.addCommand('translateCommand', { exec : function(editor) { window.open('translation_popup.fl?objSQL=Messages&id=<%=id%>&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' }); }); editor.on('doubleclick', function( ev ){ /* CKEDITOR.SELECTION_NONE (1): No selection. CKEDITOR.SELECTION_TEXT (2): Text is selected or collapsed selection. CKEDITOR.SELECTION_ELEMENT (3): A element selection. */ var element; if(editor.getSelection().getType() == CKEDITOR.SELECTION_ELEMENT){ // FF element = editor.getSelection().getSelectedElement(); } else if(editor.getSelection().getType() == CKEDITOR.SELECTION_TEXT){ // IE7, IE8, chrome element = editor.getSelection().getStartElement(); } if (element.hasAttribute('href')){ if (element.hasAttribute('ed:id')){ trackingLinkID = element.getAttribute('ed:id'); getTrackingLink(trackingLinkID); } else { simpleLinkURL = element.getAttribute('href'); simpleLinkText = element.getText(); getSimpleLink(); } } ev.stop(); }); var fusionFieldPopUp; var snippetPopUp; var trackingPopUp; function insertFusionField(sqlName, lbl, id){ var value = '<span id="' + id + '" title="' + sqlName + '" ed:fusionfield="'+sqlName+'">$$' + lbl + '$$</span> '; if ( editor.mode == 'wysiwyg' ){ editor.insertHtml(value); } if (fusionFieldPopUp != null) { window.setTimeout("fusionFieldPopUp.focus()",400); } } function insertSnippet(content){ if ( editor.mode == 'wysiwyg' ){ editor.insertHtml(decodeURIComponent(content)); } if (snippetPopUp != null) { window.setTimeout("snippetPopUp.focus()",400); } } function insertTrackingLink(link, text, idel) { var value = '<a href="' + link + '" class="linktracking" style="color: red;" ed:id="' + idel + '">' + text + '</a>'; if ( editor.mode == 'wysiwyg' ) { editor.insertHtml(value); } if (trackingPopUp != null) { trackingPopUp.close(); } } function insertCustomFormLink(text,link){ var value = '<a class="customform" href="' + link + '">' + text + '</a>'; var element = CKEDITOR.dom.element.createFromHtml(value); editor.insertElement(element); } function insertSimpleLink(link, text){ var value = '<a href="' + link + '">' + text + '</a>'; if ( editor.mode == 'wysiwyg' ){ editor.insertHtml(value); } } function insertContents(value){ editor.setData(value); } function getContents(){ return editor.getData(); } function isEmptyContents(){ return ( ("" == getContents()) || ('<br />\n' == getContents()) || ('<br />' == getContents())); } function getFusionField(){ if (desType != null) { fusionFieldPopUp = window.open('<fl:link list="false" url="/fusion_popup.fl"/>&destype='+desType, '<fl:getMessage code="F7066" alt="Fusion"/>', 'toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, directories=no, status=no, width=1000, height=330'); } } function getTrackingLink(elnID){ if (elnID == null) elnID = ""; var urlPopUp = '<fl:webapp/>/edit_tracking_link.fl?meID=' + $("input[name='id']").val() + '&elnID=' + elnID; trackingPopUp = window.open(urlPopUp, 'TrackedUrl', 'toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no,width=600,height=250'); } function getSnippet(){ var urlSnippet = '<fl:webapp/>/get_snippet.fl?EmtLanguage=' + codeLng; snippetPopUp = window.open(urlSnippet,'Snippet', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no,width=600, height=200'); } function getSimpleLink(){ window.open('<fl:link list="false" url="/edit_simple_link.fl"/>','SimpleLink', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no, width=600, height=200'); } function getCustomFormPopUp(){ window.open('<fl:link list="false" url="/customform_popup.fl"/>','CustomForm', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no, width=600, height=200'); } function setMsgSubject(value){ $("#MsgSubject").val(value); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de