Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
3444 daniel 1
<div class="wpsg_mod_shippingadress">
2
 
3
	<h2><?php echo __('Gesonderte Lieferadresse', 'wpsg'); ?></h2>
4
 
3460 daniel 5
	<div class="wpsg_spacer"></div>
6
 
2783 daniel 7
	<div class="wpsg_inner">
3444 daniel 8
 
9
		<div class="wpsg_checkoutblock">
10
			<label for="act_checkout_shippingadress">
5867 daniel 11
				<input id="act_checkout_shippingadress" class="wpsg_checkout formfield_checkbox" type="checkbox" name="wpsg[checkout][diff_shippingadress]" value="" <?php echo ((wpsg_isSizedInt($_SESSION['wpsg']['checkout']['diff_shippingadress']))?'checked="checked"':'') ?> onclick="view_checkout_shippingadresss()" />
3444 daniel 12
				<?php echo __('Gesonderte Lieferadresse abweichend von der Rechnungsadresse verwenden', 'wpsg') ?>
13
			</label>
2783 daniel 14
		</div>
1221 david 15
 
2791 daniel 16
		<div class="wpsg_clear"></div>
17
 
2783 daniel 18
		<div class="checkout_shippingadress" style="display:none;">
1221 david 19
 
2783 daniel 20
			<div class="wpsg_checkoutblock">
6371 hartmut 21
				<label for="firma" class="wpsg_checkout"><?php echo __("Firma:", "wpsg"); ?>
22
					<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
23
				</label>
24
				<input class="<?php echo (($this->view['pflicht']['firma'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_name" name="wpsg[checkout][shipping_firma]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_firma'])); ?>" />
2783 daniel 25
			</div>
1221 david 26
 
2783 daniel 27
			<div class="wpsg_checkoutblock">
28
				<label for="title" class="wpsg_checkout"><?php echo __("Anrede:", "wpsg"); ?>
6371 hartmut 29
					<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2783 daniel 30
				</label>
6371 hartmut 31
				<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" type="select" id="shipping_title" name="wpsg[checkout][shipping_title]">
32
				<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
6107 hartmut 33
				<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
34
				<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo ((wpsg_isSizedString($this->view['basket']['checkout']['shipping_title'], $t))?'selected="selected"':''); ?>><?php echo $t; ?></option>
2783 daniel 35
				<?php } ?>
36
				</select>
37
			</div>
2330 daniel 38
 
2783 daniel 39
			<div class="wpsg_checkoutblock">
40
				<label for="vname" class="wpsg_checkout"><?php echo __("Vorname:", "wpsg"); ?>
6371 hartmut 41
					<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2783 daniel 42
				</label>
6371 hartmut 43
				<input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_vname" name="wpsg[checkout][shipping_vname]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_vname'])); ?>" />
2783 daniel 44
			</div>
45
 
46
			<div class="wpsg_checkoutblock">
47
				<label for="name" class="wpsg_checkout"><?php echo __("Name:", "wpsg"); ?>
6371 hartmut 48
					<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
2783 daniel 49
				</label>
6371 hartmut 50
				<input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_name" name="wpsg[checkout][shipping_name]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_name'])); ?>" />
2783 daniel 51
			</div>
52
 
53
			<div class="wpsg_checkoutblock">
6053 hartmut 54
				<label for="strasse" class="wpsg_checkout"><?php echo __("Straße, Nr.:", "wpsg"); ?>
6371 hartmut 55
					<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2783 daniel 56
				</label>
6371 hartmut 57
				<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_strasse" name="wpsg[checkout][shipping_strasse]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_strasse'])); ?>" />
2783 daniel 58
			</div>
2330 daniel 59
 
2783 daniel 60
			<div class="wpsg_checkoutblock">
61
				<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl:", "wpsg"); ?>
6371 hartmut 62
					<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2783 daniel 63
				</label>
6371 hartmut 64
				<input class="<?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_plz" name="wpsg[checkout][shipping_plz]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_plz'])); ?>" />
2783 daniel 65
			</div>
66
 
67
			<div class="wpsg_checkoutblock">
68
				<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort:", "wpsg"); ?>
6371 hartmut 69
					<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2783 daniel 70
				</label>
6371 hartmut 71
				<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_ort" name="wpsg[checkout][shipping_ort]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['basket']['checkout']['shipping_ort'])); ?>" />
2783 daniel 72
			</div>
73
 
74
			<div class="wpsg_checkoutblock">
3427 daniel 75
				<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land:", "wpsg"); ?>
6371 hartmut 76
					<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
3427 daniel 77
				</label>
6371 hartmut 78
				<select name="wpsg[checkout][shipping_land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required_shipping]':''); ?> wpsg_checkout <?php echo ((in_array("shipping_land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="shipping_land">
2783 daniel 79
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
80
					<?php foreach ($this->view['laender'] as $l) { ?>
81
					<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['shipping_land'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($l['name']); ?></option>
82
					<?php } ?>
83
				</select>
84
			</div>
85
 
86
			<script type="text/javascript">/* <![CDATA[ */
87
 
88
				function view_checkout_shippingadresss()
89
				{
3224 daniel 90
 
91
					if (jQuery('#act_checkout_shippingadress').prop('checked') != true)
2783 daniel 92
					{
2791 daniel 93
 
2783 daniel 94
						jQuery('.checkout_shippingadress').attr('style', 'display:none;');
95
						jQuery('#act_checkout_shippingadress').attr('value', null);
2791 daniel 96
 
97
						<?php if ($this->get_option('wpsg_form_validation') == '2') { ?>
98
						jQuery.validator.removeClassRules('validate[required_shipping]', { cRequired: true } );
99
						<?php } ?>
100
 
2783 daniel 101
					}
2330 daniel 102
 
3224 daniel 103
					if (jQuery('#act_checkout_shippingadress').prop('checked') == true)
2783 daniel 104
					{
2791 daniel 105
 
2783 daniel 106
						jQuery('.checkout_shippingadress').attr('style', 'display:display;');
107
						jQuery('#act_checkout_shippingadress').attr('value', 1);
2791 daniel 108
 
109
						<?php if ($this->get_option('wpsg_form_validation') == '2') { ?>
110
						jQuery.validator.addClassRules('validate[required_shipping]', { cRequired: true } );
111
						<?php } ?>
112
 
2783 daniel 113
					}
114
 
115
					return false;
116
 
117
				}
1221 david 118
 
2783 daniel 119
				jQuery(document).ready(function()
120
				{
121
 
122
					view_checkout_shippingadresss();
123
 
124
				});
125
 
126
			/* ]]> */</script>
127
		</div>
128
	</div>
1221 david 129
</div>