summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-06-20 19:04:04 -0400
committerMichael Francis <edude03@gmail.com>2011-06-20 19:04:04 -0400
commit248c8cd1138bb9e16138acf04ba6e4f943b41e89 (patch)
treeca77451b56825dc8c13b1d9d07821137e951df1a /views
parent855e0ef84f74479d5265ac1cd1a9dfa7554c213e (diff)
downloadotakuhub-248c8cd1138bb9e16138acf04ba6e4f943b41e89.tar.xz
Added search options to search
Diffstat (limited to 'views')
-rw-r--r--views/Search/index.html.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/views/Search/index.html.php b/views/Search/index.html.php
index 21869f7..a81d501 100644
--- a/views/Search/index.html.php
+++ b/views/Search/index.html.php
@@ -1,15 +1,23 @@
<div class="container_12">
<div class="grid_4">
-search options lol
+<h2> Search options </h2>
+<hr />
+<?= $this->form->create(null, array('method' => 'get')); ?>
+ <?= $this->form->field('search', array('type' => 'textbox', 'class' => 'sidebar-search', 'style' => 'width:200px')); ?>
+ <?= $this->form->select('type', array('Anime' => 'Anime',
+ 'Manga' => 'Manga',
+ 'Kdrama' => 'Kdrama')); ?>
+ <?= $this->form->submit('Search', array('style' => 'width: 100px')); ?>
+<?= $this->form->end(); ?>
</div>
<div class="grid_8">
-<table class="table">
-<th>img</th><th>Name</th><th>Episodes</th><th>Type</th><th>Score</th>
-<?php foreach($content as $item): ?>
-<tr><td>"image"</td> <td><a href="/anime/<?= $item->special_id ?>"><?= $item->title ?></a></td> <td><?= $item->episode_count ?></td><td><?= $item->view_type ?></td><td><?= $item->mal_score ?></td></tr>
-<?php endforeach; ?>
-</table>
+ <table class="table">
+ <tr><th>img</th><th>Name</th><th>Episodes</th><th>Type</th><th>Score</th></tr>
+ <?php foreach($content as $item): ?>
+ <tr><td>"image"</td><td><a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a></td> <td><?= $item->episode_count ?></td><td><?= $item->view_type ?></td><td><?= $item->mal_score ?></td></tr>
+ <?php endforeach; ?>
+ </table>
<?=$this->Paginator->paginate(array('separator' => '', 'action' => 'index/anime')); ?>
</div>
</div>