From 3404aebda95c78a98e477c120354f20891f55c7b Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 16 Jul 2011 21:27:12 -0700 Subject: search page styling --- views/elements/search.html.php | 2 +- views/layouts/default.html.php | 2 +- views/search/anime.html.php | 1 + views/search/index.html.php | 36 ++++++++++++++++++++++++++---------- 4 files changed, 29 insertions(+), 12 deletions(-) (limited to 'views') diff --git a/views/elements/search.html.php b/views/elements/search.html.php index 7169083..4910620 100644 --- a/views/elements/search.html.php +++ b/views/elements/search.html.php @@ -1,4 +1,4 @@ -form->create(null, array('method' => 'get')); ?> +form->create(null, array('method' => 'get', 'class' => 'search')); ?> form->text('q'); ?> form->select('type', array('' => 'All', 'anime' => 'Anime', diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index bfb04d9..9464d80 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -62,7 +62,7 @@ use \lithium\security\Auth; '; ?> - form->create(null, array('url' => '/search/', 'class' => 'search', 'method' => 'get')); ?> + form->create(null, array('url' => '/search/', 'class' => 'navsearch', '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 94acb84..7fbb6d8 100644 --- a/views/search/anime.html.php +++ b/views/search/anime.html.php @@ -1,6 +1,7 @@ styles($this->html->style('pagination')); $this->styles($this->html->style('table')); +$this->styles($this->html->style('search')); ?> _render('element', 'search') ?> diff --git a/views/search/index.html.php b/views/search/index.html.php index a05f269..f8889e2 100644 --- a/views/search/index.html.php +++ b/views/search/index.html.php @@ -1,15 +1,31 @@ styles($this->html->style('table')); +$this->styles($this->html->style('search')); ?> -

Anime

+_render('element', 'search') ?> + +

Anime

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

Manga

-html->link("More", array('controller' => 'search', - 'action' => 'anime')); ?> - -

K Drama

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

+More +

+ +

Manga

+
+

results

+ 0): ?> +

+More +

+ + +

K-Drama

+
+

results

+ 0): ?> +

+More +

+ -- cgit v1.2.3