Subversion Repositories wpShopGermany4

Rev

Rev 6492 | Rev 6890 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2660 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Liste der Staffelpreise innerhalb der Produktverwaltung
5
	 */
6
 
7
?>
6889 hartmut 8
 
6492 thomas 9
<div class="col-sm-6 control-label" style="font-size:12px; font-weight:bold;">
10
<?php echo __('Preisgrenzen', 'wpsg'); ?>
11
</div>
12
	<?php foreach ((array)$this->view['wpsg_mod_scaleprice']['arScale'] as $k => $scale) { ?>
6889 hartmut 13
	<div class="col-sm-6">
6492 thomas 14
	<div class="wpsg_form_field wpsg_mod_scaleprice_row" id="wpsg_mod_scaleprice_row_<?php echo $scale['id']; ?>">
15
		<div class="wpsg_form_left">
16
			<div class="wpsg_mod_scaleprice_label_scale" style="width:30px; float:left; font-size:12px;"><?php echo __('ab', 'wpsg'); ?></div>
17
			<div class="wpsg_editable" style="width:90px; float:left; text-align:right; padding-top:4px" id="wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_scale"><?php echo wpsg_ff($scale['scale']); ?></div>
18
			<div class="wpsg_mod_scaleprice_label_value" style="float:left; margin:0 0 0 10px; font-size:12px;">
19
				<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
20
				<?php echo $this->get_option('wpsg_mod_weight_unit'); ?>
21
				<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
22
				<?php echo __('Stück', 'wpsg'); ?>
23
				<?php } ?>
24
			</div>
25
		</div>
26
		<div class="wpsg_form_right">
27
			<div style="width:90px; float:left; padding-top:4px; text-align:right;" class="wpsg_editable" id="wpsg_mod_scaleprice_<?php echo $scale['id']; ?>_value"><?php echo wpsg_ff($scale['value']); ?></div>
28
			<p style="float:left; margin:0 0 0 10px; font-size:12px;" class="waehrung"><?php echo $this->get_option('wpsg_currency'); ?></p>
29
			<a style="float:right; margin-top:4px;" class="wpsg_glyphicon_right glyphicon glyphicon-minus-sign" href="" onclick="return wpsg_mod_scaleprice_remove(<?php echo $scale['id']; ?>);" title=""></a>
30
		</div>
31
		<div class="wpsg_clear"></div>
2660 daniel 32
	</div>
33
</div>
6889 hartmut 34
 
2660 daniel 35
<script type="text/javascript">
6492 thomas 36
/* <![CDATA[ */
2660 daniel 37
 
38
	jQuery(document).ready(function() {
39
 
5934 hartmut 40
		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 41
			submitdata: {
42
				field: 'scale',
43
				scale_id: '<?php echo $scale['id']; ?>'
44
			},
45
			submit: '<?php echo __('Speichern', 'wpsg'); ?>',
46
			placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
47
			indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
48
			tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
49
		});
50
 
5934 hartmut 51
		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 52
			submitdata: {
53
				field: 'value',
54
				scale_id: '<?php echo $scale['id']; ?>'
55
			},
56
			submit: '<?php echo __('Speichern', 'wpsg'); ?>',
57
			placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
58
			indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
59
			tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
60
		});
3024 daniel 61
 
62
		jQuery('#wpsg_mod_scaleprice_scale').bind('blur', wpsg_mod_scaleprice_change);
63
		jQuery('#wpsg_mod_scaleprice_value').bind('blur', wpsg_mod_scaleprice_change);
2660 daniel 64
 
65
	} );
6492 thomas 66
 
2660 daniel 67
/* ]]> */
68
</script>
69
 
70
<?php } ?>
71
 
6492 thomas 72
<div class="col-sm-6 control-label" style="font-size:12px; font-weight:bold;">
73
<?php echo __('Neue Preisgrenze', 'wpsg'); ?>
74
</div>
75
<div class="col-sm-6">
76
	<div class="wpsg_form_field">
77
		<div class="wpsg_form_left">
78
			<div class="wpsg_mod_scaleprice_label_scale" style="width:30px; float:left; font-size:12px;"><?php echo __('ab', 'wpsg'); ?></div>
79
			<input type="text" class="wpsg_mod_scaleprice_scale" style="width:90px; float:left;" name="wpsg_mod_scaleprice_scale" value="" id="wpsg_mod_scaleprice_scale" />
80
			<div class="wpsg_mod_scaleprice_label_value" style="float:left; margin:0 0 0 10px; font-size:12px;">
81
				<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
82
				<?php echo $this->get_option('wpsg_mod_weight_unit'); ?>
83
				<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
84
				<?php echo __('Stück', 'wpsg'); ?>
85
				<?php } ?>
86
			</div>
87
		</div>
88
		<div class="wpsg_form_right">
89
			<input type="text" class="wpsg_mod_scaleprice_value" style="width:90px; float:left;" name="wpsg_mod_scaleprice_value" value="" id="wpsg_mod_scaleprice_value">
90
			<p class="waehrung" style="float:left; margin:0 0 0 10px; font-size:12px;"><?php echo $this->get_option('wpsg_currency'); ?></p>
91
			<a style="float:right; margin-top:4px;" class="wpsg_glyphicon_right glyphicon glyphicon-plus-sign" href="" onclick="return wpsg_mod_scaleprice_add();" title=""></a>
92
		</div>
93
		<div class="wpsg_clear"></div>
94
	</div>
95
</div>