summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/elements/animetable.html.php33
-rw-r--r--views/elements/search.html.php8
2 files changed, 41 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' => '')) ?>
diff --git a/views/elements/search.html.php b/views/elements/search.html.php
new file mode 100644
index 0000000..7169083
--- /dev/null
+++ b/views/elements/search.html.php
@@ -0,0 +1,8 @@
+<?= $this->form->create(null, array('method' => 'get')); ?>
+ <?= $this->form->text('q'); ?>
+ <?= $this->form->select('type', array('' => 'All',
+ 'anime' => 'Anime',
+ 'manga' => 'Manga',
+ 'kdrama' => 'Kdrama')); ?>
+ <?= $this->form->submit('Search'); ?>
+<?= $this->form->end(); ?>