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 <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'>
57 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
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>
67 <td align="right" width='40%'><div id='wiz_location_message'></td>
74 <table class='other view' width="100%" border="0" cellspacing="3" cellpadding="0">
76 <td width="10%" style="vertical-align: top;">
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>
86 <td class='edit view' width='100%'>
87 <div id="wiz_message"></div>
90 <div id='step1'><table width="100%" border="0" cellspacing="0" cellpadding="0">
92 <th colspan="2" align="left" ><h4>{$MOD.LBL_NAVIGATION_MENU_SETUP}</h4></th>
95 <td scope="row"><span sugar='slot1'>
96 {$EMAILSETUP}{$MOD.LBL_EMAIL_SETUP_DESC}
97 </span sugar='slot'></td></tr>
98 <tr><td> </td></tr>
100 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
103 <table width="100%" border="0" cellspacing="0" cellpadding="0">
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>
110 <td scope="row">{$MOD.LBL_MAIL_SENDTYPE}</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>
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>
119 <div id="smtp_settings">
120 <table width="100%" cellpadding="0" cellspacing="0">
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>
129 {$MOD.LBL_MAIL_SMTPAUTH_REQ}
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}>
135 <td width="15%" scope="row"> {$APP.LBL_EMAIL_SMTP_SSL_OR_TLS}:</td>
137 <select id="mail_smtpssl" title="{$APP.LBL_EMAIL_SMTP_SSL_OR_TLS}" name="mail_smtpssl" tabindex="1">{$MAIL_SSL_OPTIONS}</select>
143 <table width="100%" cellpadding="0" cellspacing="0">
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>
162 <table width="100%" border="0" cellspacing="0" cellpadding="0">
163 <tr><td> </td></tr>
164 <tr><td> </td></tr>
165 <tr><td><h4>{$MOD.LBL_MASS_MAILING_TITLE}</h4></td></tr>
167 <table width="100%" border="0" cellspacing="0" cellpadding="0">
169 <td width="40%" scope="row">{$MOD.LBL_EMAILS_PER_RUN} <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>
172 <td scope="row">{$MOD.LBL_LOCATION_TRACK} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
173 <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} <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 <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>
181 {$MOD.LBL_CAMP_MESSAGE_COPY} <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>
187 <input type='radio' name='massemailer_email_copy' value="1" {$YES_CHECKED}>{$MOD.LBL_YES} <input type='radio' {$NO_CHECKED} name='massemailer_email_copy' value="2">{$MOD.LBL_NO}
194 <script type="text/javascript" >
196 function change_state(radiobutton) {
198 if (radiobutton.value == '1') {
199 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].disabled=true;
201 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].value='{$MOD.TRACKING_ENTRIES_LOCATION_DEFAULT_VALUE}';
204 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].disabled=false;
205 radiobutton.form['wiz_step1_massemailer_tracking_entities_location'].value='{/literal}{$SITEURL}{literal}';
212 <div id='step2'><table width="100%" border="0" cellspacing="0" cellpadding="0">
214 <td colspan="2"><h3>{$MOD.LBL_NAVIGATION_MENU_NEW_MAILBOX}</h3></td>
215 <td colspan="2"> </td>
218 <td scope="row" colspan ='3'>{$MAILBOXES_DETECTED_MESSAGE}</td></td> </td>
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}> {$MOD.LBL_CREATE_MAILBOX}</td>
223 <td colspan='3'> </td></tr>
226 <table width="100%" border="0" cellspacing="0" cellpadding="0">
228 <td valign="top" scope="row" width="20%" NOWRAP>
229 <slot>{$MOD.LBL_MAILBOX_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> </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}: </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'> </slot></td>
239 <td valign="top" scope="row">
240 <slot>{$MOD.LBL_SERVER_URL}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> </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> </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>
250 <td valign="top" scope="row" width="20%" NOWRAP>
251 <slot>{$MOD.LBL_SERVER_TYPE}:
252 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> </slot></td>
253 <td valign="top" width="30%">
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} </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>
263 <td valign="top" scope="row" width="20%" NOWRAP>
264 <slot>{$MOD.LBL_PORT}:
265 <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> </slot></td>
266 <td valign="top" width="30%">
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> </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>
276 <td valign="top" scope="row" width="1%" NOWRAP>
278 <slot>{$MOD.LBL_SSL}: </slot>
281 <td valign="top" width="33%">
285 <a href="#" class="rollover"><span>{$MOD.LBL_SSL_DESC}</span><img border="0" src="{sugar_getimagepath file='helpInline.gif'}"></a>
287 <input name='ssl' id='ssl' tabindex='45' type='checkbox' class="checkbox" value="1" onClick="setPortDefault();" title="{$MOD.LBL_SSL}" {$IE_DISABLED}>
298 <table width="100%" border="0" cellspacing="0" cellpadding="0">
300 <h3>{$MOD.LBL_NAVIGATION_MENU_SUMMARY}</h3>
303 <div id='wiz_summ'></div>
315 <input id="mark_read" type='hidden'>
317 <div id='pop3_warn'></div>
319 {sugar_getscript file="modules/Campaigns/wizard.js"}
320 {sugar_getscript file="modules/InboundEmail/InboundEmail.js"}