2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 /*********************************************************************************
39 ********************************************************************************/
42 <script type="text/javascript" src="modules/Emails/javascript/Email.js?v={VERSION_MARK}"></script>
43 <script type="text/javascript" language="Javascript">
46 <form action="index.php" method="POST" name="DetailView" id="form">
47 <input type="hidden" name="module" value="Emails">
48 <input type="hidden" name="record" value="{ID}">
49 <input type="hidden" name="isDuplicate" value=false>
50 <input type="hidden" name="action">
51 <input type="hidden" name="contact_id" value="{CONTACT_ID}">
52 <input type="hidden" name="user_id" value="{USER_ID}">
53 <input type="hidden" name="return_module">
54 <input type="hidden" name="return_action">
55 <input type="hidden" name="return_id">
56 <input type="hidden" name="assigned_user_id">
57 <input type="hidden" name="type" value="{TYPE}">
59 <table width="10%" cellpadding="0" cellspacing="0" border="0">
61 <td>{ACTION_BUTTON}</td>
62 <td align='right'>{ADMIN_EDIT}</td>
67 <div class="detail view">
68 <table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
71 <td width="15%" scope="row"><slot>{MOD.LBL_DATE_SENT}</slot></td>
72 <td width="35%"><slot>{DATE_START} {TIME_START} </slot></td>
73 <td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
74 <td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY} </slot></td>
77 <!-- BEGIN: open_source -->
78 <td scope="row"><slot> </slot></td>
79 <td><slot> </slot></td>
80 <!-- END: open_source -->
81 <td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
82 <td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY} </slot></td>
85 <td valign="top" scope="row"><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
86 <td valign="top"><slot>{ASSIGNED_TO} </slot></td>
87 <td scope="row"><slot>{PARENT_TYPE}</slot></td>
88 <td><slot>{PARENT_NAME}</slot></td>
91 <td scope="row"><slot>{MOD.LBL_FROM}</slot></td>
92 <td colspan=3><slot>{FROM} </slot></td>
96 <td scope="row"><slot>{MOD.LBL_TO}</slot></td>
97 <td colspan='3'><slot>{TO} </slot></td>
100 <td scope="row"><slot>{MOD.LBL_CC}</slot></td>
101 <td colspan='3'><slot>{CC} </slot></td>
104 <td scope="row"><slot>{MOD.LBL_BCC}</slot></td>
105 <td colspan='3'><slot>{BCC} </slot></td>
108 <td scope="row"><slot>{MOD.LBL_SUBJECT}</slot></td>
109 <td colspan='3'><slot>{NAME} </slot></td>
112 <td scope="row" valign="top"><slot>{MOD.LBL_BODY}</slot></td>
113 <td colspan="3" style="background-color: #ffffff; color: #000000" ><slot>
114 <div id="html_div" style="background-color: #ffffff;padding: 5px">{DESCRIPTION_HTML}</div>
115 <input id='toggle_textarea_elem' onclick="toggle_textarea();" type="checkbox" name="toggle_html"/> <label for='toggle_textarea_elem'>{MOD.LBL_SHOW_ALT_TEXT}</label><br>
116 <div id="text_div" style="display: none;background-color: #ffffff;padding: 5px">{DESCRIPTION}</div>
117 <script type="text/javascript" language="Javascript">
118 var plainOnly = {SHOW_PLAINTEXT};
119 if(plainOnly == true) {
120 document.getElementById("toggle_textarea_elem").checked = true;
127 <td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</slot></td>
128 <td colspan="3"><slot>{ATTACHMENTS}</slot></td>