summaryrefslogtreecommitdiffstats
path: root/views/elements/animetable.html.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-16 13:45:23 -0700
committerraylu <raylu@mixpanel.com>2011-07-16 13:45:40 -0700
commitae45ae42ab8cbdeb676f6ce4a47cd62ff5f0f6f2 (patch)
treedb17051403c4d82fe35accc0c6ef3af0fec7496e /views/elements/animetable.html.php
parentfa401510c2929d0d520a5104a01a843473bd2439 (diff)
downloadotakuhub-ae45ae42ab8cbdeb676f6ce4a47cd62ff5f0f6f2.tar.xz
oops; should have been committed with 657d270
Diffstat (limited to 'views/elements/animetable.html.php')
-rw-r--r--views/elements/animetable.html.php33
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): ?>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <?= $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' => '')) ?>