Rev 7706 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
declare(strict_types=1);
/**
* User: Daschmi (https://daschmi.de)
* Date: 13.02.2020
* Time: 06:25
*/
$view = $this->view['wpsg_mod_printshop'];
$arCalculation = $this->view['arCalculation'];
?>
<tr class="wpsg_<?php echo (($view['i'] % 2 == 0)?'odd':'even'); ?> wpsg_areaproduct">
<td class="wpsg_cell_name"></td>
<td class="wpsg_cell_value" colspan="<?php echo ((sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
<?php echo __('Größe', 'wpsg'); ?>
<?php echo wpsg_ff($view['width'], $view['unit_price'], true, 0); ?> x <?php echo wpsg_ff($view['length'], $view['unit_price'], true, 0); ?> = <?php echo wpsg_ff($view['area'], $view['unit_price'].'²'); ?>
(1 <?php echo $view['unit_price'] ?>² ≅ <?php echo wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency')); ?>)
</td>
</tr>
<?php if (wpsg_isSizedArray($view['arFiles'])) { ?>
<tr class="wpsg_<?php echo (($view['i'] % 2 == 0)?'odd':'even'); ?> wpsg_areaproduct">
<td class="wpsg_cell_name"></td>
<td class="wpsg_cell_value" colspan="<?php echo ((sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
<?php $arFileLinks = []; foreach ($view['arFiles'] as $f) {
$url = wpsg_admin_url('Order', 'ajax', ['do' => 'download', 'mod' => 'wpsg_mod_printshop', 'noheader' => '1', 'order_id' => $view['order_id'], 'product_index' => $view['product_index'], 'file' => rawurlencode(basename($f))]);
$arFileLinks[] = '<a href="'.$url.'" target="_blank">'.basename($f).'</a>';
} echo implode(', ', $arFileLinks); ?>
</td>
</tr>
<?php }