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