1428 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Integration der Bestellvariablen innerhalb des Checkouts
|
|
|
5 |
*/
|
1606 |
daniel |
6 |
|
1428 |
daniel |
7 |
?>
|
2791 |
daniel |
8 |
<div class="wpsg_box wpsg_mod_ordervars">
|
3460 |
daniel |
9 |
|
3455 |
daniel |
10 |
<h2><?php echo __('Bestellvariablen', 'wpsg'); ?></h2>
|
3460 |
daniel |
11 |
|
|
|
12 |
<div class="wpsg_spacer"></div>
|
|
|
13 |
|
2791 |
daniel |
14 |
<div class="wpsg_inner">
|
|
|
15 |
<?php foreach ((array)$this->view['wpsg_mod_ordervars']['data'] as $ov) { ?>
|
|
|
16 |
<div class="wpsg_checkoutblock">
|
|
|
17 |
<?php if ($ov['typ'] == '3') { // Checkbox ?>
|
|
|
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']; ?>]" />
|
|
|
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 } ?>
|
|
|
21 |
</label>
|
|
|
22 |
<?php } else { ?>
|
|
|
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'])); ?>
|
|
|
25 |
<?php if ($ov['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
26 |
</label>
|
|
|
27 |
<div class="wpsg_mod_ordervars_field">
|
|
|
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']; ?>">
|
|
|
30 |
<option value=""><?php echo __('Bitte wählen', 'wpsg'); ?></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>
|
|
|
33 |
<?php } ?>
|
|
|
34 |
</select>
|
|
|
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']; ?>" />
|
|
|
37 |
<?php } ?>
|
|
|
38 |
</div>
|
1428 |
daniel |
39 |
<?php } ?>
|
2791 |
daniel |
40 |
<div class="wpsg_clear"></div>
|
|
|
41 |
</div>
|
1428 |
daniel |
42 |
<?php } ?>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|