summaryrefslogtreecommitdiffstats
path: root/views/search/index.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/search/index.html.php')
-rw-r--r--views/search/index.html.php36
1 files changed, 26 insertions, 10 deletions
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 @@
<?php
$this->styles($this->html->style('table'));
+$this->styles($this->html->style('search'));
?>
-<h3>Anime</h3>
+<?= $this->_render('element', 'search') ?>
+
+<h2 class="ribbon">Anime</h2>
+<div class="triangle-ribbon"></div>
<?= $this->_render('element', 'animetable', compact('anime')) ?>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
-<h3>Manga</h3>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
-
-<h3>K Drama</h3>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
+<p class="more">
+<a href="/search/anime/<?= $q ?>">More</a>
+</p>
+
+<h2 class="ribbon">Manga</h2>
+<div class="triangle-ribbon"></div>
+<p>results</p>
+<?php if(count($manga) > 0): ?>
+<p class="more">
+<a href="/search/manga/<?= $q ?>">More</a>
+</p>
+<?php endif ?>
+
+<h2 class="ribbon">K-Drama</h2>
+<div class="triangle-ribbon"></div>
+<p>results</p>
+<?php if(count($kdrama) > 0): ?>
+<p class="more">
+<a href="/search/kdrama/<?= $q ?>">More</a>
+</p>
+<?php endif ?>