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 |
|
|
|
13 |
?>
|
|
|
14 |
|
|
|
15 |
<div class="product_action product_action_printshop">
|
|
|
16 |
<div class="label">
|
|
|
17 |
|
|
|
18 |
<?php echo __("Bestellupload", "wpsg"); ?><br />
|
|
|
19 |
|
|
|
20 |
<input type="file" name="wpsg_mod_printshop[<?php echo $view['product_index']; ?>][]" <?php echo (($view['length'] > 1)?'multiple':''); ?> />
|
|
|
21 |
|
|
|
22 |
</div>
|
|
|
23 |
<div class="files">
|
|
|
24 |
|
|
|
25 |
<?php if (wpsg_isSizedArray($view['files'])) { ?>
|
|
|
26 |
|
|
|
27 |
<ul>
|
|
|
28 |
<?php foreach ($view['files'] as $file_index => $f) { ?>
|
|
|
29 |
<li>
|
|
|
30 |
<input type="checkbox" name="wpsg_mod_printshop[<?php echo $view['product_index'] ?>][delete_file][]" value="<?php echo $file_index; ?>" class="checkbox" style="display:none;" />
|
|
|
31 |
<a href="<?php echo $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_printshop', 'downloadFile', ['product_index' => $view['product_index'], 'file_index' => $file_index], false); ?>" target="_blank">
|
|
|
32 |
<?php echo $f['file_name']; ?>
|
|
|
33 |
</a>
|
|
|
34 |
<img
|
|
|
35 |
onclick="event.target.parentElement.querySelector('.checkbox').checked = 'checked'; event.target.parentElement.style.display = 'none'; return false"
|
|
|
36 |
class="delete" title="<?php echo __('Datei entfernen.', 'wpsg'); ?>" src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" alt="X" />
|
|
|
37 |
</li>
|
|
|
38 |
<?php } ?>
|
|
|
39 |
</ul>
|
|
|
40 |
|
|
|
41 |
<?php } else { ?>
|
|
|
42 |
|
|
|
43 |
<p><?php echo __('Noch keine Uploads durchgeführt.', 'wpsg'); ?></p>
|
|
|
44 |
|
|
|
45 |
<?php } ?>
|
|
|
46 |
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|