<?php
	
	/**
	 * Template für die Liste der Dateien im Backend
	 */

?>
<?php if (!wpsg_isSizedArray($this->view['files'])) { ?>
<p><?php echo __('Bisher keine Videos hochgeladen.', 'wpsg'); ?></p>
<?php } else { ?>
	<?php foreach ($this->view['files'] as $v) { ?>
	<div class="wpsg_mod_videodownload_file">
		<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_videodownload&noheader=1&cmd=download_file&file=<?php echo rawurlencode($v); ?>&edit_id=<?php echo $_REQUEST['edit_id']; ?>" title="<?php echo wpsg_hspc($v); ?>"><?php echo wpsg_hspc(substr($v, 0, 25)); ?></a>
		(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_videodownload', 'getVideoPath', array($_REQUEST['edit_id'])).'/'.$v); ?>)
		<div class="wpsg_mod_videodownload_admin_delete" title="<?php echo __('Video löschen', 'wpsg'); ?>" onclick="return wpsg_videodownload_removeVideo('<?php echo rawurlencode($v); ?>');"></div>
	</div> 
	<div class="wpsg_clear"></div>
	<?php } ?>
	<br />
<?php } ?>