From 9111a1e3d0837b5c79d953901c3a074ff4e5c928 Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 16 Jul 2011 15:07:36 -0700 Subject: attempt to make animetable usable on search/index and search/anime --- views/elements/animetable.html.php | 4 ---- views/layouts/default.html.php | 4 ++-- views/search/anime.html.php | 5 +++++ views/search/index.html.php | 43 +++++++------------------------------- 4 files changed, 14 insertions(+), 42 deletions(-) diff --git a/views/elements/animetable.html.php b/views/elements/animetable.html.php index 16e8260..a074c68 100644 --- a/views/elements/animetable.html.php +++ b/views/elements/animetable.html.php @@ -1,5 +1,3 @@ -Paginator->paginate(array('separator' => '')) ?> - @@ -29,5 +27,3 @@
Title Date
- -Paginator->paginate(array('separator' => '')) ?> diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index ee76dd1..bfb04d9 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -62,8 +62,8 @@ use \lithium\security\Auth; '; ?> - form->create(null, array('url' => '/search/index/anime', 'class' => 'search', 'method' => 'get')); ?> - form->text('search', array('placeholder' => 'Search...')); ?> + form->create(null, array('url' => '/search/', 'class' => 'search', 'method' => 'get')); ?> + form->text('q', array('placeholder' => 'Search...')); ?> form->end(); ?> diff --git a/views/search/anime.html.php b/views/search/anime.html.php index 4d0332f..89cc9e9 100644 --- a/views/search/anime.html.php +++ b/views/search/anime.html.php @@ -7,4 +7,9 @@ $this->styles($this->html->style('pagination'));

Anime Search Results

(search instead for ...) + +Paginator->paginate(array('separator' => '')) ?> + _render('element', 'animetable', compact('anime')) ?> + +Paginator->paginate(array('separator' => '')) ?> diff --git a/views/search/index.html.php b/views/search/index.html.php index f4f7259..a269d01 100644 --- a/views/search/index.html.php +++ b/views/search/index.html.php @@ -1,41 +1,12 @@ -styles($this->html->style('pagination')); ?> -request()->controller); ?> - - -

Anime

-
- - - - - 0): ?> - - - - - - - -
TitleDateType
- title ?> - - aired ?> - - view_type ?> -
-
+

Anime

+_render('element', 'animetable', compact('anime')) ?> html->link("More", array('controller' => 'search', 'action' => 'anime')); ?> -
- -

No results found

- - - -

Manga

+

Manga


@@ -64,7 +35,7 @@ $this->styles($this->html->style('pagination'));

No entries found

-

K Drama

+

K Drama


Title
@@ -90,5 +61,5 @@ $this->styles($this->html->style('pagination')); 'action' => 'anime')); ?> -

No Entries found

- \ No newline at end of file +

No Entries found

+ -- cgit v1.2.3
Title