Subversion Repositories wpShopGermany4

Rev

Rev 6889 | 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) { ?>
6890 hartmut 13
	<div class="col-sm-6" style="float:right;">
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>
6492 thomas 32
		</div>
2660 daniel 33
	</div>
6890 hartmut 34
	<div class="wpsg_clear"></div>
35
 
2660 daniel 36
<script type="text/javascript">
6492 thomas 37
/* <![CDATA[ */
2660 daniel 38
 
39
	jQuery(document).ready(function() {
40
 
5934 hartmut 41
		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 42
			submitdata: {
43
				field: 'scale',
44
				scale_id: '<?php echo $scale['id']; ?>'
45
			},
46
			submit: '<?php echo __('Speichern', 'wpsg'); ?>',
47
			placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
48
			indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
49
			tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
50
		});
51
 
5934 hartmut 52
		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 53
			submitdata: {
54
				field: 'value',
55
				scale_id: '<?php echo $scale['id']; ?>'
56
			},
57
			submit: '<?php echo __('Speichern', 'wpsg'); ?>',
58
			placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
59
			indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
60
			tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
61
		});
3024 daniel 62
 
63
		jQuery('#wpsg_mod_scaleprice_scale').bind('blur', wpsg_mod_scaleprice_change);
64
		jQuery('#wpsg_mod_scaleprice_value').bind('blur', wpsg_mod_scaleprice_change);
2660 daniel 65
 
66
	} );
6492 thomas 67
 
2660 daniel 68
/* ]]> */
69
</script>
70
 
71
<?php } ?>
72
 
6890 hartmut 73
<div class="wpsg_clear"></div>
74
<div class="col-sm-6 control-label" style="font-size:12px; font-weight:bold; ">
6492 thomas 75
<?php echo __('Neue Preisgrenze', 'wpsg'); ?>
76
</div>
77
<div class="col-sm-6">
78
	<div class="wpsg_form_field">
79
		<div class="wpsg_form_left">
80
			<div class="wpsg_mod_scaleprice_label_scale" style="width:30px; float:left; font-size:12px;"><?php echo __('ab', 'wpsg'); ?></div>
81
			<input type="text" class="wpsg_mod_scaleprice_scale" style="width:90px; float:left;" name="wpsg_mod_scaleprice_scale" value="" id="wpsg_mod_scaleprice_scale" />
82
			<div class="wpsg_mod_scaleprice_label_value" style="float:left; margin:0 0 0 10px; font-size:12px;">
83
				<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
84
				<?php echo $this->get_option('wpsg_mod_weight_unit'); ?>
85
				<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
86
				<?php echo __('Stück', 'wpsg'); ?>
87
				<?php } ?>
88
			</div>
89
		</div>
90
		<div class="wpsg_form_right">
91
			<input type="text" class="wpsg_mod_scaleprice_value" style="width:90px; float:left;" name="wpsg_mod_scaleprice_value" value="" id="wpsg_mod_scaleprice_value">
92
			<p class="waehrung" style="float:left; margin:0 0 0 10px; font-size:12px;"><?php echo $this->get_option('wpsg_currency'); ?></p>
93
			<a style="float:right; margin-top:4px;" class="wpsg_glyphicon_right glyphicon glyphicon-plus-sign" href="" onclick="return wpsg_mod_scaleprice_add();" title=""></a>
94
		</div>
95
		<div class="wpsg_clear"></div>
96
	</div>
97
</div>