Subversion Repositories wpShopGermany4

Rev

Rev 5945 | Rev 6889 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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