Line 6... |
Line 6... |
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
|
8 |
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
|
9 |
<?php echo __('Bisher keine Versandarten angelegt.', 'wpsg'); ?>
|
9 |
<?php echo __('Bisher keine Versandarten angelegt.', 'wpsg'); ?>
|
10 |
<?php } else { ?>
|
10 |
<?php } else { ?>
|
11 |
<table class="va_table">
|
- |
|
12 |
<colgroup>
|
11 |
|
13 |
<col class="wpsg_label" />
|
12 |
<?php foreach ($this->view['arVZ'] as $k=>$vz) { $arVzNamen[$k] = $vz['name']; } ?>
|
14 |
<col class="wpsg_value" />
|
- |
|
15 |
<col class="wpsg_delcol" />
|
- |
|
16 |
</colgroup>
|
13 |
|
17 |
<?php $i = 0; foreach ($this->view['data'] as $va) { $i ++; ?>
|
14 |
<?php $i = 0; foreach ($this->view['data'] as $va) { $i ++; ?>
|
18 |
<tr>
|
- |
|
19 |
<td class="wpsg_label"><?php echo __('ID', 'wpsg'); ?>:</td>
|
- |
|
20 |
<td class="wpsg_value"><?php echo $va['id']; ?></td>
|
- |
|
21 |
<td class="wpsg_delcol">
|
- |
|
22 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-minus-sign" href="#" title="<?php echo __('Versandart löschen', 'wpsg'); ?>" onclick="return wpsg_removeVA(<?php echo $va['id']; ?>);"></a>
|
- |
|
23 |
<?php foreach ($this->view['arVZ'] as $k=>$vz) { $arVzNamen[$k] = $vz['name']; } ?>
|
- |
|
24 |
<script type="text/javascript">
|
- |
|
25 |
|
15 |
|
26 |
jQuery(document).ready(function() {
|
- |
|
27 |
|
- |
|
28 |
jQuery('#va_<?php echo $va['id']; ?>_name').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
29 |
submitdata: {
|
- |
|
30 |
field: 'name',
|
16 |
<hr />
|
31 |
va_id: '<?php echo $va['id']; ?>'
|
17 |
<div id="wpsg_mod_versandarten_row_<?php echo $va['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 |
|
18 |
|
39 |
jQuery('#va_<?php echo $va['id']; ?>_kosten').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
40 |
submitdata: {
|
- |
|
41 |
field: 'kosten',
|
19 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
42 |
va_id: '<?php echo $va['id']; ?>'
|
20 |
<?php echo $va['id']; ?>
|
43 |
},
|
- |
|
44 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
- |
|
45 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
21 |
<a data-id="<?php echo $va['id']; ?>" class="wpsg_oc_removeLink" href="#" onclick="return wpsg_removeVA(<?php echo $va['id']; ?>);" title="<?php echo __('Versandart löschen', 'wpsg'); ?>">
|
46 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
22 |
<span class="wpsg_glyphicon_right glyphicon glyphicon-trash"></span></a>
|
47 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
23 |
<?php echo wpsg_drawForm_TextEnd(__('ID', 'wpsg')); ?>
|
48 |
});
|
- |
|
49 |
|
24 |
|
50 |
jQuery('#va_<?php echo $va['id']; ?>_hint').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
51 |
submitdata: {
|
- |
|
52 |
field: 'hint',
|
- |
|
53 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
54 |
},
|
- |
|
55 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
25 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
56 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
- |
|
57 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
- |
|
58 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
26 |
<span id="va_name_<?php echo $va['id']; ?>"><?php echo $va['name']; ?></span>
|
59 |
});
|
- |
|
60 |
|
- |
|
61 |
jQuery('#va_<?php echo $va['id']; ?>_typ').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
27 |
<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>
|
62 |
submitdata: {
|
- |
|
63 |
field: 'typ',
|
- |
|
64 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
65 |
},
|
- |
|
66 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
- |
|
67 |
data : <?php echo wpsg_prepare_for_inlineEdit($this->view['arTypen']); ?>,
|
28 |
<?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
|
68 |
type : 'select',
|
- |
|
69 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
- |
|
70 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
29 |
<script type="text/javascript">/* <![CDATA[ */
|
71 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
- |
|
72 |
});
|
- |
|
73 |
|
- |
|
74 |
jQuery('#va_<?php echo $va['id']; ?>_vz').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
30 |
jQuery('#va_name_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
75 |
submitdata: {
|
31 |
submitdata: {
|
76 |
field: 'vz',
|
32 |
field: 'name',
|
77 |
va_id: '<?php echo $va['id']; ?>'
|
33 |
va_id: '<?php echo $va['id']; ?>'
|
78 |
},
|
- |
|
79 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
- |
|
80 |
data : <?php echo wpsg_prepare_for_inlineEdit($arVzNamen) ?>,
|
- |
|
81 |
type : 'select',
|
34 |
}
|
82 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
- |
|
83 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
- |
|
84 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
- |
|
85 |
callback: function(data)
|
- |
|
86 |
{
|
35 |
});
|
87 |
location.reload();
|
36 |
/* ]]> */</script>
|
88 |
}
|
- |
|
89 |
|
- |
|
90 |
} );
|
- |
|
91 |
|
37 |
|
92 |
jQuery('#va_<?php echo $va['id']; ?>_mwst').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
93 |
submitdata: {
|
- |
|
94 |
field: 'mwst_key',
|
- |
|
95 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
96 |
},
|
- |
|
97 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
38 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
98 |
data: <?php echo wpsg_prepare_for_inlineEdit(wpsg_tax_groups()); ?>,
|
39 |
<input type="checkbox" value="1" <?php echo (($va['aktiv'] == '1')?'checked="checked"':''); ?> id="va_<?php echo $va['id']; ?>_aktiv" />
|
99 |
type: 'select',
|
- |
|
100 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
40 |
<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>
|
101 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
41 |
<?php echo wpsg_drawForm_TextEnd(__('Aktiv', 'wpsg')); ?>
|
102 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
42 |
<script type="text/javascript">/* <![CDATA[ */
|
103 |
});
|
- |
|
104 |
|
- |
|
105 |
|
- |
|
106 |
jQuery('#va_<?php echo $va['id']; ?>_aktiv').bind('change', function() {
|
43 |
jQuery('#va_<?php echo $va['id']; ?>_aktiv').bind('change', function() {
|
107 |
|
44 |
|
108 |
var value = 0;
|
45 |
var value = 0;
|
109 |
|
- |
|
110 |
if (jQuery(this).attr("checked") == "checked") value = 1;
|
46 |
if (jQuery(this).attr("checked") == "checked") value = 1;
|
111 |
|
47 |
|
112 |
jQuery.ajax( {
|
48 |
jQuery.ajax( {
|
113 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1',
|
49 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1',
|
114 |
data: {
|
50 |
data: {
|
115 |
field: 'aktiv',
|
51 |
field: 'aktiv',
|
116 |
va_id: '<?php echo $va['id']; ?>',
|
52 |
va_id: '<?php echo $va['id']; ?>',
|
117 |
value: value
|
53 |
value: value
|
118 |
}
|
54 |
}
|
119 |
} );
|
- |
|
120 |
|
- |
|
121 |
} );
|
- |
|
122 |
|
- |
|
123 |
} );
|
55 |
} );
|
124 |
|
- |
|
125 |
</script>
|
- |
|
126 |
|
- |
|
127 |
</td>
|
- |
|
128 |
</tr>
|
- |
|
129 |
<tr>
|
- |
|
130 |
<td class="wpsg_label"><?php echo __('Bezeichnung', 'wpsg'); ?>:</td>
|
- |
|
131 |
<td class="wpsg_value wpsg_editable" id="va_<?php echo $va['id']; ?>_name"><?php echo wpsg_hspc($va['name']); ?></td>
|
- |
|
132 |
<td class="wpsg_delcol">
|
- |
|
133 |
<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>
|
- |
|
134 |
</td>
|
- |
|
135 |
</tr>
|
- |
|
136 |
<tr>
|
- |
|
137 |
<td class="wpsg_label"><label for="va_<?php echo $va['id']; ?>_aktiv"><?php echo __('Aktiv', 'wpsg'); ?>:</label></td>
|
- |
|
138 |
<td class="wpsg_value">
|
- |
|
139 |
<input type="checkbox" value="1" <?php echo (($va['aktiv'] === '1')?'checked="checked"':''); ?> id="va_<?php echo $va['id']; ?>_aktiv" />
|
- |
|
140 |
</td>
|
- |
|
141 |
<td class="wpsg_delcol">
|
- |
|
142 |
<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>
|
- |
|
143 |
</td>
|
- |
|
144 |
</tr>
|
- |
|
145 |
<tr>
|
- |
|
146 |
<td class="wpsg_label"><?php echo __('Hinweistext', 'wpsg'); ?>:</td>
|
- |
|
147 |
<td class="wpsg_value wpsg_editable" id="va_<?php echo $va['id']; ?>_hint" ><?php echo wpsg_hspc($va['hint']); ?></td>
|
- |
|
148 |
<td class="wpsg_delcol">
|
- |
|
149 |
<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>
|
- |
|
150 |
</td>
|
- |
|
151 |
</tr>
|
- |
|
152 |
<tr>
|
- |
|
153 |
<td class="wpsg_label"><?php echo __('Grundlage', 'wpsg'); ?>:</td>
|
- |
|
154 |
<td id="va_<?php echo $va['id']; ?>_typ" class="wpsg_value wpsg_editable"><?php echo wpsg_hspc($this->view['arTypen'][$va['typ']]); ?></td>
|
- |
|
155 |
<td class="wpsg_delcol">
|
- |
|
156 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage"></a>
|
- |
|
157 |
</td>
|
- |
|
158 |
</tr>
|
- |
|
159 |
<tr>
|
- |
|
160 |
<td class="wpsg_label"><?php echo __('Versandzone', 'wpsg'); ?>:</td>
|
- |
|
161 |
<td id="va_<?php echo $va['id']; ?>_vz" class="wpsg_value wpsg_editable">
|
- |
|
162 |
<?php if ($va['vz'] > 0) { ?>
|
- |
|
163 |
<?php echo wpsg_hspc($this->view['arVZ'][$va['vz']]['name']); ?>
|
- |
|
164 |
<?php } else { ?>
|
- |
|
165 |
<?php echo __('Alle Versandzonen', 'wpsg'); ?>
|
- |
|
166 |
<?php } ?>
|
- |
|
167 |
</td>
|
- |
|
168 |
<td class="wpsg_delcol">
|
- |
|
169 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone"></a>
|
- |
|
170 |
</td>
|
- |
|
171 |
</tr>
|
- |
|
172 |
<tr>
|
- |
|
173 |
<td class="wpsg_label"><?php echo __('Kostenschlüssel', 'wpsg'); ?>:</td>
|
- |
|
174 |
<td class="wpsg_value wpsg_editable" id="va_<?php echo $va['id']; ?>_kosten"><?php echo wpsg_hspc($va['kosten']); ?></td>
|
- |
|
175 |
<td class="wpsg_delcol">
|
- |
|
176 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_kostenschluessel" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_kostenschluessel"></a>
|
- |
|
177 |
</td>
|
56 |
} );
|
178 |
</tr>
|
- |
|
179 |
<?php if (wpsg_isSizedArray($this->view['arVZ'][$va['vz']]['arPLZ'])) { ?>
|
- |
|
180 |
<?php $index = 1; foreach ((array)$this->view['arVZ'][$va['vz']]['arPLZ'] as $plz_key => $plz) { ?>
|
- |
|
181 |
<tr>
|
- |
|
182 |
<td class="wpsg_label"><?php echo __('Kostenschlüssel PLZ', 'wpsg'); ?> [ <?php echo $plz ?> ]:</td>
|
- |
|
183 |
<td class="wpsg_value wpsg_editable" id="va_<?php echo $va['id'] ?>_plz_<?php echo $index ?>"><?php echo wpsg_hspc($va['kosten_plz'][$plz_key]); ?></td>
|
- |
|
184 |
<td class="wpsg_delcol">
|
- |
|
185 |
<script type="text/javascript">
|
57 |
/* ]]> */</script>
|
186 |
|
58 |
|
- |
|
59 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
60 |
<span id="va_hint_<?php echo $va['id']; ?>"><?php echo wpsg_hspc($va['hint']); ?></span>
|
- |
|
61 |
<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>
|
- |
|
62 |
<?php echo wpsg_drawForm_TextEnd(__('Hinweistext', 'wpsg')); ?>
|
- |
|
63 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
64 |
jQuery('#va_hint_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
65 |
submitdata: {
|
187 |
jQuery(document).ready(function() {
|
66 |
field: 'hint',
|
- |
|
67 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
68 |
}
|
- |
|
69 |
});
|
- |
|
70 |
/* ]]> */</script>
|
188 |
|
71 |
|
- |
|
72 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
73 |
<span id="va_typ_<?php echo $va['id']; ?>"><?php
|
- |
|
74 |
echo wpsg_hspc($this->view['arTypen'][$va['typ']]);
|
- |
|
75 |
?></span>
|
- |
|
76 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_grundlage"></a>
|
- |
|
77 |
<?php echo wpsg_drawForm_TextEnd(__('Grundlage', 'wpsg')); ?>
|
- |
|
78 |
<script type="text/javascript">/* <![CDATA[ */
|
189 |
jQuery('#va_<?php echo $va['id']; ?>_plz_<?php echo $index ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
79 |
jQuery('#va_typ_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
80 |
type: 'select',
|
- |
|
81 |
data: <?php echo wpsg_prepare_for_inlineEdit($this->view['arTypen']); ?>,
|
190 |
submitdata: {
|
82 |
submitdata: {
|
191 |
field: 'kosten_plz',
|
83 |
field: 'typ',
|
192 |
va_id: '<?php echo $va['id']; ?>',
|
84 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
85 |
}
|
- |
|
86 |
});
|
- |
|
87 |
/* ]]> */</script>
|
- |
|
88 |
|
- |
|
89 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
193 |
key: '<?php echo $index; ?>'
|
90 |
<span id="va_vz_<?php echo $va['id']; ?>">
|
- |
|
91 |
<?php if ($va['vz'] > 0) { ?>
|
- |
|
92 |
<?php echo wpsg_hspc($this->view['arVZ'][$va['vz']]['name']); ?>
|
194 |
},
|
93 |
<?php } else { ?>
|
195 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
94 |
<?php echo __('Alle Versandzonen', 'wpsg'); ?>
|
- |
|
95 |
<?php } ?>
|
- |
|
96 |
</span>
|
- |
|
97 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_versandzone"></a>
|
196 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
98 |
<?php echo wpsg_drawForm_TextEnd(__('Versandzone', 'wpsg')); ?>
|
197 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
99 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
100 |
jQuery('#va_vz_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
101 |
type: 'select',
|
198 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
102 |
data : <?php echo wpsg_prepare_for_inlineEdit($arVzNamen) ?>,
|
199 |
callback: function(data)
|
103 |
submitdata: {
|
- |
|
104 |
field: 'vz',
|
- |
|
105 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
106 |
}
|
200 |
{
|
107 |
});
|
- |
|
108 |
/* ]]> */</script>
|
- |
|
109 |
|
- |
|
110 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
111 |
<span id="va_kosten_<?php echo $va['id']; ?>"><?php echo wpsg_hspc($va['kosten']); ?></span>
|
- |
|
112 |
<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_kostenschluessel"></a>
|
- |
|
113 |
<?php echo wpsg_drawForm_TextEnd(__('Kostenschlüssel', 'wpsg')); ?>
|
- |
|
114 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
115 |
jQuery('#va_kosten_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
201 |
//location.reload();
|
116 |
submitdata: {
|
- |
|
117 |
field: 'kosten',
|
- |
|
118 |
va_id: '<?php echo $va['id']; ?>'
|
202 |
}
|
119 |
}
|
203 |
} );
|
120 |
});
|
- |
|
121 |
/* ]]> */</script>
|
- |
|
122 |
|
- |
|
123 |
<?php if (wpsg_isSizedArray($this->view['arVZ'][$va['vz']]['arPLZ'])) { ?>
|
- |
|
124 |
<?php $index = 1; foreach ((array)$this->view['arVZ'][$va['vz']]['arPLZ'] as $plz_key => $plz) { ?>
|
204 |
|
125 |
|
- |
|
126 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
127 |
<span id="va_plz_<?php echo $va['id'].'_'.$index; ?>"><?php echo wpsg_hspc(wpsg_getStr($va['kosten_plz'][$plz_key])); ?></span>
|
- |
|
128 |
<?php echo wpsg_drawForm_TextEnd(__('Kostenschlüssel PLZ', 'wpsg').' ['.$plz.']:'); ?> <?php /*echo $plz*/ ?>
|
- |
|
129 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
130 |
jQuery('#va_plz_<?php echo $va['id'].'_'.$index; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
131 |
submitdata: {
|
- |
|
132 |
field: 'kosten_plz',
|
- |
|
133 |
va_id: '<?php echo $va['id']; ?>',
|
- |
|
134 |
key: '<?php echo $index; ?>'
|
- |
|
135 |
}
|
- |
|
136 |
});
|
- |
|
137 |
/* ]]> */</script>
|
- |
|
138 |
|
- |
|
139 |
<?php $index++; } ?>
|
- |
|
140 |
<?php } ?>
|
- |
|
141 |
|
- |
|
142 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
143 |
<span id="va_mwst_key_<?php echo $va['id']; ?>"><?php
|
- |
|
144 |
$tax_groups = wpsg_tax_groups();
|
- |
|
145 |
echo wpsg_hspc($tax_groups[$va['mwst_key']]);
|
- |
|
146 |
?></span>
|
- |
|
147 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
- |
|
148 |
<?php echo wpsg_drawForm_TextEnd(__('Steuersatz', 'wpsg')); ?>
|
- |
|
149 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
150 |
jQuery('#va_mwst_key_<?php echo $va['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1', {
|
- |
|
151 |
type: 'select',
|
- |
|
152 |
data: <?php echo wpsg_prepare_for_inlineEdit(wpsg_tax_groups()); ?>,
|
- |
|
153 |
submitdata: {
|
- |
|
154 |
field: 'mwst_key',
|
- |
|
155 |
va_id: '<?php echo $va['id']; ?>'
|
- |
|
156 |
}
|
- |
|
157 |
});
|
- |
|
158 |
/* ]]> */</script>
|
- |
|
159 |
|
- |
|
160 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
161 |
<input type="checkbox" value="1" <?php echo (($va['mwst_laender'] == '1')?'checked="checked"':''); ?> id="va_mwst_laender_<?php echo $va['id']; ?>" />
|
- |
|
162 |
<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>
|
- |
|
163 |
<?php echo wpsg_drawForm_TextEnd(__('Keine MwSt. wenn Land steuerfrei', 'wpsg')); ?>
|
- |
|
164 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
165 |
jQuery('#va_mwst_laender_<?php echo $va['id']; ?>').bind('change', function() {
|
- |
|
166 |
|
- |
|
167 |
var value = 0;
|
- |
|
168 |
if (jQuery(this).attr("checked") == "checked") value = 1;
|
- |
|
169 |
|
- |
|
170 |
jQuery.ajax( {
|
- |
|
171 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten&do=inlinedit&noheader=1',
|
- |
|
172 |
data: {
|
- |
|
173 |
field: 'mwst_laender',
|
- |
|
174 |
va_id: '<?php echo $va['id']; ?>',
|
- |
|
175 |
value: value
|
- |
|
176 |
}
|
205 |
} );
|
177 |
} );
|
206 |
|
- |
|
207 |
</script>
|
- |
|
208 |
</td>
|
178 |
} );
|
209 |
</tr>
|
- |
|
210 |
<?php $index++; } ?>
|
- |
|
211 |
<?php } ?>
|
- |
|
212 |
<tr>
|
- |
|
213 |
<td class="wpsg_label"><?php echo __('Steuersatz', 'wpsg'); ?>:</td>
|
- |
|
214 |
<td id="va_<?php echo $va['id']; ?>_mwst" class="wpsg_value wpsg_editable"><?php
|
- |
|
215 |
|
- |
|
216 |
$tax_groups = wpsg_tax_groups();
|
- |
|
217 |
echo wpsg_hspc($tax_groups[$va['mwst_key']]);
|
- |
|
218 |
|
- |
|
219 |
?></td>
|
- |
|
220 |
<td class="wpsg_delcol">
|
179 |
/* ]]> */</script>
|
221 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
|
- |
|
222 |
</td>
|
- |
|
223 |
</tr>
|
180 |
</div>
|
224 |
<tr>
|
- |
|
225 |
<td class="wpsg_label"><?php echo __('Keine MwSt. wenn Land steuerfrei', 'wpsg'); ?>:</td>
|
181 |
<?php if ($i == sizeof($this->view['data'])) { ?><hr /><?php } ?>
|
226 |
<td class="wpsg_value">
|
- |
|
227 |
<input onchange="wpsg_saveVAMwSt(this, <?php echo $va['id']; ?>);" <?php echo (($va['mwst_laender'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" />
|
- |
|
228 |
</td>
|
- |
|
229 |
<td class="wpsg_delcol">
|
- |
|
230 |
<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>
|
- |
|
231 |
</td>
|
- |
|
232 |
</tr>
|
- |
|
233 |
|
182 |
|
234 |
|
- |
|
235 |
<?php $this->callMods('wpsg_mod_versandarten_listrow', array(&$va)); ?>
|
- |
|
236 |
<?php if ($i < sizeof($this->view['data'])) { ?>
|
- |
|
237 |
<tr class="wpsg_spacer"><td colspan="3"><hr /></td></tr>
|
- |
|
238 |
<?php } ?>
|
- |
|
239 |
<?php } ?>
|
183 |
<?php } ?>
|
240 |
</table>
|
- |
|
241 |
<?php } ?>
|
184 |
<?php } ?>
|
242 |
|
185 |
|