diff options
Diffstat (limited to 'views/elements/animetable.html.php')
-rw-r--r-- | views/elements/animetable.html.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/views/elements/animetable.html.php b/views/elements/animetable.html.php new file mode 100644 index 0000000..16e8260 --- /dev/null +++ b/views/elements/animetable.html.php @@ -0,0 +1,33 @@ +<?= $this->Paginator->paginate(array('separator' => '')) ?> + +<table> +<th>Title</th> +<th>Date</th> +<th>Type</th> +<?php foreach ($content as $anime): ?> + <tr> + <td> + <a href="/anime/view/<?= $anime->special_id ?>"><?= $anime->title ?></a> + <?php if ($anime->foreign_titles || $anime->alternative_titles): ?> + <span class="alt_titles"> + <?php if ($anime->foreign_titles): ?> + <?= $anime->foreign_titles[0] ?> + <?php endif ?> + <?php if ($anime->alternative_titles): ?> + + <?= $anime->alternative_titles[0] ?> + <?php endif ?> + </span> + <?php endif ?> + </td> + <td> + <?= $anime->aired ?> + </td> + <td> + <?= $anime->view_type ?> + </td> + </tr> +<?php endforeach ?> +</table> + +<?= $this->Paginator->paginate(array('separator' => '')) ?> |