aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/media.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-05 18:37:30 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-05 18:37:30 +0100
commit7fb607b48c181512b31f52a7ef7e302f331ec18d (patch)
treec4d89cba3c0d01679ed1455e0d7c39fa2fdb824c /app/view/templates/media.php
parentad3aed389f2e0d69802641f5a5b7c6add73f1ce5 (diff)
downloadwcms-7fb607b48c181512b31f52a7ef7e302f331ec18d.tar.gz
wcms-7fb607b48c181512b31f52a7ef7e302f331ec18d.zip
mediastyle
Diffstat (limited to 'app/view/templates/media.php')
-rw-r--r--app/view/templates/media.php67
1 files changed, 66 insertions, 1 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index 31e3ad0..043000d 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -1 +1,66 @@
-<?php $this->layout('layout', ['title' => 'Media']) ?>
+<?php $this->layout('layout', ['title' => 'media', 'css' => $css . 'home.css']) ?>
+
+
+<?php $this->start('page') ?>
+
+<body>
+
+ <?php $this->insert('backtopbar', ['user' => $user, 'tab' => 'media']) ?>
+
+
+<section class="media">
+
+<h1>Media</h1>
+
+<table id="medialist">
+<tr><th>id</th><th>extension</th><th>path</th><th>type</th><th>size</th><th>width</th><th>height</th><th>lengh</th></tr>
+
+<?php
+foreach ($medialist as $media) {
+ ?>
+ <tr>
+ <td><?= $media->id() ?></td>
+ <td><?= $media->extension() ?></td>
+ <td><?= $media->path() ?></td>
+ <td><?= $media->type() ?></td>
+ <td><?= readablesize($media->size()) ?></td>
+ <td><?= $media->width() ?></td>
+ <td><?= $media->height() ?></td>
+ <td><?= $media->length() ?></td>
+ </tr>
+ <?php
+}
+
+
+?>
+
+</table>
+
+<h1>Favicon</h1>
+
+<table id="faviconlist">
+<tr><th>id</th><th>extension</th><th>path</th><th>size</th><th>width</th><th>height</th></tr>
+
+<?php
+foreach ($faviconlist as $favicon) {
+ ?>
+ <tr>
+ <td><?= $favicon->id() ?></td>
+ <td><?= $favicon->extension() ?></td>
+ <td><?= $favicon->path() ?></td>
+ <td><?= readablesize($favicon->size()) ?></td>
+ <td><?= $favicon->width() ?></td>
+ <td><?= $favicon->height() ?></td>
+ </tr>
+ <?php
+}
+
+
+?>
+
+</table>
+
+</section>
+</body>
+
+<?php $this->stop('page') ?> \ No newline at end of file