Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1230 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Integration der Produktvariablen innerhalb des Warenkorbs
5
	 */
6
 
7
?>
6512 daniel 8
 
1230 daniel 9
<?php foreach ($this->view['wpsg_mod_productvars']['data'] as $pv) { ?>
6330 hartmut 10
<div class="product_info">
7844 daniel 11
	<div class="title">
6330 hartmut 12
		<?php echo __($pv['name'], 'wpsg'); ?><?php if ($pv['pflicht'] == '1') { ?><span class="wpsg_required">*</span><?php } ?>
13
	</div>
14
	<div class="valuel">
1230 daniel 15
		<?php if ($pv['typ'] == '1') { // Auswahlfeld ?>
4084 daniel 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']; ?>]">
1230 daniel 17
			<option value="not_set"><?php echo __('Bitte wählen', 'wpsg'); ?></option>
18
			<?php foreach ((array)$pv['auswahl'] as $option) { ?>
6330 hartmut 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>
1230 daniel 20
			<?php } ?>
21
		</select>
22
		<?php } else if ($pv['typ'] == '2') { // Textfeld ?>
4160 daniel 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']]); ?>" />
1230 daniel 24
		<?php } else if ($pv['typ'] == '3') { // Checkbox ?>
4317 daniel 25
		<input type="hidden" value="0" name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]" />
6330 hartmut 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']; ?>]" />
7824 daniel 27
		<?php } else if ($pv['typ'] == '4') { // Textfeld mehrzeilig ?>
28
            <textarea
29
                rows="5"
30
                name="wpsg_mod_productvars[<?php echo $pv['id']; ?>][<?php echo $this->view['wpsg_mod_productvars']['p']['product_index']; ?>]"
31
                class="<?php echo ((in_array("wpsg_mod_productvars_".$pv['id']."_".$this->view['wpsg_mod_productvars']['p']['product_index'], (array)$this->view['error']))?'wpsg_error':''); ?>"><?php echo @wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]); ?></textarea>
32
        <?php } ?>
6330 hartmut 33
	</div>
7824 daniel 34
 
6330 hartmut 35
</div>
1230 daniel 36
<?php } ?>