1297 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Liste von Zahlungsarten
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<?php if (!is_array($this->view['wpsg_mod_userpayment']['data']) || sizeof($this->view['wpsg_mod_userpayment']['data']) <= 0) { ?>
|
|
|
9 |
<?php echo __('Bisher keine Zahlvarianten angelegt.', 'wpsg'); ?>
|
|
|
10 |
<?php } else { ?>
|
|
|
11 |
|
5997 |
hartmut |
12 |
<?php $i = 0; foreach ($this->view['wpsg_mod_userpayment']['data'] as $zv) { $i ++; ?>
|
1297 |
daniel |
13 |
|
5997 |
hartmut |
14 |
<hr />
|
|
|
15 |
<div id="wpsg_mod_userpayment_row_<?php echo $zv['id']; ?>">
|
1406 |
daniel |
16 |
|
5997 |
hartmut |
17 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
7391 |
daniel |
18 |
<?php echo $zv['id']; ?><a data-id="<?php echo $zv['id']; ?>" onclick="return wpsg_removeZV(<?php echo $zv['id']; ?>); return false;" class="wpsg_oc_removeLink" href="#"><span class="wpsg_glyphicon_right glyphicon glyphicon-trash form-control-feedback"></span></a>
|
5997 |
hartmut |
19 |
<?php echo wpsg_drawForm_TextEnd(__('ID', 'wpsg')); ?>
|
1297 |
daniel |
20 |
|
5997 |
hartmut |
21 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
6955 |
daniel |
22 |
<span id="zv_name_<?php echo $zv['id']; ?>"><?php echo wpsg_hspc($zv['name']); ?></span>
|
6006 |
hartmut |
23 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_name"
|
|
|
24 |
rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_name" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_name"></a>
|
5997 |
hartmut |
25 |
<?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
|
|
|
26 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
27 |
jQuery('#zv_name_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
|
|
28 |
submitdata: {
|
|
|
29 |
field: 'name',
|
|
|
30 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
31 |
}
|
|
|
32 |
});
|
|
|
33 |
/* ]]> */</script>
|
1297 |
daniel |
34 |
|
5997 |
hartmut |
35 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
36 |
<input type="checkbox" value="1" <?php echo (($zv['aktiv'] == '1')?'checked="checked"':''); ?> id="zv_<?php echo $zv['id']; ?>_aktiv" />
|
6006 |
hartmut |
37 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_activ" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_activ" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_activ"></a>
|
5997 |
hartmut |
38 |
<?php echo wpsg_drawForm_TextEnd(__('Aktiv', 'wpsg')); ?>
|
|
|
39 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
40 |
jQuery('#zv_<?php echo $zv['id']; ?>_aktiv').bind('change', function() {
|
1416 |
daniel |
41 |
|
5997 |
hartmut |
42 |
var value = 0;
|
7816 |
daniel |
43 |
if (jQuery(this).prop("checked") === true) value = 1;
|
1416 |
daniel |
44 |
|
5997 |
hartmut |
45 |
jQuery.ajax( {
|
|
|
46 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
|
|
|
47 |
data: {
|
|
|
48 |
field: 'aktiv',
|
|
|
49 |
zv_id: '<?php echo $zv['id']; ?>',
|
|
|
50 |
value: value
|
|
|
51 |
}
|
|
|
52 |
} );
|
|
|
53 |
} );
|
|
|
54 |
/* ]]> */</script>
|
1416 |
daniel |
55 |
|
5997 |
hartmut |
56 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
57 |
<span id="zv_hint_<?php echo $zv['id']; ?>"><?php echo wpsg_hspc($zv['hint']); ?></span>
|
6006 |
hartmut |
58 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_hint" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_hint" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_hint"></a>
|
5997 |
hartmut |
59 |
<?php echo wpsg_drawForm_TextEnd(__('Hinweistext', 'wpsg')); ?>
|
|
|
60 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
61 |
jQuery('#zv_hint_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
|
|
62 |
submitdata: {
|
|
|
63 |
field: 'hint',
|
|
|
64 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
65 |
}
|
|
|
66 |
});
|
|
|
67 |
/* ]]> */</script>
|
|
|
68 |
|
|
|
69 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
7853 |
daniel |
70 |
<span id="zv_rabgeb_<?php echo $zv['id']; ?>"><?php echo wpsg_ff($zv['rabgeb']); ?></span>
|
6006 |
hartmut |
71 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_gebuehr" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_gebuehr" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_gebuehr"></a>
|
5997 |
hartmut |
72 |
<?php echo wpsg_drawForm_TextEnd(__('Gebühr/Rabatt', 'wpsg')); ?>
|
7853 |
daniel |
73 |
<script>
|
|
|
74 |
|
5997 |
hartmut |
75 |
jQuery('#zv_rabgeb_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
|
|
76 |
submitdata: {
|
|
|
77 |
field: 'rabgeb',
|
|
|
78 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
79 |
}
|
|
|
80 |
});
|
|
|
81 |
|
7853 |
daniel |
82 |
</script>
|
|
|
83 |
|
5997 |
hartmut |
84 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
85 |
<span id="zv_mwst_key_<?php echo $zv['id']; ?>"><?php
|
|
|
86 |
$tax_groups = wpsg_tax_groups();
|
7347 |
daniel |
87 |
echo wpsg_hspc(@$tax_groups[$zv['mwst_key']]);
|
5997 |
hartmut |
88 |
?></span>
|
6006 |
hartmut |
89 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_mwst" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst"></a>
|
5997 |
hartmut |
90 |
<?php echo wpsg_drawForm_TextEnd(__('Steuersatz', 'wpsg')); ?>
|
|
|
91 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
92 |
jQuery('#zv_mwst_key_<?php echo $zv['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
|
|
93 |
type: 'select',
|
|
|
94 |
data: <?php echo wpsg_prepare_for_inlineEdit(wpsg_tax_groups()); ?>,
|
|
|
95 |
submitdata: {
|
|
|
96 |
field: 'mwst_key',
|
|
|
97 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
98 |
}
|
|
|
99 |
});
|
|
|
100 |
/* ]]> */</script>
|
|
|
101 |
|
|
|
102 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
103 |
<input type="checkbox" value="1" <?php echo (($zv['mwst_laender'] == '1')?'checked="checked"':''); ?> id="zv_mwst_laender_<?php echo $zv['id']; ?>" />
|
6006 |
hartmut |
104 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign form-control-feedback" data-wpsg-tip="wpsg_shippay_mwstland" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwstland" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwstland"></a>
|
5997 |
hartmut |
105 |
<?php echo wpsg_drawForm_TextEnd(__('Keine MwSt. wenn Land steuerfrei', 'wpsg')); ?>
|
|
|
106 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
107 |
jQuery('#zv_mwst_laender_<?php echo $zv['id']; ?>').bind('change', function() {
|
|
|
108 |
|
|
|
109 |
var value = 0;
|
7816 |
daniel |
110 |
if (jQuery(this).prop("checked") === true) value = 1;
|
5997 |
hartmut |
111 |
|
|
|
112 |
jQuery.ajax( {
|
|
|
113 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
|
|
|
114 |
data: {
|
|
|
115 |
field: 'mwst_laender',
|
|
|
116 |
zv_id: '<?php echo $zv['id']; ?>',
|
|
|
117 |
value: value
|
|
|
118 |
}
|
|
|
119 |
} );
|
|
|
120 |
} );
|
|
|
121 |
/* ]]> */</script>
|
|
|
122 |
|
|
|
123 |
</div>
|
|
|
124 |
|
|
|
125 |
<?php if ($i == sizeof($this->view['wpsg_mod_userpayment']['data'])) { ?><hr /><?php } ?>
|
|
|
126 |
<?php } ?>
|
|
|
127 |
|
|
|
128 |
|
5439 |
daniel |
129 |
<?php } ?>
|