diff options
author | raylu <raylu@mixpanel.com> | 2011-07-16 13:45:23 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-16 13:45:40 -0700 |
commit | ae45ae42ab8cbdeb676f6ce4a47cd62ff5f0f6f2 (patch) | |
tree | db17051403c4d82fe35accc0c6ef3af0fec7496e | |
parent | fa401510c2929d0d520a5104a01a843473bd2439 (diff) | |
download | otakuhub-ae45ae42ab8cbdeb676f6ce4a47cd62ff5f0f6f2.tar.xz |
oops; should have been committed with 657d270
-rw-r--r-- | views/elements/animetable.html.php | 33 | ||||
-rw-r--r-- | views/elements/search.html.php | 8 |
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): ?> + + <?= $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(); ?> |