Line 2... |
Line 2... |
2 |
|
2 |
|
3 |
/**
|
3 |
/**
|
4 |
* Template für die Liste der Versandzonen
|
4 |
* Template für die Liste der Versandzonen
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
- |
|
7 |
$arShipping = $this->arShippingAll;
|
- |
|
8 |
|
- |
|
9 |
$arShippingPreset = [
|
- |
|
10 |
'0' => __('Kundenvoreinstellung', 'wpsg'),
|
- |
|
11 |
'-1' => __('günstigste Versandart', 'wpsg'),
|
- |
|
12 |
];
|
- |
|
13 |
|
- |
|
14 |
foreach ($arShipping as $s_key => $s) {
|
- |
|
15 |
|
- |
|
16 |
$arShippingPreset[$s_key] = $s['name'];
|
- |
|
17 |
|
- |
|
18 |
}
|
- |
|
19 |
|
7 |
?>
|
20 |
?>
|
8 |
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
|
21 |
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
|
9 |
<?php echo __('Bisher keine Versandzonen hinterlegt.', 'wpsg'); ?>
|
22 |
<?php echo __('Bisher keine Versandzonen hinterlegt.', 'wpsg'); ?>
|
10 |
<?php } else { ?>
|
23 |
<?php } else { ?>
|
11 |
<table class="table wpsg_table_vz">
|
24 |
<table class="table wpsg_table_vz">
|
12 |
<thead>
|
25 |
<thead>
|
13 |
<tr>
|
26 |
<tr>
|
14 |
<th class="col_name"><?php echo __('Bezeichnung', 'wpsg'); ?></th>
|
27 |
<th class="col_name"><?php echo __('Bezeichnung', 'wpsg'); ?></th>
|
15 |
<th class="col_innereu"><?php echo __('Inner- gemeinschaftlich', 'wpsg'); ?></th>
|
28 |
<th class="col_innereu"><?php echo __('Inner- gemeinschaftlich', 'wpsg'); ?></th>
|
- |
|
29 |
<th class="col_shippingpreset"><?php echo __('Standardversandart', 'wpsg'); ?></th>
|
16 |
<th class="col_aktion"></th>
|
30 |
<th class="col_aktion"></th>
|
17 |
</tr>
|
31 |
</tr>
|
18 |
</thead>
|
32 |
</thead>
|
19 |
<tbody>
|
33 |
<tbody>
|
20 |
<?php foreach ($this->view['data'] as $vz) { ?>
|
34 |
<?php foreach ($this->view['data'] as $vz) { ?>
|
Line 30... |
Line 44... |
30 |
<td class="col_innereu">
|
44 |
<td class="col_innereu">
|
31 |
<input class="wpsg_innereu"
|
45 |
<input class="wpsg_innereu"
|
32 |
data-url="<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id'])); ?>"
|
46 |
data-url="<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id'])); ?>"
|
33 |
<?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
|
47 |
<?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
|
34 |
</td>
|
48 |
</td>
|
- |
|
49 |
<td class="col_shippingpreset">
|
- |
|
50 |
<span id="vz_<?php echo $vz['id']; ?>_shippingpreset"><?php echo wpsg_hspc(wpsg_getStr($arShippingPreset[$vz['shippingpreset']], __('Kundenvoreinstellung', 'wpsg'))); ?></span>
|
- |
|
51 |
<script>
|
- |
|
52 |
|
- |
|
53 |
jQuery('#vz_<?php echo $vz['id']; ?>_shippingpreset').wpsg_editable('<?php
|
- |
|
54 |
|
- |
|
55 |
echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id']));
|
- |
|
56 |
|
- |
|
57 |
?>', {
|
- |
|
58 |
submitdata: {
|
- |
|
59 |
field: 'shippingpreset',
|
- |
|
60 |
vz_id: '<?php echo $vz['id']; ?>'
|
- |
|
61 |
},
|
- |
|
62 |
data: <?php echo wpsg_prepare_for_inlineEdit($arShippingPreset); ?>,
|
- |
|
63 |
type: 'select',
|
- |
|
64 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
- |
|
65 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
- |
|
66 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
- |
|
67 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
- |
|
68 |
});
|
- |
|
69 |
|
- |
|
70 |
</script>
|
- |
|
71 |
</td>
|
35 |
<td class="col_aktion">
|
72 |
<td class="col_aktion">
|
36 |
|
73 |
|
37 |
<a class="wpsg_icon_plzedit" href="#" title="<?php echo __('Versandzonen PLZ bearbeiten', 'wpsg'); ?>" onclick="return wpsg_editPLZ(<?php echo $vz['id']; ?>);">[ PLZ ]</a>
|
74 |
<a class="wpsg_icon_plzedit" href="#" title="<?php echo __('Versandzonen PLZ bearbeiten', 'wpsg'); ?>" onclick="return wpsg_editPLZ(<?php echo $vz['id']; ?>);">[ PLZ ]</a>
|
38 |
<a class="glyphicon glyphicon-trash" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
|
75 |
<a class="glyphicon glyphicon-trash" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
|
39 |
|
76 |
|