From 657d270864c6f8f77d083fe4aa6ba636ecbbd372 Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 12 Jul 2011 00:50:00 -0700 Subject: rework a lot of search /search will eventually search all /search/anime searches only anime --- views/search/index.html.php | 67 +++++++++++++++------------------------------ 1 file changed, 22 insertions(+), 45 deletions(-) (limited to 'views/search/index.html.php') diff --git a/views/search/index.html.php b/views/search/index.html.php index ffdd82c..2afb320 100644 --- a/views/search/index.html.php +++ b/views/search/index.html.php @@ -1,51 +1,28 @@ styles($this->html->style('pagination')); +?> -//table helper -function table($data, array $headers = array(), array $options = array()) { - //Create the table - echo ''; - foreach ($headers as $k => $v) - { - echo "$v"; - } - echo "\n"; +_render('element', 'search', compact('anime')) ?> +Paginator->paginate(array('separator' => '')) ?> - foreach ($data as $item) - { - echo ''; - foreach($headers as $key => $value) - { - echo ''; - echo $item->$key; - echo ''; - } - echo "\n"; - } -} -?> + + + + + + + + + + + +
TitleDateType
+ title ?> + + aired ?> + + view_type ?> +
-
-
-

Search options

-
-form->create(null, array('method' => 'get')); ?> - form->field('search', array('type' => 'textbox', 'class' => 'sidebar-search', 'style' => 'width:200px')); ?> - form->label('type', 'For:'); ?> - form->select('type', array('Anime' => 'Anime', - 'Manga' => 'Manga', - 'Kdrama' => 'Kdrama')); ?> - form->submit('Search', array('style' => 'width: 100px')); ?> -form->end(); ?> -
-
-

Search Results

-
- - -
-Paginator->paginate(array('separator' => '', 'action' => 'index/anime')); ?> -
-
-
+Paginator->paginate(array('separator' => '')) ?> -- cgit v1.2.3