Line 3... |
Line 3... |
3 |
/**
|
3 |
/**
|
4 |
* Template für die Liste der Dateien im Backend
|
4 |
* Template für die Liste der Dateien im Backend
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
- |
|
8 |
|
8 |
<?php if (!wpsg_isSizedArray($this->view['files'])) { ?>
|
9 |
<?php if (!wpsg_isSizedArray($this->view['files'])) { ?>
|
- |
|
10 |
|
9 |
<p><?php echo __('Bisher keine PDFs hochgeladen.', 'wpsg'); ?></p>
|
11 |
<p><?php echo __('Bisher keine PDFs hochgeladen.', 'wpsg'); ?></p>
|
- |
|
12 |
|
10 |
<?php } else { ?>
|
13 |
<?php } else { ?>
|
- |
|
14 |
|
11 |
<ul>
|
15 |
<ul>
|
12 |
<?php foreach ($this->view['files'] as $v) { ?>
|
- |
|
13 |
<li>
|
- |
|
14 |
<a target="_blank" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&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, 50)); ?></a>
|
- |
|
15 |
(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($_REQUEST['edit_id'])).'/'.$v); ?>)
|
- |
|
16 |
<div class="wpsg_glyphicon_right glyphicon glyphicon-trash" title="<?php echo __('PDF löschen', 'wpsg'); ?>" onclick="return wpsg_pdfdownload_removePDF('<?php echo rawurlencode($v); ?>');"></div>
|
- |
|
17 |
|
16 |
|
- |
|
17 |
<?php foreach ($this->view['files'] as $v) { ?>
|
- |
|
18 |
<li>
|
- |
|
19 |
|
18 |
</li>
|
20 |
<a target="_blank" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&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, 50)); ?></a>
|
- |
|
21 |
(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($_REQUEST['edit_id'])).'/'.$v); ?>)
|
- |
|
22 |
<div class="wpsg_glyphicon_right glyphicon glyphicon-trash" title="<?php echo __('PDF löschen', 'wpsg'); ?>" onclick="return wpsg_pdfdownload_removePDF('<?php echo rawurlencode($v); ?>');"></div>
|
- |
|
23 |
|
- |
|
24 |
</li>
|
19 |
<?php } ?>
|
25 |
<?php } ?>
|
- |
|
26 |
|
20 |
</ul>
|
27 |
</ul>
|
- |
|
28 |
|
21 |
<?php } ?>
|
29 |
<?php } ?>
|
22 |
|
30 |
|