Revision 568
Added by doc almost 17 years ago
template.html | ||
---|---|---|
15 | 15 |
|
16 | 16 |
function change_wbmailer(type) { |
17 | 17 |
if(type == 'smtp') { |
18 |
document.getElementById('wbmailer_smtp_host').style.visibility = 'visible'; |
|
19 |
document.getElementById('wbmailer_smtp_auth_mode').style.visibility = 'visible'; |
|
20 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'visible'; |
|
21 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'visible'; |
|
18 |
document.getElementById('row_wbmailer_smtp_settings').style.display = ''; |
|
19 |
document.getElementById('row_wbmailer_smtp_host').style.display = ''; |
|
20 |
document.getElementById('row_wbmailer_smtp_auth_mode').style.display = ''; |
|
21 |
document.getElementById('row_wbmailer_smtp_username').style.display = ''; |
|
22 |
document.getElementById('row_wbmailer_smtp_password').style.display = ''; |
|
22 | 23 |
if( document.settings.wbmailer_smtp_auth.checked == true ) { |
23 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'visible';
|
|
24 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'visible';
|
|
24 |
document.getElementById('row_wbmailer_smtp_username').style.display = '';
|
|
25 |
document.getElementById('row_wbmailer_smtp_password').style.display = '';
|
|
25 | 26 |
} else { |
26 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'hidden';
|
|
27 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'hidden';
|
|
27 |
document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
|
|
28 |
document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
|
|
28 | 29 |
} |
29 | 30 |
} else if(type == 'phpmail') { |
30 |
document.getElementById('wbmailer_smtp_host').style.visibility = 'hidden'; |
|
31 |
document.getElementById('wbmailer_smtp_auth_mode').style.visibility = 'hidden'; |
|
32 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'hidden'; |
|
33 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'hidden'; |
|
34 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'hidden'; |
|
35 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'hidden'; |
|
31 |
document.getElementById('row_wbmailer_smtp_settings').style.display = 'none'; |
|
32 |
document.getElementById('row_wbmailer_smtp_host').style.display = 'none'; |
|
33 |
document.getElementById('row_wbmailer_smtp_auth_mode').style.display = 'none'; |
|
34 |
document.getElementById('row_wbmailer_smtp_username').style.display = 'none'; |
|
35 |
document.getElementById('row_wbmailer_smtp_password').style.display = 'none'; |
|
36 | 36 |
} |
37 | 37 |
} |
38 | 38 |
|
39 | 39 |
function toggle_wbmailer_auth() { |
40 | 40 |
if( document.settings.wbmailer_smtp_auth.checked == true ) { |
41 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'visible';
|
|
42 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'visible';
|
|
41 |
document.getElementById('row_wbmailer_smtp_username').style.display = '';
|
|
42 |
document.getElementById('row_wbmailer_smtp_password').style.display = '';
|
|
43 | 43 |
} else { |
44 |
document.getElementById('wbmailer_smtp_username').style.visibility = 'hidden';
|
|
45 |
document.getElementById('wbmailer_smtp_password').style.visibility = 'hidden';
|
|
44 |
document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
|
|
45 |
document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
|
|
46 | 46 |
} |
47 | 47 |
} |
48 | 48 |
</script> |
... | ... | |
264 | 264 |
</td> |
265 | 265 |
</tr> |
266 | 266 |
<tr class="advanced"> |
267 |
<td class="setting_name">{TEXT_SERVER_EMAIL}:</td> |
|
268 |
<td class="setting_value" colspan="2"> |
|
269 |
<input type="text" name="server_email" value="{SERVER_EMAIL}" /> |
|
270 |
</td> |
|
271 |
</tr> |
|
272 |
<tr class="advanced"> |
|
273 | 267 |
<td class="setting_name">{TEXT_WYSIWYG_EDITOR}:</td> |
274 | 268 |
<td class="setting_value" colspan="2"> |
275 | 269 |
<select name="wysiwyg_editor"> |
... | ... | |
611 | 605 |
<input type="text" name="app_name" value="{APP_NAME}" /> |
612 | 606 |
</td> |
613 | 607 |
</tr> |
608 |
<!-- BASIC MAILER SETTINGS --> |
|
614 | 609 |
<tr> |
615 | 610 |
<td colspan="3" style="padding-top: 10px;"> |
616 | 611 |
<h2>{HEADING_WBMAILER_SETTINGS}</h2> |
617 |
<div style="border: 1px solid #CCC; background-color: #EEE; padding: 5px;"> |
|
618 |
<strong> Please Note:</strong> |
|
619 |
<br \> |
|
620 |
{TEXT_WBMAILER_NOTICE} |
|
621 |
</div> |
|
612 |
<p style="line-height: 1.4em; margin-top: 0;">{TEXT_WBMAILER_DEFAULT_SETTINGS_NOTICE}</p> |
|
622 | 613 |
</td> |
623 | 614 |
</tr> |
624 | 615 |
<tr> |
616 |
<td class="setting_name">{TEXT_WBMAILER_DEFAULT_SENDER_MAIL}:</td> |
|
617 |
<td class="setting_value" colspan="2"> |
|
618 |
<input type="text" style="width: 250px" name="server_email" value="{SERVER_EMAIL}" /> |
|
619 |
</td> |
|
620 |
</tr> |
|
621 |
<tr> |
|
622 |
<td class="setting_name">{TEXT_WBMAILER_DEFAULT_SENDER_NAME}:</td> |
|
623 |
<td class="setting_value" colspan="2"> |
|
624 |
<input type="text" style="width: 250px" name="wbmailer_default_sendername" value="{WBMAILER_DEFAULT_SENDERNAME}" /> |
|
625 |
</td> |
|
626 |
</tr> |
|
627 |
<tr> |
|
625 | 628 |
<td class="setting_name">{TEXT_WBMAILER_FUNCTION}:</td> |
626 | 629 |
<td class="setting_value" colspan="2"> |
627 | 630 |
<input type="radio" name="wbmailer_routine" id="wbmailer_routine_phpmail" onclick="javascript: change_wbmailer('phpmail');" style="width: 14px; height: 14px;" value="phpmail"{PHPMAIL_SELECTED} /> |
... | ... | |
630 | 633 |
<label for="wbmailer_routine_smtp" onclick="javascript: change_wbmailer('smtp');">{TEXT_WBMAILER_SMTP}</label> |
631 | 634 |
</td> |
632 | 635 |
</tr> |
633 |
<tr id="wbmailer_smtp_host" style="visibility:{SMTP_VISIBILITY};"> |
|
636 |
<!-- MORE ADVANCED SMTP MAILER SETTINGS --> |
|
637 |
<tr id="row_wbmailer_smtp_settings" style="display:{SMTP_VISIBILITY};"> |
|
638 |
<td colspan="3" style="padding-top: 10px;"> |
|
639 |
<p style="line-height: 1.4em; margin-top: 0;">{TEXT_WBMAILER_NOTICE}</p> |
|
640 |
</td> |
|
641 |
</tr> |
|
642 |
<tr id="row_wbmailer_smtp_host" style="display:{SMTP_VISIBILITY};"> |
|
634 | 643 |
<td class="setting_name">{TEXT_WBMAILER_SMTP_HOST}:</td> |
635 | 644 |
<td class="setting_value" colspan="2"> |
636 |
<input type="text" name="wbmailer_smtp_host" value="{WBMAILER_SMTP_HOST}" /> |
|
645 |
<input type="text" style="width: 250px" name="wbmailer_smtp_host" value="{WBMAILER_SMTP_HOST}" />
|
|
637 | 646 |
</td> |
638 | 647 |
</tr> |
639 |
<tr id="wbmailer_smtp_auth_mode" style="visibility:{SMTP_VISIBILITY};">
|
|
648 |
<tr id="row_wbmailer_smtp_auth_mode" style="display:{SMTP_VISIBILITY};">
|
|
640 | 649 |
<td class="setting_name">{TEXT_WBMAILER_SMTP_AUTH}:</td> |
641 | 650 |
<td class="setting_value" colspan="3"> |
642 | 651 |
<input type="checkbox" name="wbmailer_smtp_auth" id="wbmailer_smtp_auth" onclick="javascript: toggle_wbmailer_auth();" style="width: 14px; height: 14px;" value="true"{SMTP_AUTH_SELECTED} /> |
643 | 652 |
<label for="wbmailer_smtp_auth" onclick="javascript: toggle_wbmailer_auth(this.value);">({TEXT_WBMAILER_SMTP_AUTH_NOTICE})</label> |
644 | 653 |
</td> |
645 | 654 |
</tr> |
646 |
<tr id="wbmailer_smtp_username" style="visibility:{SMTP_VISIBILITY_AUTH};">
|
|
655 |
<tr id="row_wbmailer_smtp_username" style="display:{SMTP_VISIBILITY_AUTH};">
|
|
647 | 656 |
<td class="setting_name">{TEXT_WBMAILER_SMTP_USERNAME}:</td> |
648 | 657 |
<td class="setting_value" colspan="2"> |
649 |
<input type="text" name="wbmailer_smtp_username" value="{WBMAILER_SMTP_USERNAME}" /> |
|
658 |
<input type="text" style="width: 250px" name="wbmailer_smtp_username" value="{WBMAILER_SMTP_USERNAME}" />
|
|
650 | 659 |
</td> |
651 | 660 |
</tr> |
652 |
<tr id="wbmailer_smtp_password" style="visibility:{SMTP_VISIBILITY_AUTH};">
|
|
661 |
<tr id="row_wbmailer_smtp_password" style="display:{SMTP_VISIBILITY_AUTH};">
|
|
653 | 662 |
<td class="setting_name">{TEXT_WBMAILER_SMTP_PASSWORD}:</td> |
654 | 663 |
<td class="setting_value" colspan="2"> |
655 |
<input type="password" name="wbmailer_smtp_password" value="{WBMAILER_SMTP_PASSWORD}" /> |
|
664 |
<input type="password" style="width: 250px" name="wbmailer_smtp_password" value="{WBMAILER_SMTP_PASSWORD}" />
|
|
656 | 665 |
</td> |
657 | 666 |
</tr> |
658 | 667 |
<tr> |
Also available in: Unified diff
Added support to configure the mailer settings via the backend