Subversion Repositories wpShopGermany4

Rev

Rev 5767 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5759 daniel 1
<?php
2
 
3
    /**
4
     * Integration der Variantenauswahl in die Produktverwaltung
5
     */
6242 daniel 6
 
7
    die("VERALTETES TEMPLATE");
8
 
5759 daniel 9
?>
10
 
5767 daniel 11
<div class="wpsg_mod_productvariants_product_wrap" id="wpsg_mod_productvariants_product_wrap_<?php echo $GLOBALS['wpsg_produkt_index']; ?>" wpsg-productindex="<?php echo $GLOBALS['wpsg_produkt_index']; ?>">
5760 daniel 12
    <?php foreach ($this->view['wpsg_mod_productvariants']['arVariants'] as $var) { ?>
13
 
5767 daniel 14
        <div class=wpsg_mod_productvariants_product wpsg_mod_productvariants_type_<?php echo $var['type']; ?>">
15
 
16
            <?php if ($var['type'] == wpsg_mod_productvariants::TYPE_SELECT) { ?>
5760 daniel 17
 
5767 daniel 18
                <label class="wpsg_mod_productvariants_label" for="wpsg_mod_productvariants_<?php echo $this->view['wpsg_mod_productvariants']['product_id']; ?>_<?php echo $var['id']; ?>"><?php echo wpsg_hspc($var['name']); ?></label>
19
 
20
                <select class="wpsg_mod_productvariants_change" id="wpsg_mod_productvariants_<?php echo $this->view['wpsg_mod_productvariants']['product_id']; ?>_<?php echo $var['id']; ?>" name="wpsg_mod_productvariants[<?php echo $var['id']; ?>]">
21
                    <?php foreach ($var['arVariation'] as $vari) { ?>
22
                    <option <?php echo (($this->view['wpsg_mod_productvariants']['product_variants'][$var['id']] == $vari['id'])?'selected="selected"':''); ?> value="<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['name']); ?></option>
23
                    <?php } ?>
24
                </select>
5760 daniel 25
 
5767 daniel 26
            <?php } else if ($var['type'] == wpsg_mod_productvariants::TYPE_RADIO) { ?>
27
 
28
                <label class="wpsg_mod_productvariants_label"><?php echo wpsg_hspc($var['name']); ?></label>
29
 
30
                <?php foreach ($var['arVariation'] as $vari) { ?>
31
                <label class="wpsg_mod_productvariants_variation_label">
32
                    <input class="wpsg_mod_productvariants_change" <?php echo (($this->view['wpsg_mod_productvariants']['product_variants'][$var['id']] == $vari['id'])?'checked="checked"':''); ?> type="radio" name="wpsg_mod_productvariants[<?php echo $var['id']; ?>]" value="<?php echo $vari['id']; ?>" />
33
                    <span><?php echo wpsg_hspc($vari['name']); ?></span>
34
                </label>
35
                <?php } ?>
36
 
37
            <?php } ?>
5760 daniel 38
 
39
        </div>
5759 daniel 40
 
5760 daniel 41
    <?php } ?>
5767 daniel 42
 
43
    <script type="text/javascript">/* <![CDATA[ */
44
 
45
        jQuery(document).ready(function() {
46
 
47
            jQuery('#wpsg_mod_productvariants_product_wrap_<?php echo $GLOBALS['wpsg_produkt_index']; ?>').bind('change', wpsg_mod_productvariants_reload);
48
 
49
        } );
50
 
51
    /* ]]> */</script>
52
 
5760 daniel 53
</div>