1297 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
1623 |
daniel |
4 |
* Template für die Einstellungsseite des Zahlungsvarianten Moduls
|
1297 |
daniel |
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<script type="text/javascript">
|
|
|
9 |
|
1406 |
daniel |
10 |
/**
|
|
|
11 |
* Speichert die Änderung in der Checkbox der MwSt.
|
|
|
12 |
*/
|
|
|
13 |
function wpsg_saveZVMwSt(oElement, zv_id)
|
|
|
14 |
{
|
|
|
15 |
|
|
|
16 |
if (jQuery(oElement).attr("checked")) value = '1'; else value = '0';
|
|
|
17 |
|
|
|
18 |
jQuery.ajax( {
|
|
|
19 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
|
|
|
20 |
data: {
|
|
|
21 |
field: 'mwst_laender',
|
|
|
22 |
zv_id: zv_id,
|
|
|
23 |
value: value
|
|
|
24 |
}
|
|
|
25 |
} );
|
|
|
26 |
|
|
|
27 |
} // function wpsg_saveZVMwSt(oElement, va_id)
|
|
|
28 |
|
1297 |
daniel |
29 |
function wpsg_addZV()
|
|
|
30 |
{
|
|
|
31 |
|
|
|
32 |
jQuery('#wpsg_zv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
33 |
|
|
|
34 |
jQuery.ajax( {
|
|
|
35 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&noheader=1&do=add',
|
|
|
36 |
success: function(data) {
|
|
|
37 |
jQuery('#wpsg_zv_list').html(data);
|
|
|
38 |
}
|
|
|
39 |
} );
|
1406 |
daniel |
40 |
|
|
|
41 |
return false;
|
1297 |
daniel |
42 |
|
|
|
43 |
} // function wpsg_addZV()
|
|
|
44 |
|
|
|
45 |
function wpsg_removeZV(zv_id)
|
|
|
46 |
{
|
|
|
47 |
|
|
|
48 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie die Zahlvariante löschen möchten?', 'wpsg'); ?>')) return false;
|
|
|
49 |
|
|
|
50 |
jQuery('#wpsg_zv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
51 |
|
|
|
52 |
jQuery.ajax( {
|
|
|
53 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&noheader=1&do=remove',
|
|
|
54 |
data: {
|
|
|
55 |
zv_id: zv_id
|
|
|
56 |
},
|
|
|
57 |
success: function(data) {
|
|
|
58 |
jQuery('#wpsg_zv_list').html(data);
|
|
|
59 |
}
|
|
|
60 |
} );
|
|
|
61 |
|
|
|
62 |
} // function wpsg_removeZV(zv_id)
|
|
|
63 |
|
|
|
64 |
</script>
|
|
|
65 |
|
|
|
66 |
<div class="wpsg_admin_box">
|
|
|
67 |
|
|
|
68 |
<div class="head">
|
|
|
69 |
<div class="title">
|
|
|
70 |
<div class="fulltab">
|
|
|
71 |
<?php echo __('Zahlvarianten', 'wpsg'); ?>
|
|
|
72 |
<a title="<?php echo __('Neue Zahlvariante anlegen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_addZV();"></a>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
76 |
<div class="content" id="wpsg_zv_list">
|
|
|
77 |
<?php echo $this->callMod('wpsg_mod_userpayment', 'zv_list'); ?>
|
|
|
78 |
</div>
|
|
|
79 |
|
|
|
80 |
</div>
|
|
|
81 |
|
|
|
82 |
<p class="wpsg_hinweis"><?php echo __('Um eine Zahlvariante zu bearbeiten klicken Sie einfach auf den Namen oder den Rabattwert.', 'wpsg'); ?></p>
|