]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Campaigns/WizardEmailSetup.html
Release 6.4.0
[Github/sugarcrm.git] / modules / Campaigns / WizardEmailSetup.html
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 {$ROLLOVER}
42 <form id="wizform" name="wizform" method="POST" action="index.php">
43         <input type="hidden" name="module" value="Campaigns">
44         <input type="hidden" name="record" value="{$ID}">
45         <input type="hidden" name="action">
46         <input type="hidden" name="return_module" value="{$RETURN_MODULE}">
47         <input type="hidden" name="return_id" value="{$RETURN_ID}">
48         <input type="hidden" name="return_action" value="{$RETURN_ACTION}">
49         <input type='hidden' name='campaign_type' value="{$MOD.LBL_NEWSLETTER}">
50         <input type="hidden" id="wiz_total_steps" name="totalsteps" value="3">
51         <input type="hidden" id="wiz_current_step" name="currentstep" value='0'>
52         <input type="hidden" id="wiz_summary_step" name="wiz_summary_step" value='create_email_setup_summary'>
53
54
55 <p>
56         <div id ='buttons'>
57                 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
58                         <tr>
59                                 <td align="left" width='30%'>
60                                         <table border="0" cellspacing="0" cellpadding="0" ><tr>
61                                                 <td><div id="back_button_div"><input id="wiz_back_button" type='button' title="{$APP.LBL_BACK}" class="button" onclick="navigate('back');"  name="back" value="  {$APP.LBL_BACK}"></div></td>
62                                                 <td><div id="cancel_button_div"><input id="wiz_cancel_button" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}'; this.form.record.value='{$RETURN_ID}'" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"></div></td>
63                                                 <td><div id="save_button_div"><input id="wiz_submit_button" title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='WizardEmailSetupSave';" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" > </div></td>
64                                                 <td><div id="next_button_div"><input id="wiz_next_button" type='button' title="{$APP.LBL_NEXT_BUTTON_LABEL}" class="button" onclick="navigate('next');create_summary();" name="button" value="{$APP.LBL_NEXT_BUTTON_LABEL}"></div></td>
65                                         </tr></table>
66                                 </td>
67                                 <td align="right" width='40%'><div id='wiz_location_message'></td>
68                         </tr>
69                 </table>
70         </div>
71 </p>
72
73
74 <table class='other view' width="100%" border="0" cellspacing="3" cellpadding="0">
75 <tr>
76 <td width="10%" style="vertical-align: top;">
77 <div id='nav'>
78 <table border="0" cellspacing="0" cellpadding="0" width="100%" >
79 <tr><td scope='row' nowrap><div id='nav_step1'>{$MOD.LBL_NAVIGATION_MENU_SETUP}</div></td></tr>
80 <tr><td scope='row' nowrap><div id='nav_step2'>{$MOD.LBL_NAVIGATION_MENU_NEW_MAILBOX}</div></td></tr>
81 <tr><td scope='row' nowrap><div id='nav_step3'>{$MOD.LBL_NAVIGATION_MENU_SUMMARY}</div></td></tr>
82 </table>
83 </div>
84 </td>
85
86 <td class='edit view' width='100%'>
87 <div id="wiz_message"></div>
88 <div id=wizard>
89
90         <div id='step1'><table width="100%" border="0" cellspacing="0" cellpadding="0">
91         <tr>
92         <th colspan="2" align="left" ><h4>{$MOD.LBL_NAVIGATION_MENU_SETUP}</h4></th>
93         </tr>
94         <tr>
95         <td scope="row"><span sugar='slot1'>
96         {$EMAILSETUP}{$MOD.LBL_EMAIL_SETUP_DESC}
97         </span sugar='slot'></td></tr>
98         <tr><td>&nbsp;</td></tr>
99         <tr><td>
100                         <table width="100%" border="0" cellspacing="0" cellpadding="0" >
101                                 <tr>
102                                         <td>
103                                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
104
105                                                         <tr>
106                                                                 <td width="20%" scope="row">{$MOD.LBL_WIZ_FROM_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
107                                                                 <td width="30%" ><input name="wiz_step1_notify_fromname" tabindex='1' size='25' maxlength='128' type="text" id="notify_fromname" value="{$notify_fromname}" title="{$MOD.LBL_WIZ_FROM_NAME}"></td>
108                                                         </tr>
109                                                         <tr>
110                                                                 <td scope="row">{$MOD.LBL_MAIL_SENDTYPE}</td>
111                                                                 <td >
112                                                                         <select id="mail_sendtype"  name="wiz_step1_mail_sendtype" title="{$MOD.LBL_MAIL_SENDTYPE}" onChange="notify_setrequired();" tabindex="1">{$mail_sendtype_options}</select>
113                                                                 </td>
114                                                         </tr>                                                   <tr>
115                                                                 <td scope="row">{$MOD.LBL_WIZ_FROM_ADDRESS} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
116                                                                 <td ><input name='wiz_step1_notify_fromaddress' id='notify_fromaddress' tabindex='1' size='25' maxlength='128' type="text" value="{$notify_fromaddress}" title="{$MOD.LBL_WIZ_FROM_ADDRESS}"></td></tr>
117                                                         <tr>
118                                                                 <td colspan="4">
119                                                                         <div id="smtp_settings">
120                                                                                 <table width="100%" cellpadding="0" cellspacing="0">
121                                                                                         <tr>
122                                                                                                 <td width="20%" scope="row">{$MOD.LBL_MAIL_SMTPSERVER} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
123                                                                                                 <td width="30%" ><input type="text"  title="{$MOD.LBL_MAIL_SMTPSERVER}"  name="wiz_step1_mail_smtpserver"  id='mail_smtpserver'  tabindex="1" size="25" maxlength="64" value="{$mail_smtpserver}"></td>
124                                                                                                 <td width="20%" scope="row">{$MOD.LBL_MAIL_SMTPPORT} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
125                                                                                                 <td width="30%" ><input type="text" id='mail_smtpport' name="wiz_step1_mail_smtpport" title="{$MOD.LBL_MAIL_SMTPPORT}" tabindex="1" size="5" maxlength="5" value="{$mail_smtpport}"></td>
126                                                                                         </tr>
127                                                                                         <tr>
128                                                                                                 <td scope="row">
129                                                                                                         {$MOD.LBL_MAIL_SMTPAUTH_REQ}
130                                                                                                 </td>
131                                                                                                 <td>
132                                                                                                         <input title ="{$MOD.LBL_MAIL_SMTPAUTH_REQ}"  id='mail_smtpauth_req'  name='wiz_step1_mail_smtpauth_req' type="checkbox" class="checkbox" value="1" tabindex='1'
133                                                                                                         onclick="notify_setrequired();" {$mail_smtpauth_req}>
134                                                                                                 </td>
135                                                                                                 <td width="15%" scope="row">&nbsp;&nbsp;{$APP.LBL_EMAIL_SMTP_SSL_OR_TLS}:</td>
136                                                 <td width="35%" >
137                                                                                                 <select id="mail_smtpssl" title="{$APP.LBL_EMAIL_SMTP_SSL_OR_TLS}" name="mail_smtpssl" tabindex="1">{$MAIL_SSL_OPTIONS}</select>
138                                                 </td>
139                                                                                         </tr>
140                                                                                         <tr>
141                                                                                                 <td colspan="4">
142                                                                                                         <div id="smtp_auth">
143                                                                                                                 <table width="100%" cellpadding="0" cellspacing="0">
144                                                                                                                         <tr>
145                                                                                                                                 <td width="20%" scope="row">{$MOD.LBL_MAIL_SMTPUSER} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
146                                                                                                                                 <td width="30%" ><input type="text" name="wiz_step1_mail_smtpuser" id='mail_smtpuser' title='{$MOD.LBL_MAIL_SMTPUSER}' size="25" maxlength="64" value="{$mail_smtpuser}" tabindex='1' ></td>
147                                                                                                                                 <td width="20%" scope="row">{$MOD.LBL_MAIL_SMTPPASS} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
148                                                                                                                                 <td width="30%" ><input type="password" title="{$MOD.LBL_MAIL_SMTPPASS}" name="wiz_step1_mail_smtppass" id='mail_smtppass' size="25" maxlength="64" value="{$mail_smtppass}" tabindex='1'></td>
149                                                                                                                         </tr>
150                                                                                                                 </table>
151                                                                                                         </div>
152                                                                                                 </td>
153                                                                                         </tr>
154                                                                                 </table>
155                                                                          </div>
156                                                                 </td>
157                                                         </tr>
158                                                 </table>
159                                         </td>
160                                 </tr>
161                         </table>
162                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
163                                 <tr><td>&nbsp;</td></tr>
164                                 <tr><td>&nbsp;</td></tr>
165                                 <tr><td><h4>{$MOD.LBL_MASS_MAILING_TITLE}</h4></td></tr>
166                         <tr><td>
167                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
168                                 <tr>
169                                 <td width="40%" scope="row">{$MOD.LBL_EMAILS_PER_RUN}&nbsp;<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
170                                 <td width="50%" ><input name='wiz_step1_massemailer_campaign_emails_per_run' id='massemailer_campaign_emails_per_run' title="{$MOD.LBL_EMAILS_PER_RUN}"tabindex='1' maxlength='128' type="text" value="{$EMAILS_PER_RUN}"></td>
171                                 </tr><tr>
172                                 <td scope="row">{$MOD.LBL_LOCATION_TRACK}&nbsp;<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
173                                 <td ><input type='radio' onclick="change_state(this);" name='wiz_massemailer_tracking_entities_location_type' id='massemailer_tracking_entities_location_type' title="{$MOD.LBL_DEFAULT_LOCATION}" value="1" {$DEFAULT_CHECKED}>{$MOD.LBL_DEFAULT_LOCATION}&nbsp;<input type='radio' {$USERDEFINED_CHECKED} onclick="change_state(this);" name='wiz_massemailer_tracking_entities_location_type' id='massemailer_tracking_entities_location_type' title="{$MOD.LBL_CUSTOM_LOCATION}" value="2">{$MOD.LBL_CUSTOM_LOCATION}
174                                 </tr><tr>
175                                 <td scope="row"></td>
176                                 <td ><input name='wiz_step1_massemailer_tracking_entities_location'  id='massemailer_tracking_entities_location' title="{$MOD.LBL_LOCATION_TRACK}" {$TRACKING_ENTRIES_LOCATION_STATE} maxlength='128' type="text" value="{$TRACKING_ENTRIES_LOCATION}"></td>
177                                 </tr>
178                         <tr>
179                                 <td scope="row">
180                                         <div id="rollover">
181                                                 {$MOD.LBL_CAMP_MESSAGE_COPY}&nbsp;<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
182                         <a href="#" class="rollover"><span>{$MOD.LBL_CAMP_MESSAGE_COPY_DESC}</span><img border="0" src="{sugar_getimagepath file='helpInline.gif'}"></a>
183                     </div>
184
185                                 </td>
186                                 <td >
187                                                 <input type='radio'  name='massemailer_email_copy' value="1" {$YES_CHECKED}>{$MOD.LBL_YES}&nbsp;<input type='radio' {$NO_CHECKED}  name='massemailer_email_copy' value="2">{$MOD.LBL_NO}
188                                 </td>
189
190                         </tr>
191                          </table>
192                                 </td></tr></table>
193                 </td></tr></table>
194                 <script type="text/javascript" >
195                 {literal}
196                 function change_state(radiobutton) {
197
198                         if (radiobutton.value == '1') {
199                                 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].disabled=true;
200                                 {/literal}
201                                 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].value='{$MOD.TRACKING_ENTRIES_LOCATION_DEFAULT_VALUE}';
202                                 {literal}
203                         } else {
204                                 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].disabled=false;
205                                 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].value=null;
206                         }
207                 }{/literal}
208                 </script>
209         </div>
210
211
212         <div id='step2'><table width="100%" border="0" cellspacing="0" cellpadding="0">
213         <tr>
214         <td  colspan="2"><h3>{$MOD.LBL_NAVIGATION_MENU_NEW_MAILBOX}</h3></td>
215         <td colspan="2">&nbsp;</td>
216         </tr>
217         <tr>
218         <td scope="row" colspan ='3'>{$MAILBOXES_DETECTED_MESSAGE}</td></td>&nbsp;</td>
219         </tr>
220         <tr><td scope="row"><input type='hidden' id='wiz_new_mbox' name='wiz_new_mbox' value='0'>
221         <input title ="{$MOD.LBL_MAIL_SMTPAUTH_REQ}"  id='create_mbox' name='wiz_create_mbox'  type="checkbox" class="checkbox"
222         onclick="notify_setrequired();" {$MBOX_NEEDED}>&nbsp;{$MOD.LBL_CREATE_MAILBOX}</td>
223         <td colspan='3'>&nbsp;</td></tr>
224         </table>
225         <div id="new_mbox">
226         <table width="100%" border="0" cellspacing="0" cellpadding="0">
227                 <tr>
228                         <td valign="top" scope="row" width="20%" NOWRAP>
229                                 <slot>{$MOD.LBL_MAILBOX_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>&nbsp;</slot></td>
230                         <td valign="top"  width="30%">
231                                 <slot><input id='name' name='wiz_step2_name' title='{$MOD.LBL_MAILBOX_NAME}' tabindex='10' size='30' maxlength='255' type="text" value="" ></slot></td>
232                         <td valign="top" scope="row" width="20%" NOWRAP>
233                                 <slot>{$MOD.LBL_FROM_ADDR}:&nbsp;</slot></td>
234                         <td valign="top"  width="30%" NOWRAP>
235                                 <slot><input name="wiz_step2_from_addr" id="from_addr" title='{$MOD.LBL_FROM_ADDR}' size='30'>&nbsp;</slot></td>
236
237                 </tr>
238                 <tr>
239                         <td valign="top" scope="row">
240                                         <slot>{$MOD.LBL_SERVER_URL}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>&nbsp;</slot></td>
241                         <td valign="top"  width="30%">
242                                 <slot><input title='{$MOD.LBL_SERVER_URL}' name='wiz_step2_server_url' id='server_url' tabindex='20' size='30' maxlength='100' type="text" value="" ></slot></td>
243                         <td valign="top" scope="row">
244                                 <slot>{$MOD.LBL_LOGIN}:
245                                 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>&nbsp;</slot></td>
246                         <td valign="top"  width="30%">
247                                 <slot><input title="{$MOD.LBL_LOGIN}" name='wiz_step2_email_user' id='email_user' tabindex='70' size='30' maxlength='100' type="text" value="" ></slot></td>
248                 </tr>
249                 <tr>
250                         <td valign="top" scope="row" width="20%" NOWRAP>
251                                 <slot>{$MOD.LBL_SERVER_TYPE}:
252                                 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>&nbsp;</slot></td>
253                         <td valign="top"  width="30%">
254                                 <slot>
255                                 <select title='{$MOD.LBL_SERVER_TYPE}' name='wiz_step2_protocol' id='protocol' tabindex='30' onchange="toggle_monitored_folder(this); setPortDefault();" >{$PROTOCOL}</select></slot></td>
256                         <td valign="top" scope="row">
257                                 <slot>{$MOD.LBL_PASSWORD}:
258                                 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}&nbsp;</slot></td>
259                         <td valign="top"  width="30%">
260                                 <slot><input id='email_password' title="{$MOD.LBL_PASSWORD}" name='wiz_step_email_password' tabindex='80' size='30' maxlength='100' type="password" value="{$PASSWORD}" {$IE_DISABLED}></span></slot></td>
261                 </tr>
262                 <tr>
263                         <td valign="top" scope="row" width="20%" NOWRAP>
264                                 <slot>{$MOD.LBL_PORT}:
265                                 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>&nbsp;</slot></td>
266                         <td valign="top"  width="30%">
267                                 <slot>
268                                 <input title="{$MOD.LBL_PORT}"  type='text' name='wiz_step2_port' id='port' tabindex="40" value="{$PORT}" size='10'>
269             <td valign="top" scope="row" width="20%" NOWRAP>
270                 <slot><div id='label_inbox' style="{$DISPLAY}">{$MOD.LBL_MAILBOX}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</div></span>&nbsp;</slot></td>
271             <td valign="top"  width="30%">
272                 <slot><div id='inbox' style="{$DISPLAY}"><input id="mailbox" name='mailbox' title="{$MOD.LBL_MAILBOX}" tabindex='90' size='30' maxlength='50' type="text" value="{$MOD.LBL_MAILBOX_DEFAULT}"></div>
273                 </slot></td>
274                 </tr>
275         <tr>
276             <td valign="top" scope="row" width="1%" NOWRAP>
277                 <div class="maybe">
278                     <slot>{$MOD.LBL_SSL}:&nbsp;</slot>
279                 </div>
280             </td>
281             <td valign="top"  width="33%">
282                 <slot>
283                     <div class="maybe">
284                         <div id="rollover">
285                             <a href="#" class="rollover"><span>{$MOD.LBL_SSL_DESC}</span><img border="0" src="{sugar_getimagepath file='helpInline.gif'}"></a>
286                         </div>
287                         <input name='ssl' id='ssl' tabindex='45' type='checkbox' class="checkbox" value="1" onClick="setPortDefault();" title="{$MOD.LBL_SSL}" {$IE_DISABLED}>
288                     </div>
289                 </slot>
290             </td>
291         </tr>
292         </table>
293         </div>
294         </div>
295
296
297         <div id='step3'>
298         <table width="100%" border="0" cellspacing="0" cellpadding="0">
299                 <tr><td>
300                         <h3>{$MOD.LBL_NAVIGATION_MENU_SUMMARY}</h3>
301                 </td></tr>
302                 <tr><td>
303                         <div id='wiz_summ'></div>
304                 </td></tr>
305         </table>
306         </div>
307
308 </div>
309 </td>
310 </tr>
311 </table>
312
313
314 </form>
315 <input id="mark_read" type='hidden'>
316
317 <div id='pop3_warn'></div>
318
319 {sugar_getscript file="modules/Campaigns/wizard.js"}
320 {sugar_getscript file="modules/InboundEmail/InboundEmail.js"}
321 {$WIZ_JAVASCRIPT}
322 {$DIV_JAVASCRIPT}
323 {$JAVASCRIPT}
324
325