8427 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Anzeige des Variantennamens in der Bestellverwaltung
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
namespace wpsgTicket;
|
|
|
8 |
|
|
|
9 |
$i = $this->view['i'];
|
|
|
10 |
$p = $this->view['p'];
|
|
|
11 |
|
|
|
12 |
/** @var Ticket $oTicket */
|
|
|
13 |
$oTicket = $this->view['oTicket'];
|
|
|
14 |
|
|
|
15 |
/** @var \wpsg_order_product $oOrderProduct */
|
|
|
16 |
$oOrderProduct = $this->view['oOrderProduct'];
|
|
|
17 |
|
|
|
18 |
?>
|
|
|
19 |
|
|
|
20 |
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
|
|
|
21 |
<td class="wpsg_cell_name">
|
|
|
22 |
<?php echo __('Datum', 'wpsg'); ?>:
|
|
|
23 |
</td>
|
|
|
24 |
<td class="wpsg_cell_ticket text-right" colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
|
|
|
25 |
<?php echo $oTicket->getLabel(); ?>
|
|
|
26 |
</td>
|
|
|
27 |
</tr>
|
|
|
28 |
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
|
|
|
29 |
<td class="wpsg_cell_name">
|
|
|
30 |
<?php if ($p['amount'] > 1) { ?>
|
|
|
31 |
<?php echo __('Tickets', 'wpsg'); ?>:
|
|
|
32 |
<?php } else { ?>
|
|
|
33 |
<?php echo __('Ticket', 'wpsg'); ?>:
|
|
|
34 |
<?php } ?>
|
|
|
35 |
</td>
|
|
|
36 |
<td class="wpsg_cell_ticket text-right" colspan="<?php echo ((sizeof($this->view['arCalculation']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
|
|
|
37 |
<?php for ($i = 0; $i < $p['amount']; $i ++) { ?>
|
|
|
38 |
<a target="_blank" href="<?php echo $oTicket->getTicketPublicURL($oOrderProduct->getId(), $i); ?>">Ticket #<?php echo $i + 1; ?></a>
|
|
|
39 |
<?php } ?>
|
|
|
40 |
</td>
|
|
|
41 |
</tr>
|