📄 writeemail.ftl
字号:
<#-- * Copyright (C) 2006 Open Source Strategies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA--><#-- Copyright (c) 2005-2006 Open Source Strategies, Inc. --><script type="text/javascript"> <!-- function text_mode() { document.writeEmailForm.action = "<@ofbizUrl>${parameters.thisPage?default("writeEmail")}</@ofbizUrl>"; document.writeEmailForm.contentMimeTypeId.value = "text/plain"; document.writeEmailForm.submit(); } function html_mode() { document.writeEmailForm.action = "<@ofbizUrl>${parameters.thisPage?default("writeEmail")}</@ofbizUrl>"; document.writeEmailForm.contentMimeTypeId.value = "text/html"; document.writeEmailForm.submit(); } function save_for_later() { document.writeEmailForm.action = "<@ofbizUrl>saveEmail</@ofbizUrl>"; document.writeEmailForm.submit(); } --></script><div class="form"><form name="writeEmailForm" method="POST" action="<@ofbizUrl>sendEmail</@ofbizUrl>"> <input type="hidden" name="contactMechIdTo" value="${parameters.contactMechIdTo?if_exists}"></input> <input type="hidden" name="partyId" value="${parameters.internalPartyId?if_exists}"></input> <#-- for passing to viewAccount/viewContact/viewLead when form finishes --> <input type="hidden" name="donePage" value="${parameters.donePage?if_exists}"></input> <input type="hidden" name="contentMimeTypeId" value="${parameters.contentMimeTypeId?default("text/plain")}"></input> <input type="hidden" name="datetimeStarted" value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()}"></input> <#-- for now we hardcode the start time --> <#-- these our set if we have a saved email --> <input type="hidden" name="communicationEventId" value="${parameters.communicationEventId?if_exists}"></input> <input type="hidden" name="workEffortId" value="${parameters.workEffortId?if_exists}"></input> <div class="formRow"> <span class="formLabelRequired">${uiLabelMap.CommonFrom}</span> <span class="formInputSpan"> <select name="contactMechIdFrom" class="inputBox"> <#list userEmailAddresses as email> <#if parameters.fromEmail?exists && parameters.fromEmail == email.infoString><#assign selected = "selected"></#if> <option value="${email.contactMechId}" ${selected?if_exists}>${email.infoString}</option> </#list> </select> </span> </div> <div class="formRow"> <span class="formLabelRequired">${uiLabelMap.CommonTo}</span> <span class="formInputSpan"> <input type="text" name="toEmail" class="inputBox" size="60" value="${parameters.toEmail?if_exists}"></input> </span> </div> <div class="formRow"> <span class="formLabel">${uiLabelMap.CrmRecepientParty}</span> <span class="formInputSpan"> <input type="text" name="internalPartyId" class="inputBox" size="20" maxlength="20" value="${parameters.internalPartyId?if_exists}"></input> <a title="${uiLabelMap.CrmLookupInternalParties}" href="javascript:call_fieldlookup2(document.writeEmailForm.internalPartyId, 'LookupClients');"> <img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"></img> </a> </span> </div> <div class="formRow"> <span class="formLabel">${uiLabelMap.CrmOpportunity}</span> <span class="formInputSpan"> <input type="text" name="salesOpportunityId" class="inputBox" size="20" maxlength="20" value="${parameters.salesOpportunityId?if_exists}"></input> <a title="${uiLabelMap.CrmLookupOpportunities}" href="javascript:call_fieldlookup2(document.writeEmailForm.salesOpportunityId, 'LookupOpportunities');"> <img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"></img> </a> </span> </div> <div class="formRow"> <span class="formLabel">${uiLabelMap.CrmCase}</span> <span class="formInputSpan"> <input type="text" name="custRequestId" class="inputBox" size="20" maxlength="20" value="${parameters.custRequestId?if_exists}"></input> <a title="${uiLabelMap.CrmLookupCases}" href="javascript:call_fieldlookup2(document.writeEmailForm.custRequestId, 'LookupCases');"> <img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"></img> </a> </span> </div> <div class="formRow"> <span class="formLabelRequired">${uiLabelMap.PartySubject}</span> <span class="formInputSpan"> <input type="text" name="subject" class="inputBox" size="60" value="${parameters.subject?if_exists}"></input> </span> </div> <#if parameters.contentMimeTypeId?exists && parameters.contentMimeTypeId == "text/html"> <#assign textModeClass = "smallSubmit"> <#assign htmlModeClass = "smallSubmitDisabled"> <#assign textOnClick = "javascript:text_mode()"> <#assign htmlOnClick = ""> </#if> <div class="formRow"> <span class="formInputSpan"> <input type="button" class="${textModeClass?default("smallSubmitDisabled")}" onClick="${textOnClick?if_exists}" value="${uiLabelMap.CrmText}"></input> <input type="button" class="${htmlModeClass?default("smallSubmit")}" onClick="${htmlOnClick?default("javascript:html_mode()")}" value="${uiLabelMap.CrmHTML}"></input> </span> </div> <div class="formRow"> <span class="formLabelRequired">${uiLabelMap.CommonMessage}</span> <span class="formInputSpan"> <textarea name="content" class="inputBox" rows="5" cols="60">${parameters.content?if_exists}</textarea> </span> </div> <div class="formRow"> <span class="formInputSpan"> <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonSend}"></input> <input type="button" class="smallSubmit" value="${uiLabelMap.CrmSaveForLater}" onClick="javascript:save_for_later()"></input> </span> </div> <div class="spacer"> </div></form></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -