Subversion Repositories wpShopGermany4

Rev

Rev 3709 | Rev 4051 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

        /**
         * Template für die Anzeige der Produktvariablen in den Mails
         */

?>

<?php //foreach ($this->view['wpsg_mod_productvars']['data'] as $pv) { ?>
     <?php //echo $pv['name']; ?><!--  : --> <?php // echo $pv['value']; ?> 
<?php //} ?>

<?php if (is_array($this->view['wpsg_mod_productvars']['data']) && sizeof($this->view['wpsg_mod_productvars']['data']) > 0) { ?>
<?php foreach ($this->view['wpsg_mod_productvars']['data'] as $pv_id => $pv) {
   
   $pv_typ = $this->db->fetchOne("SELECT `typ` FROM `".WPSG_TBL_PRODUCTS_VARS."` WHERE `id` = '".wpsg_q($pv_id)."'");
         
?><?php echo __($pv['name'], 'wpsg'); ?>: <?php if ($pv_typ == '1') { // Auswahl ?>
<?php if ($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']] == 'not_set') { ?>
<?php echo __('Nicht angegeben', 'wpsg'); ?>
<?php } else { ?>
<?php echo wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]); ?>
<?php } ?>
<?php } else if ($pv_typ == '2') { // Textfeld ?>
<?php echo wpsg_hspc($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']]); ?>
<?php } else if ($pv_typ == '3') { // Checkbox ?>
<?php if ($this->view['wpsg_mod_productvars']['p']['wpsg_mod_productvars'][$pv['id']] == '1') { ?>
<?php echo __('Ja', 'wpsg'); ?>
<?php } else { ?>
<?php echo __('Nein', 'wpsg'); ?>
<?php } ?>
<?php } ?>
<?php } ?>
<?php } ?>