aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/media.php
blob: 043000d32af11ea65e1f0c4a89e96a07fb39af0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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') ?>