]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Emails/EditViewArchive.html
Release 6.5.0beta5
[Github/sugarcrm.git] / modules / Emails / EditViewArchive.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 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 <!-- BEGIN: main -->
40
41 <style>
42         #to_addrs_field { height: 1.6em; }
43         #cc_addrs_field { height: 1.6em; }
44         #bcc_addrs_field { height: 1.6em; }
45         #subjectfield { height: 1.6em; }
46         #from_addr_field { height: 1.6em; }
47 </style>
48
49 <script type="text/javascript" src="modules/Emails/javascript/Email.js?v={VERSION_MARK}"></script>
50 {MESSAGE}
51
52 <form action="index.php" method="post" name="EditView" id="EditView" enctype="multipart/form-data">
53         <input type="hidden" name="module" value="Emails" />
54         <input type="hidden" name="action" value="Save" />
55         <input type="hidden" name="contact_id" value="{CONTACT_ID}" />
56         <input type="hidden" name="user_id" value="{USER_ID}" />
57         <input type="hidden" name="return_module" value="{RETURN_MODULE}" />
58         <input type="hidden" name="return_id" value="{RETURN_ID}" />
59         <input type="hidden" name="send" value="" />
60         <input type="hidden" name="type" value="archived" />
61         <input type="hidden" name="record" value="{ID}" />
62         <input type="hidden" name="return_action" value="{RETURN_ACTION}" />
63         <input type="hidden" name="object_type" value="{OBJECT_TYPE}" />
64         <input type="hidden" name="object_id" value="{OBJECT_ID}" />
65         <input type="hidden" name="group" value="{GROUP}" />
66
67 <table width="100%" cellpadding="0" cellspacing="0" border="0">
68         <tr>
69                 <td>{ACTION_BUTTON}</td>
70                 <td align="right" nowrap></td>
71                 <td align='right'>{ADMIN_EDIT}</td>
72         </tr>
73 </table>
74
75 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
76         <tr>
77                 <td>
78                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
79                                 <tr>
80                                         <td width="15%" scope="row">
81                                                 <slot>{MOD.LBL_DATE_AND_TIME}&nbsp;<span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></slot>
82                                         </td>
83                                         <td width="25%"  nowrap colspan="4">
84                                                 <slot>
85                                                         <table cellpadding="0" cellspacing="0">
86                                                                 <tr>
87                                                                         <td nowrap>
88                                                                                 <slot><input name='date_start' onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');" id='date_start_date' tabindex='1' maxlength='10' size='11' type="text" value="{DATE_START}"> <img src="index.php?entryPoint=getImage&themeName={THEME}&imageName=jscalendar.gif" alt="{APP.LBL_ENTER_DATE}"  id="jscal_trigger" align="absmiddle">&nbsp;</slot>
89                                                                         </td>
90                                                                         <td nowrap>
91                                                                                 <slot><input name='time_start' size='5' maxlength='5' tabindex='1' type="text" value='{TIME_START}'>{TIME_MERIDIEM}</slot>
92                                                                         </td>
93                                                                 </tr>
94                                                                 <tr>
95                                                                         <td nowrap>
96                                                                                 <slot><span class="dateFormat">{USER_DATEFORMAT}</span></slot>
97                                                                         </td>
98                                                                         <td nowrap>
99                                                                                 <slot><span class="dateFormat">{TIME_FORMAT}</span></slot>
100                                                                         </td>
101                                                                 </tr>
102                                                         </table>
103                                                 </slot>
104                                         </td>
105                                 </tr>
106
107                                 <tr>
108
109 <!-- BEGIN: open_source_1 -->
110                                         <td colspan="2"><slot></slot></td>
111 <!-- END: open_source_1 -->
112
113                                         <td width="25%" scope="row" valign="top" align="left"><slot>
114                                                 <select tabindex='2' id='parent_type' name='parent_type' onchange="document.EditView.parent_name.value=''; parent_typechangeQS(); checkParentType(document.EditView.parent_type.value, document.EditView.change_parent);">{TYPE_OPTIONS}</select>&nbsp;
115                                         
116                                                 <input id='parent_id' name='parent_id' type="hidden" value='{PARENT_ID}'>
117                                                 <input class="sqsEnabled" id='parent_name' name='parent_name' tabindex='2' type='text' value="{PARENT_NAME}">&nbsp;{CHANGE_PARENT_BUTTON}
118                                         </slot></td>
119                                 </tr>
120                                 <tr>
121                                         <td scope="row" width="15%">
122                                                 <slot>{APP.LBL_ASSIGNED_TO}</slot>
123                                         </td>
124                                         <td >
125                                                 <slot>
126                                                         <input class="sqsEnabled" tabindex='1' id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}">
127                                                         <input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
128                                                         <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
129                                                                 onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' />
130                                                 </slot>
131                                         </td>
132 <!-- BEGIN: pro -->
133                                         <script type="text/javascript" src="modules/Emails/javascript/Email.js?v={VERSION_MARK}"></script>
134                                         <td scope="row" valign="top" align="right"><slot>
135                                                 {MOD.LBL_USE_TEMPLATE}&nbsp;
136                                         </slot></td>
137                                         <td  nowrap colspan="2">
138                                                 <slot>
139                                                         <select tabindex='2' name='email_template' onchange="fill_email(this.options[this.selectedIndex].value);">{EMAIL_TEMPLATE_OPTIONS}</select>
140                                                 </slot>
141                                         </td>
142 <!-- END: pro -->
143 <!-- BEGIN: open_source -->
144                                         <td colspan="3"><slot></slot></td>
145 <!-- END: open_source -->
146                                 </tr>
147                                 <tr>
148                                         <td colspan="5">&nbsp;
149                                         </td>
150                                 </tr>
151                                 <tr>
152                                         <td colspan="1">&nbsp;</td>
153                                         <td colspan="4">{MOD.LBL_NOTE_SEMICOLON}</td>
154                                 </tr>
155
156                                 <tr valign="top">
157                                         <td scope="row"><slot>{MOD.LBL_TO}</slot></td>
158                                         <td colspan="4"  nowrap="nowrap"><slot>
159                                                 <table cellspacing="0" cellpadding="0" border="0">
160                                                         <tr>
161                                                                 <td>
162                                                                         <textarea id="to_addrs_field" name='to_addrs' tabindex='3' cols="80" rows="1"
163                                                                                 style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{TO_ADDRS}">{TO_ADDRS}</textarea>
164                                                                         <input type="hidden" id="to_addrs_ids" name="to_addrs_ids" value="{TO_ADDRS_IDS}" />
165                                                                         <input type="hidden" id="to_addrs_emails" name="to_addrs_emails" value="{TO_ADDRS_EMAILS}" />
166                                                                         <input type="hidden" id="to_addrs_names" name="to_addrs_names" value="{TO_ADDRS_NAMES}" />
167                                                                 </td>
168                                                                 <td style="padding-left: 4px;">{CHANGE_TO_ADDRS_BUTTON}</td>
169                                                         </tr>
170                                                 </table>
171                                         </slot></td>
172                                 </tr>
173
174                                 <tr>
175                                         <td scope="row"><slot>{MOD.LBL_CC}</slot></td>
176                                         <td  colspan="4" nowrap="nowrap"><slot>
177                                                 <table cellspacing="0" cellpadding="0" border="0">
178                                                         <tr>
179                                                                 <td>
180                                                                         <textarea id="cc_addrs_field" name='cc_addrs' tabindex='3' cols="80" rows="1"
181                                                                                 style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{CC_ADDRS}">{CC_ADDRS}</textarea>
182                                                                         <input type="hidden" id="cc_addrs_ids" name="cc_addrs_ids" value="{CC_ADDRS_IDS}" />
183                                                                         <input type="hidden" id="cc_addrs_emails" name="cc_addrs_emails" value="{CC_ADDRS_EMAILS}" />
184                                                                         <input type="hidden" id="cc_addrs_names" name="cc_addrs_names" value="{CC_ADDRS_NAMES}" />
185                                                                 </td>
186                                                                 <td style="padding-left: 4px;">{CHANGE_CC_ADDRS_BUTTON}</td>
187                                                         </tr>
188                                                 </table>
189                                         </slot></td>
190                                 </tr>
191
192                                 <tr valign="top">
193                                         <td scope="row"><slot>{MOD.LBL_BCC}</slot></td>
194                                         <td  colspan="4" nowrap="nowrap"><slot>
195                                                 <table cellspacing="0" cellpadding="0" border="0">
196                                                         <tr>
197                                                                 <td>
198                                                                         <textarea id="bcc_addrs_field" name='bcc_addrs' tabindex='3' cols="80" rows="1"
199                                                                                 style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{BCC_ADDRS}">{BCC_ADDRS}</textarea>
200                                                                         <input type="hidden" id="bcc_addrs_ids" name="bcc_addrs_ids" value="{BCC_ADDRS_IDS}" />
201                                                                         <input type="hidden" id="bcc_addrs_emails" name="bcc_addrs_emails" value="{BCC_ADDRS_EMAILS}" />
202                                                                         <input type="hidden" id="bcc_addrs_names" name="bcc_addrs_names" value="{BCC_ADDRS_NAMES}" />
203                                                                 </td>
204                                                                 <td style="padding-left: 4px;">{CHANGE_BCC_ADDRS_BUTTON}</td>
205                                                         </tr>
206                                                 </table>
207                                         </td>
208                                 </tr>
209                                 <tr valign="top">
210                                         <td scope="row"><slot>
211                                                 {MOD.LBL_FROM}
212                                         </slot></td>
213                                         <td  colspan="4" nowrap="nowrap"><slot>
214                                                 <table cellspacing="0" cellpadding="0" border="0">
215                                                         <tr>
216                                                                 <td>
217                                                                 <textarea id="from_addr_field" name='from_addr' tabindex='3' cols="80" rows="1"
218                                                                         style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{FROM_ADDR}">{FROM_ADDR}</textarea>
219                                                                 {FROM_ADDR_GROUP}
220                                                                 <input type="hidden" id="from_addr_email" name="from_addr_email" />
221                                                                 <input type="hidden" id="from_addr_name" name="from_addr_name" />
222                                                                 </td>
223                                                         </tr>
224                                                 </table>
225                                         </slot></td>
226                                 </tr>
227                                 <tr>
228                                         <td colspan=5>&nbsp;</td>
229                                 </tr>
230                                 <tr>
231                                         <td scope="row"><slot>{MOD.LBL_SUBJECT}</slot></td>
232                                         <td colspan='4' ><slot>
233                                                 <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>
234                                         </slot></td>
235                                 </tr>
236                                 <tr>
237                                         <td  valign="top" scope="row"><slot>{MOD.LBL_BODY}</td>
238 <!-- BEGIN: textarea -->
239                                         <td colspan="4" ><slot>
240                                                 <div id="html_div"><textarea tabindex='4' name='description_html' cols="100" rows="20">{DESCRIPTION_HTML}</textarea></div>
241                                                 <input onclick="toggle_textarea(this);" type="checkbox" name="toggle_html"> {MOD.LBL_EDIT_ALT_TEXT}<br>
242                                                 <div id="text_div" style="display: none"><textarea tabindex='4' name='description' cols="100" rows="20">{DESCRIPTION}</textarea></div>
243                                         </slot></td>
244 <!-- END: textarea -->
245 <!-- BEGIN: htmlarea -->
246                                         <td colspan="4" ><slot>
247                                                 <textarea name="description_html" id="description_html">{DESCRIPTION_HTML}</textarea>
248
249                                                 <div id="alt_text_div">
250                                                         <input id="toggle_textarea_elem" onclick="toggle_textarea();" type="checkbox" name="toggle_html"> {MOD.LBL_EDIT_ALT_TEXT}
251                                                 </div>
252
253                                                 <div id="text_div" style="display: none;">
254                                                         <textarea tabindex='5' name='description' cols="100" rows="20">
255                                                                 {DESCRIPTION}
256                                                         </textarea>
257                                                 </div>
258                                         </slot></td>
259 <!-- END: htmlarea -->
260                                 </tr>
261                                 <tr>
262                                         <td  valign="top" scope="row"><slot>{MOD.LBL_ATTACHMENTS}</td>
263                                         <td colspan="4">
264                                                 {ATTACHMENTS}
265                                                 <div id="uploads_div">
266                                                         <div style="display: none" id="file0"><input id = 'email_attachment0' name='email_attachment0' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('0');" class="button" value="{APP.LBL_REMOVE}"/></div>
267                                                         <div style="display: none" id="file1"><input id = 'email_attachment1' name='email_attachment1' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('1');" class="button" value="{APP.LBL_REMOVE}"/></div>
268                                                         <div style="display: none" id="file2"><input id = 'email_attachment2' name='email_attachment2' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('2');" class="button" value="{APP.LBL_REMOVE}"/></div>
269                                                         <div style="display: none" id="file3"><input id = 'email_attachment3' name='email_attachment3' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('3');" class="button" value="{APP.LBL_REMOVE}"/></div>
270                                                         <div style="display: none" id="file4"><input id = 'email_attachment4' name='email_attachment4' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('4');" class="button" value="{APP.LBL_REMOVE}"/></div>
271                                                         <div style="display: none" id="file5"><input id = 'email_attachment5' name='email_attachment5' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('5');" class="button" value="{APP.LBL_REMOVE}"/></div>
272                                                         <div style="display: none" id="file6"><input id = 'email_attachment6' name='email_attachment6' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('6');" class="button" value="{APP.LBL_REMOVE}"/></div>
273                                                         <div style="display: none" id="file7"><input id = 'email_attachment7' name='email_attachment7' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('7');" class="button" value="{APP.LBL_REMOVE}"/></div>
274                                                         <div style="display: none" id="file8"><input id = 'email_attachment8' name='email_attachment8' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('8');" class="button" value="{APP.LBL_REMOVE}"/></div>
275                                                         <div style="display: none" id="file9"><input id = 'email_attachment9' name='email_attachment9' tabindex='0' size='40' type='file'/>&nbsp;<input type="button" onclick="deleteFile('9');" class="button" value="{APP.LBL_REMOVE}"/></div>
276
277                                                         <div style="display: none" id="document0"><input name='documentId0' id='documentId0' tabindex='0' type='hidden'/><input name='documentName0' id='documentName0' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('0');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('0');" class="button" value="{APP.LBL_REMOVE}"/></div>
278                                                         <div style="display: none" id="document1"><input name='documentId1' id='documentId1' tabindex='1' type='hidden'/><input name='documentName1' id='documentName1' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('1');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('1');" class="button" value="{APP.LBL_REMOVE}"/></div>
279                                                         <div style="display: none" id="document2"><input name='documentId2' id='documentId2' tabindex='2' type='hidden'/><input name='documentName2' id='documentName2' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('2');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('2');" class="button" value="{APP.LBL_REMOVE}"/></div>
280                                                         <div style="display: none" id="document3"><input name='documentId3' id='documentId3' tabindex='3' type='hidden'/><input name='documentName3' id='documentName3' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('3');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('3');" class="button" value="{APP.LBL_REMOVE}"/></div>
281                                                         <div style="display: none" id="document4"><input name='documentId4' id='documentId4' tabindex='4' type='hidden'/><input name='documentName4' id='documentName4' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('4');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('4');" class="button" value="{APP.LBL_REMOVE}"/></div>
282                                                         <div style="display: none" id="document5"><input name='documentId5' id='documentId5' tabindex='5' type='hidden'/><input name='documentName5' id='documentName5' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('5');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('5');" class="button" value="{APP.LBL_REMOVE}"/></div>
283                                                         <div style="display: none" id="document6"><input name='documentId6' id='documentId6' tabindex='6' type='hidden'/><input name='documentName6' id='documentName6' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('6');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('6');" class="button" value="{APP.LBL_REMOVE}"/></div>
284                                                         <div style="display: none" id="document7"><input name='documentId7' id='documentId7' tabindex='7' type='hidden'/><input name='documentName7' id='documentName7' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('7');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('7');" class="button" value="{APP.LBL_REMOVE}"/></div>
285                                                         <div style="display: none" id="document8"><input name='documentId8' id='documentId8' tabindex='8' type='hidden'/><input name='documentName8' id='documentName8' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('8');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('8');" class="button" value="{APP.LBL_REMOVE}"/></div>
286                                                         <div style="display: none" id="document9"><input name='documentId9' id='documentId9' tabindex='9' type='hidden'/><input name='documentName9' id='documentName9' DISABLED size='40' type='text'/>&nbsp;<input type="button" onclick="selectDocument('9');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}"/><input type="button" onclick="deleteDocument('9');" class="button" value="{APP.LBL_REMOVE}"/></div>
287                                                 </div>
288                                                 <input type="button" name="add_file_button" onclick="addFile();" value="{MOD.LBL_ADD_FILE}" class="button" />
289                                                 <input type="button" name="add_document_button" onclick="addDocument();" value="{MOD.LBL_ADD_DOCUMENT}" class="button" />
290                                         </td>
291                                 </tr>
292                         </table>
293                 </td>
294         </tr>
295 </table>
296 </form>
297 <script type="text/javascript">
298 Calendar.setup ({
299         inputField : "date_start_date", ifFormat : "{CALENDAR_DATEFORMAT}", showsTime : false, button : "jscal_trigger", singleClick : true, step : 1
300 });
301 </script>
302 {TINY}
303 {JAVASCRIPT}
304 {INITIALIZE_IE_RESPONSE}
305
306 <!-- END: main -->
307
308
309