7706 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
/**
|
7787 |
daniel |
6 |
* User: Daschmi (https://daschmi.de)
|
7706 |
daniel |
7 |
* Date: 13.02.2020
|
|
|
8 |
* Time: 06:25
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
$view = $this->view['wpsg_mod_printshop'];
|
|
|
12 |
$arCalculation = $this->view['arCalculation'];
|
|
|
13 |
|
|
|
14 |
?>
|
|
|
15 |
|
|
|
16 |
<tr class="wpsg_<?php echo (($view['i'] % 2 == 0)?'odd':'even'); ?> wpsg_areaproduct">
|
|
|
17 |
<td class="wpsg_cell_name"></td>
|
|
|
18 |
<td class="wpsg_cell_value" colspan="<?php echo ((sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
|
|
|
19 |
|
|
|
20 |
<?php echo __('Größe', 'wpsg'); ?>
|
|
|
21 |
<?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'].'²'); ?>
|
|
|
22 |
(1 <?php echo $view['unit_price'] ?>² ≅ <?php echo wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency')); ?>)
|
|
|
23 |
|
|
|
24 |
</td>
|
|
|
25 |
</tr>
|
|
|
26 |
|
|
|
27 |
<?php if (wpsg_isSizedArray($view['arFiles'])) { ?>
|
|
|
28 |
|
|
|
29 |
<tr class="wpsg_<?php echo (($view['i'] % 2 == 0)?'odd':'even'); ?> wpsg_areaproduct">
|
|
|
30 |
<td class="wpsg_cell_name"></td>
|
|
|
31 |
<td class="wpsg_cell_value" colspan="<?php echo ((sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
|
|
|
32 |
|
|
|
33 |
<?php $arFileLinks = []; foreach ($view['arFiles'] as $f) {
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
$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))]);
|
|
|
37 |
|
|
|
38 |
$arFileLinks[] = '<a href="'.$url.'" target="_blank">'.basename($f).'</a>';
|
|
|
39 |
|
|
|
40 |
} echo implode(', ', $arFileLinks); ?>
|
|
|
41 |
|
|
|
42 |
</td>
|
|
|
43 |
</tr>
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
<?php }
|