Subversion Repositories wpShopGermany4

Rev

Blame | Last modification | View Log | RSS feed

<?php

    /**
     * Anzeige des Variantennamens in der Bestellverwaltung
     */

        namespace wpsgTicket;
        
    $i = $this->view['i'];
    $p = $this->view['p'];

        /** @var Ticket $oTicket */
        $oTicket = $this->view['oTicket'];
        
        /** @var \wpsg_order_product $oOrderProduct */
        $oOrderProduct = $this->view['oOrderProduct'];
        
?>

<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
    <td class="wpsg_cell_name">
        <?php echo __('Datum', 'wpsg'); ?>:
    </td>
    <td class="wpsg_cell_ticket text-right" colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
                <?php echo $oTicket->getLabel(); ?>
    </td>
</tr>
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
    <td class="wpsg_cell_name">
                <?php if ($p['amount'] > 1) { ?>
                <?php echo __('Tickets', 'wpsg'); ?>:
                <?php } else { ?>
                        <?php echo __('Ticket', 'wpsg'); ?>:
                <?php } ?>
    </td>
    <td class="wpsg_cell_ticket text-right" colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
                <?php for ($i = 0; $i < $p['amount']; $i ++) { ?>
                        <a target="_blank" href="<?php echo $oTicket->getTicketPublicURL($oOrderProduct->getId(), $i); ?>">Ticket #<?php echo $i + 1; ?></a>
                <?php } ?>
    </td>
</tr>