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 |
<table class="zv_table">
|
1406 |
daniel |
12 |
<colgroup>
|
|
|
13 |
<col class="wpsg_label" />
|
3441 |
daniel |
14 |
<col class="wpsg_value" />
|
1406 |
daniel |
15 |
<col class="wpsg_delcol" />
|
|
|
16 |
</colgroup>
|
|
|
17 |
<?php $i = 0; foreach ($this->view['wpsg_mod_userpayment']['data'] as $zv) { $i ++; ?>
|
1297 |
daniel |
18 |
<tr>
|
1406 |
daniel |
19 |
<td class="wpsg_label"><?php echo __('ID', 'wpsg'); ?>:</td>
|
3441 |
daniel |
20 |
<td class="wpsg_value"><?php echo $zv['id']; ?></td>
|
1406 |
daniel |
21 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
22 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-minus-sign" href="#" title="<?php echo __('Zahlvariante löschen', 'wpsg'); ?>" onclick="return wpsg_removeZV(<?php echo $zv['id']; ?>);"></a>
|
1297 |
daniel |
23 |
|
1406 |
daniel |
24 |
<script type="text/javascript">
|
1297 |
daniel |
25 |
|
1406 |
daniel |
26 |
jQuery(document).ready(function() {
|
|
|
27 |
|
5934 |
hartmut |
28 |
jQuery('#zv_<?php echo $zv['id']; ?>_name').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
1297 |
daniel |
29 |
submitdata: {
|
|
|
30 |
field: 'name',
|
|
|
31 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
32 |
},
|
|
|
33 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
34 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
35 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
36 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
37 |
} );
|
|
|
38 |
|
5934 |
hartmut |
39 |
jQuery('#zv_<?php echo $zv['id']; ?>_hint').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
1406 |
daniel |
40 |
submitdata: {
|
|
|
41 |
field: 'hint',
|
|
|
42 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
43 |
},
|
|
|
44 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
45 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
46 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
47 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
48 |
} );
|
|
|
49 |
|
5934 |
hartmut |
50 |
jQuery('#zv_<?php echo $zv['id']; ?>_rabgeb').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
1297 |
daniel |
51 |
submitdata: {
|
|
|
52 |
field: 'rabgeb',
|
|
|
53 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
54 |
},
|
|
|
55 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
56 |
placeholder: '<?php echo __('Definieren ...', 'wpsg'); ?>',
|
|
|
57 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
58 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
59 |
} );
|
|
|
60 |
|
5934 |
hartmut |
61 |
jQuery('#zv_<?php echo $zv['id']; ?>_mwst').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1', {
|
1297 |
daniel |
62 |
submitdata: {
|
4057 |
daniel |
63 |
field: 'mwst_key',
|
1297 |
daniel |
64 |
zv_id: '<?php echo $zv['id']; ?>'
|
|
|
65 |
},
|
1598 |
daniel |
66 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
4057 |
daniel |
67 |
data: '<?php echo json_encode(wpsg_tax_groups()); ?>',
|
1297 |
daniel |
68 |
type: 'select',
|
|
|
69 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
70 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
71 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
1416 |
daniel |
72 |
});
|
1297 |
daniel |
73 |
|
1416 |
daniel |
74 |
jQuery('#zv_<?php echo $zv['id']; ?>_aktiv').bind('change', function() {
|
|
|
75 |
|
|
|
76 |
var value = 0;
|
|
|
77 |
if (jQuery(this).attr("checked") == "checked") value = 1;
|
|
|
78 |
|
|
|
79 |
jQuery.ajax( {
|
|
|
80 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment&do=inlinedit&noheader=1',
|
|
|
81 |
data: {
|
|
|
82 |
field: 'aktiv',
|
|
|
83 |
zv_id: '<?php echo $zv['id']; ?>',
|
|
|
84 |
value: value
|
|
|
85 |
}
|
|
|
86 |
} );
|
|
|
87 |
|
|
|
88 |
} );
|
|
|
89 |
|
1406 |
daniel |
90 |
} );
|
|
|
91 |
|
|
|
92 |
</script>
|
|
|
93 |
|
|
|
94 |
</td>
|
1297 |
daniel |
95 |
</tr>
|
1406 |
daniel |
96 |
<tr>
|
|
|
97 |
<td class="wpsg_label"><?php echo __('Bezeichnung', 'wpsg'); ?>:</td>
|
3441 |
daniel |
98 |
<td class="wpsg_value" id="zv_<?php echo $zv['id']; ?>_name"><?php echo wpsg_hspc($zv['name']); ?></td>
|
|
|
99 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
100 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
101 |
</td>
|
1406 |
daniel |
102 |
</tr>
|
|
|
103 |
<tr>
|
1416 |
daniel |
104 |
<td class="wpsg_label"><?php echo __('Aktiv', 'wpsg'); ?>:</td>
|
3441 |
daniel |
105 |
<td class="wpsg_value">
|
1416 |
daniel |
106 |
<input type="checkbox" value="1" <?php echo (($zv['aktiv'] == '1')?'checked="checked"':''); ?> id="zv_<?php echo $zv['id']; ?>_aktiv" />
|
|
|
107 |
</td>
|
3441 |
daniel |
108 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
109 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
110 |
</td>
|
1416 |
daniel |
111 |
</tr>
|
|
|
112 |
<tr>
|
1406 |
daniel |
113 |
<td class="wpsg_label"><?php echo __('Hinweistext', 'wpsg'); ?>:</td>
|
3441 |
daniel |
114 |
<td class="wpsg_value" id="zv_<?php echo $zv['id']; ?>_hint"><?php echo wpsg_hspc($zv['hint']); ?></td>
|
|
|
115 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
116 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
117 |
</td>
|
1406 |
daniel |
118 |
</tr>
|
|
|
119 |
<tr>
|
|
|
120 |
<td class="wpsg_label"><?php echo __('Gebühr/Rabatt', 'wpsg'); ?>:</td>
|
3441 |
daniel |
121 |
<td class="wpsg_value">
|
4110 |
daniel |
122 |
<div style="float:left; width:70%" id="zv_<?php echo $zv['id']; ?>_rabgeb" class="editable"><?php echo wpsg_hspc(wpsg_ff($zv['rabgeb'], true)); ?></div>
|
3441 |
daniel |
123 |
<div style="float:right;"><?php echo $this->get_option('wpsg_currency'); ?> / %</div>
|
|
|
124 |
</td>
|
|
|
125 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
126 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
127 |
</td>
|
|
|
128 |
</tr>
|
|
|
129 |
<tr>
|
|
|
130 |
<td class="wpsg_label"><?php echo __('Steuersatz', 'wpsg'); ?>:</td>
|
4057 |
daniel |
131 |
<td id="zv_<?php echo $zv['id']; ?>_mwst" class="wpsg_value wpsg_editable"><?php
|
|
|
132 |
|
|
|
133 |
$tax_groups = wpsg_tax_groups();
|
|
|
134 |
echo wpsg_hspc($tax_groups[$zv['mwst_key']]);
|
|
|
135 |
|
|
|
136 |
?></td>
|
3441 |
daniel |
137 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
138 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
139 |
</td>
|
1406 |
daniel |
140 |
</tr>
|
|
|
141 |
<tr>
|
3441 |
daniel |
142 |
<td class="wpsg_label"><?php echo __('Keine MwSt. wenn Land steuerfrei', 'wpsg'); ?>:</td>
|
|
|
143 |
<td class="wpsg_value">
|
1406 |
daniel |
144 |
<input onchange="wpsg_saveZVMwSt(this, <?php echo $zv['id']; ?>);" <?php echo (($zv['mwst_laender'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" />
|
3441 |
daniel |
145 |
</td>
|
|
|
146 |
<td class="wpsg_delcol">
|
5934 |
hartmut |
147 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
3441 |
daniel |
148 |
</td>
|
1406 |
daniel |
149 |
</tr>
|
|
|
150 |
<?php if ($i < sizeof($this->view['wpsg_mod_userpayment']['data'])) { ?>
|
3441 |
daniel |
151 |
<tr class="wpsg_spacer"><td colspan="3"><hr /></td></tr>
|
1406 |
daniel |
152 |
<?php } ?>
|
1297 |
daniel |
153 |
<?php } ?>
|
|
|
154 |
</table>
|
5439 |
daniel |
155 |
<?php } ?>
|