aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-22 23:56:14 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-22 23:56:14 +0100
commit11c729472634682fbcaa40caa5c510d490acfa4a (patch)
treecde65abb21e21b3b46c97decc0c79cf257ecdc7d /app/view/templates
parent1a02e1eea3a05814ec4d21fd1e3ebb1a11dc7bbb (diff)
downloadwcms-11c729472634682fbcaa40caa5c510d490acfa4a.tar.gz
wcms-11c729472634682fbcaa40caa5c510d490acfa4a.zip
media get symbols and css fix
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/media.php70
1 files changed, 36 insertions, 34 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index 12d4a2f..1f70d35 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -71,40 +71,42 @@
<section>
<div class="block">
-<h2>/<?= $mediaopt->dir() ?></h2>
-
-
-
-<table id="medialist">
-<tr>
- <th>x</th>
- <th><a href="<?= $mediaopt->getsortbyadress('id') ?>">id</a></th>
- <th>ext</th>
- <th><a href="<?= $mediaopt->getsortbyadress('type') ?>">type</a></th>
- <th><a href="<?= $mediaopt->getsortbyadress('size') ?>">size</a></th>
- <th>width</th>
- <th>height</th>
- <th>lengh</th>
- <th>code</th>
-</tr>
-
-<?php
-foreach ($medialist as $media) {
- ?>
- <tr>
- <td><input type="checkbox" name="id[]" value="<?= $media->getfulldir() ?>" form="mediaedit" id="media_<?= $media->id() ?>"></td>
- <td><label for="media_<?= $media->id() ?>"><?= $media->id() ?></label></td>
- <td><?= $media->extension() ?></td>
- <td><a href="<?= $media->getfullpath() ?>" target="_blank"><?= $media->type() == 'image' ? '<span class="thumbnail">image 👁<img src="' . $media->getfullpath() . '"></span>' : $media->type() . '⧉' ?></a></td>
- <td><?= $media->size('hr') ?></td>
- <td><?= $media->width() ?></td>
- <td><?= $media->height() ?></td>
- <td><?= $media->length() ?></td>
- <td class="code"><code><?= $media->getcode() ?></code></td>
- </tr>
- <?php
-}
-?>
+ <h2>/<?= $mediaopt->dir() ?></h2>
+
+ <div class="scroll">
+
+ <table id="medialist">
+ <tr>
+ <th>x</th>
+ <th><a href="<?= $mediaopt->getsortbyadress('id') ?>">id</a></th>
+ <th>ext</th>
+ <th><a href="<?= $mediaopt->getsortbyadress('type') ?>">type</a></th>
+ <th><a href="<?= $mediaopt->getsortbyadress('size') ?>">size</a></th>
+ <th>width</th>
+ <th>height</th>
+ <th>lengh</th>
+ <th>code</th>
+ </tr>
+
+ <?php
+ foreach ($medialist as $media) {
+ ?>
+ <tr>
+ <td><input type="checkbox" name="id[]" value="<?= $media->getfulldir() ?>" form="mediaedit" id="media_<?= $media->id() ?>"></td>
+ <td><label for="media_<?= $media->id() ?>"><?= $media->id() ?></label></td>
+ <td><?= $media->extension() ?></td>
+ <td class="nowrap"><a href="<?= $media->getfullpath() ?>" target="_blank"><?= $media->type() == 'image' ? '<span class="thumbnail">' . $media->getsymbol() . '<img src="' . $media->getfullpath() . '"></span>' : $media->getsymbol() ?></a></td>
+ <td class="nowrap"><?= $media->size('hr') ?></td>
+ <td><?= $media->width() ?></td>
+ <td><?= $media->height() ?></td>
+ <td><?= $media->length() ?></td>
+ <td class="code"><code><?= $media->getcode() ?></code></td>
+ </tr>
+ <?php
+ }
+ ?>
+
+ </div>
</table>