Line 15... |
Line 15... |
15 |
<?php foreach ((array)$this->view['wpsg_mod_ordervars']['data'] as $ov) { ?>
|
15 |
<?php foreach ((array)$this->view['wpsg_mod_ordervars']['data'] as $ov) { ?>
|
16 |
<div class="wpsg_checkoutblock">
|
16 |
<div class="wpsg_checkoutblock">
|
17 |
<?php if ($ov['typ'] == '3') { // Checkbox ?>
|
17 |
<?php if ($ov['typ'] == '3') { // Checkbox ?>
|
18 |
<label class="wpshopgermany_checkout" for="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
18 |
<label class="wpshopgermany_checkout" for="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
19 |
<input type="hidden" value="0" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" />
|
19 |
<input type="hidden" value="0" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" />
|
20 |
<input class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>" <?php echo (($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" /><?php echo $this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])); ?><?php if ($ov['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>
|
20 |
<input class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>" <?php echo ((wpsg_getStr($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']]) == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" /><?php echo $this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])); ?><?php if ($ov['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>
|
21 |
</label>
|
21 |
</label>
|
22 |
<?php } else { ?>
|
22 |
<?php } else { ?>
|
23 |
<label class="wpshopgermany_checkout" for="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
23 |
<label class="wpshopgermany_checkout" for="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
24 |
<?php echo $this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])); ?>
|
24 |
<?php echo $this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])); ?>
|
25 |
<?php if ($ov['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
25 |
<?php if ($ov['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
Line 27... |
Line 27... |
27 |
<div class="wpsg_mod_ordervars_field">
|
27 |
<div class="wpsg_mod_ordervars_field">
|
28 |
<?php if ($ov['typ'] == '1') { // Auswahlfeld ?>
|
28 |
<?php if ($ov['typ'] == '1') { // Auswahlfeld ?>
|
29 |
<select class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?> <?php echo (($ov['pflicht'] == '1')?'validate[required]':''); ?>" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
29 |
<select class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?> <?php echo (($ov['pflicht'] == '1')?'validate[required]':''); ?>" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>">
|
30 |
<option value=""><?php echo __('Bitte wählen', 'wpsg'); ?></option>
|
30 |
<option value=""><?php echo __('Bitte wählen', 'wpsg'); ?></option>
|
31 |
<?php $ov['auswahl'] = explode('|', $ov['auswahl']); foreach ((array)$ov['auswahl'] as $option) { ?>
|
31 |
<?php $ov['auswahl'] = explode('|', $ov['auswahl']); foreach ((array)$ov['auswahl'] as $option) { ?>
|
32 |
<option <?php echo (($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']] == $option)?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($option); ?>"><?php echo wpsg_hspc($option); ?></option>
|
32 |
<option <?php echo ((wpsg_getStr($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']]) == $option)?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($option); ?>"><?php echo wpsg_hspc($option); ?></option>
|
33 |
<?php } ?>
|
33 |
<?php } ?>
|
34 |
</select>
|
34 |
</select>
|
35 |
<?php } else if ($ov['typ'] == '2') { // Textfeld ?>
|
35 |
<?php } else if ($ov['typ'] == '2') { // Textfeld ?>
|
36 |
<input class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?> <?php echo (($ov['pflicht'] == '1')?'validate[required]':''); ?>" type="text" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" value="<?php echo wpsg_hspc($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']]); ?>" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>" />
|
36 |
<input class="<?php echo ((in_array("wpsg_mod_ordervars_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?> <?php echo (($ov['pflicht'] == '1')?'validate[required]':''); ?>" type="text" name="wpsg_mod_ordervars[<?php echo $ov['id']; ?>]" value="<?php echo wpsg_hspc(wpsg_getStr($_SESSION['wpsg']['wpsg_mod_ordervars'][$ov['id']])); ?>" id="wpsg_mod_ordervars_<?php echo $ov['id']; ?>" />
|
37 |
<?php } ?>
|
37 |
<?php } ?>
|
38 |
</div>
|
38 |
</div>
|
39 |
<?php } ?>
|
39 |
<?php } ?>
|
40 |
<div class="wpsg_clear"></div>
|
40 |
<div class="wpsg_clear"></div>
|
41 |
</div>
|
41 |
</div>
|
42 |
<?php } ?>
|
42 |
<?php } ?>
|