Line 4... |
Line 4... |
4 |
* Template für die Integration der Produktvariablen innerhalb des Warenkorbs
|
4 |
* Template für die Integration der Produktvariablen innerhalb des Warenkorbs
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
<?php foreach ($this->view['wpsg_mod_productvars']['data'] as $pv) { ?>
|
8 |
<?php foreach ($this->view['wpsg_mod_productvars']['data'] as $pv) { ?>
|
- |
|
9 |
<div class="product_info">
|
- |
|
10 |
<div
|
9 |
<tr class="wpsg_<?php echo (($this->view['wpsg_mod_productvars']['i'] == 0)?'odd':'even'); ?> wpsg_basket_productvars">
|
11 |
<?php if ($this->view['$bPicture'] == true) { ?>class="titlep"><?php } else { ?>class="title"><?php } ?>
|
10 |
<td><?php echo __($pv['name'], 'wpsg'); ?> <?php if ($pv['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>:</td>
|
12 |
<?php echo __($pv['name'], 'wpsg'); ?><?php if ($pv['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>
|
- |
|
13 |
</div>
|
11 |
<td colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'3':'2'); ?>">
|
14 |
<div class="valuel">
|
12 |
<?php if ($pv['typ'] == '1') { // Auswahlfeld ?>
|
15 |
<?php if ($pv['typ'] == '1') { // Auswahlfeld ?>
|
13 |
<select class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]">
|
16 |
<select class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]">
|
14 |
<option value="not_set"><?php echo __('Bitte wählen', 'wpsg'); ?></option>
|
17 |
<option value="not_set"><?php echo __('Bitte wählen', 'wpsg'); ?></option>
|
15 |
<?php foreach ((array)$pv['auswahl'] as $option) { ?>
|
18 |
<?php foreach ((array)$pv['auswahl'] as $option) { ?>
|
16 |
<option <?php echo (($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']] == wpsg_hspc($option))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($option); ?>"><?php echo wpsg_hspc($option); ?></option>
|
19 |
<option <?php echo ((@wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]) == wpsg_hspc($option))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($option); ?>"><?php echo wpsg_hspc($option); ?></option>
|
17 |
<?php } ?>
|
20 |
<?php } ?>
|
18 |
</select>
|
21 |
</select>
|
19 |
<?php } else if ($pv['typ'] == '2') { // Textfeld ?>
|
22 |
<?php } else if ($pv['typ'] == '2') { // Textfeld ?>
|
20 |
<input class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" value="<?php echo @wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]); ?>" />
|
23 |
<input class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" value="<?php echo @wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]); ?>" />
|
21 |
<?php } else if ($pv['typ'] == '3') { // Checkbox ?>
|
24 |
<?php } else if ($pv['typ'] == '3') { // Checkbox ?>
|
22 |
<input type="hidden" value="0" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" />
|
25 |
<input type="hidden" value="0" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" />
|
23 |
<input <?php echo (($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']] == '1')?'checked="checked"':''); ?> class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" type="checkbox" value="1" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" />
|
26 |
<input <?php echo ((@wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]) == '1')?'checked="checked"':''); ?> class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>" type="checkbox" value="1" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" />
|
24 |
<?php } ?>
|
27 |
<?php } ?>
|
- |
|
28 |
</div>
|
- |
|
29 |
<div class="dummyr">
|
- |
|
30 |
<?php echo __(' '); ?>
|
25 |
</td>
|
31 |
</div>
|
- |
|
32 |
|
26 |
</tr>
|
33 |
</div>
|
27 |
<?php } ?>
|
34 |
<?php } ?>
|
28 |
|
35 |
|