<?php

	/**
	 * Template für die Anzeige der Bestelluploads innerhalb der Bestellung
	 */
 
?>
<div class="postbox" id="wpsg_modorderupload">
	<div title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br></div>
	<h3 class="hndle">
		<span><?php echo __('Bestelluploads', 'wpsg'); ?></span>
	</h3> 
	<div class="inside">
		 <?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
		 <p><?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?></p>
		 <?php } else { ?>
		 <?php foreach ($this->view['arFiles'] as $f) { ?>
		 <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&action=ajax&mod=wpsg_mod_orderupload&wpsg_mod_orderupload_download=<?php echo rawurlencode($f); ?>"><?php echo $f; ?></a> (<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)<br />
		 <?php } ?>
		 <?php } ?>
	</div>
</div>