1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die E-Mail Konfiguration
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<div class="wpsg_admin_submenu">
|
|
|
9 |
|
5455 |
thomas |
10 |
<div class="list-group">
|
|
|
11 |
<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
|
|
|
12 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
|
|
13 |
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
|
1067 |
daniel |
14 |
<?php } ?>
|
5455 |
thomas |
15 |
</div>
|
1067 |
daniel |
16 |
|
|
|
17 |
</div>
|
|
|
18 |
|
5532 |
daniel |
19 |
|
|
|
20 |
<div class="wpsg_admin_content form-horizontal">
|
|
|
21 |
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=extended&noheader=1'); ?>">
|
2587 |
daniel |
22 |
|
5532 |
daniel |
23 |
<?php echo wpsg_drawForm_AdminboxStart('Allgemeine Einstellungen', 'wpsg'); ?>
|
3663 |
daniel |
24 |
<?php echo wpsg_drawForm_Checkbox('wpsg_htmlmail', __('HTML Mails versenden', 'wpsg'), $this->get_option('wpsg_htmlmail')); ?>
|
5532 |
daniel |
25 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
3663 |
daniel |
26 |
|
5532 |
daniel |
27 |
<?php echo wpsg_drawEMailConfig(
|
|
|
28 |
'global',
|
|
|
29 |
__('Globale Vorgaben', 'wpsg'),
|
|
|
30 |
__('Werden keine Angaben für die folgenden E-Mails gemacht, so gelten die globalen Angaben.', 'wpsg')); ?>
|
|
|
31 |
|
|
|
32 |
<?php echo wpsg_drawEMailConfig(
|
|
|
33 |
'adminmail',
|
|
|
34 |
__('Bestellbestätigung (Admin)', 'wpsg'),
|
|
|
35 |
__('Diese Mail bekommt der Admin beim Eingang einer neuen Bestellung.', 'wpsg'),
|
|
|
36 |
true); ?>
|
|
|
37 |
|
|
|
38 |
<?php echo wpsg_drawEMailConfig(
|
|
|
39 |
'kundenmail',
|
|
|
40 |
__('Bestellbestätigung (Kunde)', 'wpsg'),
|
|
|
41 |
__('Diese Mail bekommt der Kunde nach Durchführung der Bestellung.', 'wpsg'),
|
|
|
42 |
false,
|
|
|
43 |
true); ?>
|
1067 |
daniel |
44 |
|
5532 |
daniel |
45 |
<?php echo wpsg_drawEMailConfig(
|
|
|
46 |
'status',
|
|
|
47 |
__('Statusänderung (Kunde)', 'wpsg'),
|
|
|
48 |
__('Diese Mail bekommt der Kunde bei der Änderung des Bestellstatus.', 'wpsg')); ?>
|
|
|
49 |
|
|
|
50 |
<?php $this->callMods('admin_emailconf'); ?>
|
|
|
51 |
|
3433 |
daniel |
52 |
<div class="wpsg_hinweis"><?php echo __('Klicken Sie auf die jeweilige Mail um die Einstellungen angezeigt zu bekommen bzw. zu ändern.', 'wpsg'); ?></div>
|
5532 |
daniel |
53 |
|
|
|
54 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
1414 |
daniel |
55 |
|
5532 |
daniel |
56 |
</form>
|
1414 |
daniel |
57 |
</div>
|
|
|
58 |
|
|
|
59 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
60 |
|
|
|
61 |
/**
|
|
|
62 |
* Speichert die Informationen ob die Mailboxen auf oder zugeklappt sind in dem Cookie
|
|
|
63 |
*/
|
|
|
64 |
function wpsg_mail_save_cookie()
|
|
|
65 |
{
|
|
|
66 |
|
|
|
67 |
var wpsg_mail_open = Array();
|
1067 |
daniel |
68 |
|
5532 |
daniel |
69 |
jQuery('.wpsg_email_box .panel-body:visible').each(function() {
|
1414 |
daniel |
70 |
|
|
|
71 |
wpsg_mail_open.push(jQuery(this).prev().attr("id"));
|
|
|
72 |
|
|
|
73 |
} );
|
|
|
74 |
|
|
|
75 |
jQuery.cookie('wpsg_mail', wpsg_mail_open.join(','));
|
|
|
76 |
|
|
|
77 |
} // function wpsg_mail_save_cookie()
|
|
|
78 |
|
|
|
79 |
jQuery(document).ready(function() {
|
|
|
80 |
|
5532 |
daniel |
81 |
jQuery('.wpsg_email_box .panel-heading').bind('click', function() {
|
|
|
82 |
|
|
|
83 |
jQuery(this).next().toggle();
|
|
|
84 |
|
1414 |
daniel |
85 |
wpsg_mail_save_cookie();
|
|
|
86 |
|
5532 |
daniel |
87 |
} ).disableSelection().next().hide();
|
1414 |
daniel |
88 |
|
|
|
89 |
if (jQuery.cookie('wpsg_mail') != null)
|
|
|
90 |
{
|
|
|
91 |
|
|
|
92 |
var arOpen = jQuery.cookie('wpsg_mail').split(',');
|
|
|
93 |
|
|
|
94 |
for (var i = 0; i < arOpen.length; i ++)
|
|
|
95 |
{
|
|
|
96 |
|
|
|
97 |
jQuery('#' + arOpen[i]).next().show();
|
|
|
98 |
jQuery('#' + arOpen[i]).css('border-bottom', '0px');
|
|
|
99 |
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
} );
|
|
|
105 |
|
|
|
106 |
/* ]]> */</script>
|