2660 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Liste der Staffelpreise innerhalb der Produktverwaltung
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<?php foreach ((array)$this->view['wpsg_mod_scaleprice']['arScale'] as $k => $scale) { ?>
|
|
|
9 |
<div class="wpsg_form_field wpsg_mod_scaleprice_row" id="wpsg_mod_scaleprice_row_<?php echo $scale['id']; ?>">
|
|
|
10 |
<div class="wpsg_form_left">
|
|
|
11 |
<div class="wpsg_mod_scaleprice_label_scale"><?php echo __('ab', 'wpsg'); ?></div>
|
|
|
12 |
<div class="wpsg_editable" id="wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_scale"><?php echo wpsg_ff($scale['scale']); ?></div>
|
|
|
13 |
<div class="wpsg_mod_scaleprice_label_value">
|
|
|
14 |
<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
|
|
|
15 |
<?php echo $this->get_option('wpsg_mod_weight_unit'); ?>
|
|
|
16 |
<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
|
|
|
17 |
<?php echo __('Stück', 'wpsg'); ?>
|
|
|
18 |
<?php } ?>
|
|
|
19 |
</div>
|
|
|
20 |
</div>
|
|
|
21 |
<div class="wpsg_form_right">
|
|
|
22 |
<div class="wpsg_editable" id="wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_value"><?php echo wpsg_ff($scale['value']); ?></div>
|
|
|
23 |
<p class="waehrung"><?php echo $this->get_option('wpsg_currency'); ?></p>
|
5945 |
hartmut |
24 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-minus-sign" href="" onclick="return wpsg_mod_scaleprice_remove(<?php echo $scale['id']; ?>);" title=""></a>
|
2660 |
daniel |
25 |
</div>
|
|
|
26 |
<div class="wpsg_clear"></div>
|
|
|
27 |
</div>
|
|
|
28 |
|
|
|
29 |
<script type="text/javascript">
|
|
|
30 |
/* <![CDATA[ */
|
|
|
31 |
|
|
|
32 |
jQuery(document).ready(function() {
|
|
|
33 |
|
5934 |
hartmut |
34 |
jQuery('#wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_scale').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=inlineEdit', {
|
2660 |
daniel |
35 |
submitdata: {
|
|
|
36 |
field: 'scale',
|
|
|
37 |
scale_id: '<?php echo $scale['id']; ?>'
|
|
|
38 |
},
|
|
|
39 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
40 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
41 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
42 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
43 |
});
|
|
|
44 |
|
5934 |
hartmut |
45 |
jQuery('#wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_value').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=inlineEdit', {
|
2660 |
daniel |
46 |
submitdata: {
|
|
|
47 |
field: 'value',
|
|
|
48 |
scale_id: '<?php echo $scale['id']; ?>'
|
|
|
49 |
},
|
|
|
50 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
51 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
52 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
53 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
54 |
});
|
3024 |
daniel |
55 |
|
|
|
56 |
jQuery('#wpsg_mod_scaleprice_scale').bind('blur', wpsg_mod_scaleprice_change);
|
|
|
57 |
jQuery('#wpsg_mod_scaleprice_value').bind('blur', wpsg_mod_scaleprice_change);
|
2660 |
daniel |
58 |
|
|
|
59 |
} );
|
|
|
60 |
|
|
|
61 |
/* ]]> */
|
|
|
62 |
</script>
|
|
|
63 |
|
|
|
64 |
<?php } ?>
|
|
|
65 |
|
|
|
66 |
<div class="wpsg_form_field">
|
|
|
67 |
<div class="wpsg_form_left">
|
|
|
68 |
<div class="wpsg_mod_scaleprice_label_scale"><?php echo __('ab', 'wpsg'); ?></div>
|
|
|
69 |
<input type="text" class="wpsg_mod_scaleprice_scale" name="wpsg_mod_scaleprice_scale" value="" id="wpsg_mod_scaleprice_scale" />
|
|
|
70 |
<div class="wpsg_mod_scaleprice_label_value">
|
|
|
71 |
<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
|
|
|
72 |
<?php echo $this->get_option('wpsg_mod_weight_unit'); ?>
|
|
|
73 |
<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
|
|
|
74 |
<?php echo __('Stück', 'wpsg'); ?>
|
|
|
75 |
<?php } ?>
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
|
|
78 |
<div class="wpsg_form_right">
|
|
|
79 |
<input type="text" class="wpsg_mod_scaleprice_value" name="wpsg_mod_scaleprice_value" value="" id="wpsg_mod_scaleprice_value">
|
|
|
80 |
<p class="waehrung"><?php echo $this->get_option('wpsg_currency'); ?></p>
|
5945 |
hartmut |
81 |
<a class="wpsg_glyphicon_right glyphicon glyphicon-plus-sign" href="" onclick="return wpsg_mod_scaleprice_add();" title=""></a>
|
2660 |
daniel |
82 |
</div>
|
|
|
83 |
<div class="wpsg_clear"></div>
|
|
|
84 |
</div>
|