summaryrefslogtreecommitdiff
path: root/views/mods/mod_orderupload/basket_row_upload_target.phtml
blob: 92f1308a4d39695420318189205220208774fcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
	/** @version 4.6.1 */

	if (!$this->bMessageOut) echo $this->writeFrontendMessage();

?>

<?php if (wpsg_isSizedArray($this->view['wpsg_mod_orderupload']['arFiles'])) { ?>

    <ul>
        
        <?php foreach ($this->view['wpsg_mod_orderupload']['arFiles'] as $f) { ?>
        
            <li>

                <a href="<?php

							echo wpsg_ShopController::getShop()->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_orderupload', 'downloadProductFile', [
								'file' => rawurlencode(basename($f)),
								'product_index' => $this->view['wpsg_mod_orderupload']['product_index']
							]);

						?>"><?php echo basename($f); ?> <span class="size">(<?php echo wpsg_formatSize($f); ?>)</span></a>
                
                <a title="<?php echo __('Upload entfernen.', 'wpsg'); ?>" class="removeLink" onclick="return wpsg_mod_orderupload_removefile('<?php echo rawurlencode(basename($f)); ?>', <?php echo $this->view['wpsg_mod_orderupload']['product_index']; ?>, <?php echo $this->view['wpsg_mod_orderupload']['product_id']; ?>);" href="#">
                    <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
                </a>
                
            </li>
    
        <?php } ?>

    </ul>
    
<?php } ?>

<?php if ($this->view['wpsg_mod_orderupload']['oProduct']->wpsg_mod_orderupload_set > sizeof($this->view['wpsg_mod_orderupload']['arFiles'])) { ?>

    <input type="file" id="wpsg_mod_orderupload_<?php echo $this->view['wpsg_mod_orderupload']['product_index']; ?>_file" name="wpsg_mod_orderupload[<?php echo $this->view['wpsg_mod_orderupload']['product_index']; ?>]" multiple="multiple" />
    <input type="button" data-sc-autoupload="1" onclick="return wpsg_mod_orderupload_upload(<?php echo $this->view['wpsg_mod_orderupload']['product_index']; ?>, <?php echo $this->view['wpsg_mod_orderupload']['product_id']; ?>);" id="wpsg_mod_orderupload_<?php echo $this->view['wpsg_mod_orderupload']['product_index']; ?>_button" value="<?php echo __('Hochladen', 'wpsg'); ?>" />

<?php } ?>