372 lines
16 KiB
HTML
372 lines
16 KiB
HTML
|
|
<!--
|
||
|
|
/**
|
||
|
|
* EditView for Email
|
||
|
|
*
|
||
|
|
* SugarCRM is a customer relationship management program developed by
|
||
|
|
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||
|
|
*
|
||
|
|
* This program is free software; you can redistribute it and/or modify it under
|
||
|
|
* the terms of the GNU General Public License version 3 as published by the
|
||
|
|
* Free Software Foundation with the addition of the following permission added
|
||
|
|
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||
|
|
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||
|
|
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||
|
|
*
|
||
|
|
* 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, see http://www.gnu.org/licenses or write to the Free
|
||
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||
|
|
* 02110-1301 USA.
|
||
|
|
*
|
||
|
|
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||
|
|
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||
|
|
*
|
||
|
|
* The interactive user interfaces in modified source and object code versions
|
||
|
|
* of this program must display Appropriate Legal Notices, as required under
|
||
|
|
* Section 5 of the GNU General Public License version 3.
|
||
|
|
*
|
||
|
|
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||
|
|
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||
|
|
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||
|
|
* technical reasons, the Appropriate Legal Notices must display the words
|
||
|
|
* "Powered by SugarCRM".
|
||
|
|
*/
|
||
|
|
-->
|
||
|
|
|
||
|
|
<!-- BEGIN: main -->
|
||
|
|
|
||
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
|
||
|
|
<meta name="generator" content="">
|
||
|
|
<title></title>
|
||
|
|
<script type="text/javascript" src="include/javascript/sugar_grp1_yui.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/sugar_grp1.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/sugar_3.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/sugar_grp1.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="jscalendar/lang/calendar-en.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="include/SugarFields/Fields/Address/SugarFieldAddress.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" src="cache/jsLanguage/en_us.js?s=5.0.0c&c=&j=1">
|
||
|
|
</script><script type="text/javascript" src="cache/jsLanguage/Accounts/en_us.js?s=5.0.0c&c=&j=1"></script>
|
||
|
|
<script type="text/javascript" src="jssource/src_files/include/SugarEmailAddress/SugarEmailAddress.js?s=5.0.0c&c="></script>
|
||
|
|
<link rel="stylesheet" type="text/css" href="themes/Sugar/navigation.css?s=5.0.0c&c=" />
|
||
|
|
<link rel="stylesheet" type="text/css" href="themes/Sugar/style.css?s=5.0.0c&c=" />
|
||
|
|
<link rel="stylesheet" type="text/css" href="themes/Sugar/colors.sugar.css?s=5.0.0c&c=" id="current_color_style" />
|
||
|
|
<link rel="stylesheet" type="text/css" href="themes/Sugar/fonts.normal.css?s=5.0.0c&c=" id="current_font_style"/>
|
||
|
|
<script language="javascript" src="themes/default/SiteMapJS.js?s=5.0.0c&c="></script>
|
||
|
|
<script language="javascript" src="themes/menu.js?s=5.0.0c&c="></script>
|
||
|
|
<script language="javascript" src="themes/cookie.js?s=5.0.0c&c="></script>
|
||
|
|
<script language="javascript" src="themes/Sugar/style.js?s=5.0.0c&c="></script>
|
||
|
|
<script language="javascript" src="include/JSON.js?s=5.0.0c&c="></script>
|
||
|
|
<script type="text/javascript" language="Javascript">
|
||
|
|
{JS_VARS}
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body class="{BODYCLASS}" style="border:none;" onLoad="">
|
||
|
|
|
||
|
|
|
||
|
|
<script type="text/javascript" src="include/jsolait/init.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/jsclass_base.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/jsclass_async.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
<script type="text/javascript" src="modules/EcmPriceKopias/Email.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
<script type="text/javascript" src="modules/Documents/documents.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
{MESSAGE}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<form action="index.php" method="post" name="EditView" enctype="multipart/form-data">
|
||
|
|
<input type="hidden" name="module" value="EcmPriceKopias" />
|
||
|
|
<input type="hidden" name="action" value="EmailSave" />
|
||
|
|
<input type="hidden" name="to_pdf" value="1" />
|
||
|
|
<input type="hidden" name="contact_id" value="{CONTACT_ID}" />
|
||
|
|
<input type="hidden" name="user_id" value="{USER_ID}" />
|
||
|
|
<input type="hidden" name="return_module" value="{RETURN_MODULE}" />
|
||
|
|
<input type="hidden" name="return_id" value="{RETURN_ID}" />
|
||
|
|
<input type="hidden" name="send" value="" />
|
||
|
|
<input type="hidden" name="type" value="out" />
|
||
|
|
<input type="hidden" name="record" value="{ID}" />
|
||
|
|
<input type="hidden" name="return_action" value="{RETURN_ACTION}" />
|
||
|
|
<input type="hidden" name="inbound_email_id" value="{INBOUND_EMAIL_ID}" />
|
||
|
|
<input type="hidden" name="assigned_user_id" value="{ASSIGNED_USER_ID}" />
|
||
|
|
<input type="hidden" name="object_type" value="{OBJECT_TYPE}" />
|
||
|
|
<input type="hidden" name="object_id" value="{OBJECT_ID}" />
|
||
|
|
<input type="hidden" name="group" value="{GROUP}" />
|
||
|
|
<input type="hidden" name="origType" value="{TYPE}" />
|
||
|
|
<input type="hidden" name="invoiceout_id" value="{INVOICEOUT_ID}" />
|
||
|
|
<input type="hidden" name="pricebook_id" value="{PRICEBOOK_ID}" />
|
||
|
|
<input type="hidden" name="pIdFrom" value="{PIDFROM}" />
|
||
|
|
<input type="hidden" name="pTypeFrom" value="{PTYPEFROM}" />
|
||
|
|
<input type="hidden" name="pIdTo" value="{PIDTO}" />
|
||
|
|
<input type="hidden" name="pTypeTo" value="{PTYPETO}" />
|
||
|
|
<input type="hidden" name="bodyclass" value="{BODYCLASS}" />
|
||
|
|
|
||
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||
|
|
<th class="dataLabel" align="left" colspan="8">
|
||
|
|
<h4>Send email</h4><br>
|
||
|
|
</th>
|
||
|
|
<tr>
|
||
|
|
<td style="padding-bottom: 2px;">
|
||
|
|
<input type="submit" name="button" class="button" {disable_send} title="{MOD.LBL_SEND_BUTTON_TITLE}" accesskey="{MOD.LBL_SEND_BUTTON_KEY}" value=" {MOD.LBL_SEND_BUTTON_LABEL} " />
|
||
|
|
<!--
|
||
|
|
<input type="submit" name="button" class="button" title="{MOD.LBL_SAVE_AS_DRAFT_BUTTON_TITLE}" accesskey="{MOD.LBL_SAVE_AS_DRAFT_BUTTON_KEY}" value=" {MOD.LBL_SAVE_AS_DRAFT_BUTTON_LABEL} " onclick="return invoiceoutAlert('save_draft');" />
|
||
|
|
<input type="submit" name="button" class="button" title="{APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{APP.LBL_CANCEL_BUTTON_KEY}" value=" {APP.LBL_CANCEL_BUTTON_LABEL} " onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'; {MYINBOX}" />
|
||
|
|
-->
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td align="right" nowrap>
|
||
|
|
</td>
|
||
|
|
<td align='right'>
|
||
|
|
{ADMIN_EDIT}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||
|
|
<tr>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- BEGIN: open_source_1 -->
|
||
|
|
<td nowrap class="dataLabel">
|
||
|
|
<slot> </slot>
|
||
|
|
Attach PDF </td>
|
||
|
|
<td nowrap>
|
||
|
|
<slot> </slot> </td>
|
||
|
|
<!-- END: open_source_1 -->
|
||
|
|
<td nowrap>
|
||
|
|
<slot> </slot> </td>
|
||
|
|
<td>
|
||
|
|
<div style="display:none;">
|
||
|
|
<slot>
|
||
|
|
<select tabindex='2' name='parent_type' onChange=" document.EditView.parent_name.value='';
|
||
|
|
changeQS();
|
||
|
|
checkParentType(document.EditView.parent_type.value, document.EditView.change_parent);">
|
||
|
|
{TYPE_OPTIONS}</select> </slot>
|
||
|
|
</div>
|
||
|
|
<input type="checkbox" name="attach_pdf" value="1" checked>
|
||
|
|
Images:
|
||
|
|
<input type="checkbox" name="email_images" value="true" checked></td>
|
||
|
|
<td class="dataField" nowrap>
|
||
|
|
<div style="display:none;">
|
||
|
|
<slot>
|
||
|
|
<input id='parent_id' name='parent_id' type="hidden" value='{PARENT_ID}'>
|
||
|
|
<input class="sqsEnabled" id='parent_name' name='parent_name' tabindex='2' type='text' value="{PARENT_NAME}">
|
||
|
|
{CHANGE_PARENT_BUTTON} </slot>
|
||
|
|
</div> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="dataLabel">
|
||
|
|
<div style="display:none;">
|
||
|
|
<slot>
|
||
|
|
{APP.LBL_ASSIGNED_TO} </slot>
|
||
|
|
</div>
|
||
|
|
Attach XLS </td>
|
||
|
|
<td class="dataField">
|
||
|
|
<div style="display:none;">
|
||
|
|
<slot>
|
||
|
|
<input class="sqsEnabled" tabindex='1' id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}">
|
||
|
|
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
|
||
|
|
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accesskey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name="btn1" onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' />
|
||
|
|
</slot>
|
||
|
|
</div> </td>
|
||
|
|
<td nowrap>
|
||
|
|
<slot> </slot> </td>
|
||
|
|
<td nowrap>
|
||
|
|
<slot> </slot>
|
||
|
|
<span class="dataLabel">
|
||
|
|
<input type="checkbox" name="attach_xls" value="checkbox">
|
||
|
|
</span></td>
|
||
|
|
<td nowrap>
|
||
|
|
<slot> </slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="5"> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="1"> </td>
|
||
|
|
<td colspan="4">
|
||
|
|
{MOD.LBL_NOTE_SEMICOLON} </td>
|
||
|
|
<td colspan="2"> </td>
|
||
|
|
</tr>
|
||
|
|
<tr valign="top">
|
||
|
|
<td class="dataLabel">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_TO} </slot> </td>
|
||
|
|
<td colspan="4" class="dataField" nowrap="NOWRAP">
|
||
|
|
<slot>
|
||
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<textarea id="to_addrs_field" name='to_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{TO_ADDRS}">{TO_ADDRS}</textarea>
|
||
|
|
<input type="hidden" id="to_addrs_ids" name="to_addrs_ids" value="{TO_ADDRS_IDS}" />
|
||
|
|
<input type="hidden" id="to_addrs_emails" name="to_addrs_emails" value="{TO_ADDRS_EMAILS}" />
|
||
|
|
<input type="hidden" id="to_addrs_names" name="to_addrs_names" value="{TO_ADDRS_NAMES}" /> </td>
|
||
|
|
<td style="padding-left: 4px;">
|
||
|
|
{CHANGE_TO_ADDRS_BUTTON} </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="dataLabel">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_CC} </slot> </td>
|
||
|
|
<td class="dataField" colspan="4" nowrap="NOWRAP">
|
||
|
|
<slot>
|
||
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<textarea id="cc_addrs_field" name='cc_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{CC_ADDRS}">{CC_ADDRS}</textarea>
|
||
|
|
<input type="hidden" id="cc_addrs_ids" name="cc_addrs_ids" value="{CC_ADDRS_IDS}" />
|
||
|
|
<input type="hidden" id="cc_addrs_emails" name="cc_addrs_emails" value="{CC_ADDRS_EMAILS}" />
|
||
|
|
<input type="hidden" id="cc_addrs_names" name="cc_addrs_names" value="{CC_ADDRS_NAMES}" /> </td>
|
||
|
|
<td style="padding-left: 4px;">
|
||
|
|
{CHANGE_CC_ADDRS_BUTTON} </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr valign="top">
|
||
|
|
<td class="dataLabel">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_BCC} </slot> </td>
|
||
|
|
<td class="dataField" colspan="4" nowrap="NOWRAP">
|
||
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<textarea id="bcc_addrs_field" name='bcc_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{BCC_ADDRS}">{BCC_ADDRS}</textarea>
|
||
|
|
<input type="hidden" id="bcc_addrs_ids" name="bcc_addrs_ids" value="{BCC_ADDRS_IDS}" />
|
||
|
|
<input type="hidden" id="bcc_addrs_emails" name="bcc_addrs_emails" value="{BCC_ADDRS_EMAILS}" />
|
||
|
|
<input type="hidden" id="bcc_addrs_names" name="bcc_addrs_names" value="{BCC_ADDRS_NAMES}" /> </td>
|
||
|
|
<td style="padding-left: 4px;">
|
||
|
|
{CHANGE_BCC_ADDRS_BUTTON} </td>
|
||
|
|
</tr>
|
||
|
|
</table> </td>
|
||
|
|
</tr>
|
||
|
|
<tr valign="top">
|
||
|
|
<td class="dataLabel">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_FROM} </slot> </td>
|
||
|
|
<td class="dataField" colspan="4" nowrap="NOWRAP">
|
||
|
|
<slot>
|
||
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<textarea id="from_addr_field" name='from_addr' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{FROM_ADDR}">{FROM_ADDR}</textarea> {FROM_ADDR_GROUP}
|
||
|
|
<input type="hidden" id="from_addr_email" name="from_addr_email" />
|
||
|
|
<input type="hidden" id="from_addr_name" name="from_addr_name" /> </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="5"> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="dataLabel">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_SUBJECT} </slot> </td>
|
||
|
|
<td colspan='4' class="dataField">
|
||
|
|
<slot>
|
||
|
|
<textarea name='name' tabindex='4' cols="100" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{NAME}</textarea>
|
||
|
|
</slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel">
|
||
|
|
{MOD.LBL_BODY} </td>
|
||
|
|
<!-- BEGIN: htmlarea -->
|
||
|
|
<td colspan="2" class="dataField">
|
||
|
|
<div style="display:none;">
|
||
|
|
<slot>
|
||
|
|
<div id="editor_select">
|
||
|
|
<input id="setEditor" name="setEditor" value="1" {EMAIL_EDITOR_OPTION} type="checkbox" onClick="toggle_textonly();" />
|
||
|
|
{MOD.LBL_EMAIL_EDITOR_OPTION} </div>
|
||
|
|
</slot>
|
||
|
|
</div> </td>
|
||
|
|
<td class="dataLabel" valign="top">
|
||
|
|
<slot>
|
||
|
|
{MOD.LBL_USE_TEMPLATE}
|
||
|
|
<select tabindex='2' name='email_template' onChange="fill_email(this.options[this.selectedIndex].value);">
|
||
|
|
{EMAIL_TEMPLATE_OPTIONS}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<input type="button" class="button" name="clear" id="clear" value="Clear" onClick="fill_email('');">
|
||
|
|
|
||
|
|
<input type="button" class="button" name="new_template" id="new_template" value="Template Fields" onClick="document.getElementById('template_fields').style.display='';" />
|
||
|
|
</slot> </td>
|
||
|
|
<td class="dataField" nowrap width="1">
|
||
|
|
<slot> </slot> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td></td>
|
||
|
|
<td colspan="4">
|
||
|
|
<div id="template_fields" style="display:none">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel">
|
||
|
|
Templatate Fields: </td>
|
||
|
|
<td colspan="5" class="dataField">
|
||
|
|
<slot>
|
||
|
|
{MFP}
|
||
|
|
<input type="button" class="button" name="cancel_template_fields" id="cancel_template_fields" value="Hide" onClick="document.getElementById('template_fields').style.display='none';">
|
||
|
|
</slot> </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div> </td>
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel"> </td>
|
||
|
|
<td colspan="4" class="dataField">
|
||
|
|
{TINY}
|
||
|
|
<slot>
|
||
|
|
<div style="display:none;">
|
||
|
|
<div id="html_div">
|
||
|
|
<textarea id="description_html" onBlur="">{DESCRIPTION_HTML}</textarea>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div style="display:none;">
|
||
|
|
<div id="alt_text_div">
|
||
|
|
<input id="toggle_textarea_elem" onClick="toggle_textarea();" type="checkbox" name="toggle_html">
|
||
|
|
{MOD.LBL_EDIT_ALT_TEXT} </div>
|
||
|
|
</div>
|
||
|
|
<div id="text_div" style="display: none;"> </div>
|
||
|
|
<textarea tabindex='5' id="description" name='description' cols="100" rows="20">{DESCRIPTION}</textarea>
|
||
|
|
</slot> </td>
|
||
|
|
<!-- END: htmlarea -->
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
{JAVASCRIPT}
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
|
||
|
|
<!-- END: main -->
|