]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Emails/templates/emailDetailView.tpl
Release 6.4.0
[Github/sugarcrm.git] / modules / Emails / templates / emailDetailView.tpl
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
37 /*********************************************************************************
38
39  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 {$emailTitle}
43
44 <P/>
45
46 <script type="text/javascript" src="{sugar_getjspath file="modules/Emails/javascript/Email.js"}"></script>
47 <script type="text/javascript" language="Javascript">
48 {$JS_VARS}
49 </script>
50 <form action="index.php" method="POST" name="DetailView" id="emailDetailView">
51     <input type="hidden" name="inbound_email_id" value="{$ID}">
52     <input type="hidden" name="type" value="out">
53     <input type="hidden" name="email_name" value="{$EMAIL_NAME}">
54     <input type="hidden" name="to_email_addrs" value="{$FROM}">
55     <input type="hidden" name="module" value="Emails">
56     <input type="hidden" name="record" value="{$ID}">
57     <input type="hidden" name="isDuplicate" value=false>
58     <input type="hidden" name="action">
59     <input type="hidden" name="contact_id" value="{$CONTACT_ID}">
60     <input type="hidden" name="user_id" value="{$USER_ID}">
61     <input type="hidden" name="return_module">
62     <input type="hidden" name="return_action">
63     <input type="hidden" name="return_id">
64     <input type="hidden" name="assigned_user_id">
65     <input type="hidden" name="parent_id" value="{$PARENT_ID}">
66     <input type="hidden" name="parent_type" value="{$PARENT_TYPE}">
67     <input type="hidden" name="parent_name" value="{$PARENT_NAME}">
68 </form>
69
70 <table width="100%" border="0" cellspacing="{$GRIDLINE}" cellpadding="0" class="detail view">
71         <tr>
72                 <td width="15%" valign="top" scope="row"><slot>{$APP.LBL_ASSIGNED_TO}</slot></td>
73                 <td width="35%" valign="top"><slot>{$ASSIGNED_TO}</slot></td>
74                 <td width="15%" scope="row"><slot>{$MOD.LBL_DATE_SENT}</slot></td>
75                 <td width="35%" colspan="3"><slot>{$DATE_START} {$TIME_START}</slot></td>
76         </tr>
77         <tr>
78                 <td scope="row"><slot>&nbsp;</slot></td>
79                 <td><slot>&nbsp;</slot></td>
80                 <td scope="row"><slot>{$PARENT_TYPE}</slot></td>
81                 <td><slot>{$PARENT_NAME}</slot></td>
82         </tr>
83         <tr>
84                 <td scope="row"><slot>{$MOD.LBL_FROM}</slot></td>
85                 <td colspan=3><slot>{$FROM}</slot></td>
86         </tr>
87         <tr>
88                 <td scope="row"><slot>{$MOD.LBL_TO}</slot></td>
89                 <td colspan='3'><slot>{$TO}</slot></td>
90         </tr>
91         <tr>
92                 <td scope="row"><slot>{$MOD.LBL_CC}</slot></td>
93                 <td colspan='3'><slot>{$CC}</slot></td>
94         </tr>
95         <tr>
96                 <td scope="row"><slot>{$MOD.LBL_BCC}</slot></td>
97                 <td colspan='3'><slot>{$BCC}</slot></td>
98         </tr>
99         <tr>
100                 <td scope="row"><slot>{$MOD.LBL_SUBJECT}</slot></td>
101                 <td colspan='3'><slot>{$NAME}</slot></td>
102         </tr>
103         <tr>
104                 <td valign="top" valign="top" scope="row"><slot>{$MOD.LBL_BODY}</slot></td>
105                 <td colspan="3"  style="background-color: #ffffff; color: #000000" ><slot>
106                         <div id="html_div" style="background-color: #ffffff;padding: 5px">{$DESCRIPTION_HTML}</div>
107                         <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>
108                         <div id="text_div" style="display: none;background-color: #ffffff;padding: 5px">{$DESCRIPTION}</div>
109                         <script type="text/javascript" language="Javascript">
110                                 var plainOnly = {$SHOW_PLAINTEXT};
111                                 {literal}
112                                 if(plainOnly == true) {
113                                         document.getElementById("toggle_textarea_elem").checked = true;
114                                         toggle_textarea();
115                                 }
116                                 {/literal}
117                         </script>
118                 </td>
119         </tr>
120         <tr>
121                 <td valign="top" scope="row"><slot>{$MOD.LBL_ATTACHMENTS}</td>
122                 <td colspan="3"><slot>{$ATTACHMENTS}</slot></td>
123         </tr>
124 </table>
125
126 {$SUBPANEL}
127 <!-- END: main -->