summaryrefslogtreecommitdiffstats
path: root/views/search
diff options
context:
space:
mode:
Diffstat (limited to 'views/search')
-rw-r--r--views/search/index.html.php74
1 files changed, 70 insertions, 4 deletions
diff --git a/views/search/index.html.php b/views/search/index.html.php
index 2afb320..f4f7259 100644
--- a/views/search/index.html.php
+++ b/views/search/index.html.php
@@ -2,15 +2,17 @@
$this->styles($this->html->style('pagination'));
?>
-<?= $this->_render('element', 'search', compact('anime')) ?>
+<?= var_dump($this->request()->controller); ?>
-<?= $this->Paginator->paginate(array('separator' => '')) ?>
+<h3> Anime </h3>
+<hr>
<table>
<th>Title</th>
<th>Date</th>
<th>Type</th>
-<?php foreach ($content as $item): ?>
+<?php if(count($anime) > 0): ?>
+<?php foreach ($anime as $item): ?>
<tr>
<td>
<a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
@@ -24,5 +26,69 @@ $this->styles($this->html->style('pagination'));
</tr>
<?php endforeach ?>
</table>
+<div style = "float:right">
+<?= $this->html->link("More", array('controller' => 'search',
+ 'action' => 'anime')); ?>
+</div>
+<?php else: ?>
+<p> No results found</p>
+<?php endif; ?>
-<?= $this->Paginator->paginate(array('separator' => '')) ?>
+
+<h3> Manga </h3>
+<hr>
+<table>
+<th>Title</th>
+<th>Date</th>
+<th>Type</th>
+<?php if(count($manga) > 0): ?>
+<?php foreach ($manga as $item): ?>
+ <tr>
+ <td>
+ <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
+ </td>
+ <td>
+ <?= $item->aired ?>
+ </td>
+ <td>
+ <?= $item->view_type ?>
+ </td>
+ </tr>
+<?php endforeach ?>
+</table>
+<div style = "float:right">
+ <?= $this->html->link("More", array('controller' => 'search',
+ 'action' => 'anime')); ?>
+</div>
+<?php else: ?>
+<p> No entries found </p>
+<?php endif; ?>
+
+<h3> K Drama </h3>
+<hr>
+<table>
+<th>Title</th>
+<th>Date</th>
+<th>Type</th>
+<?php if(count($kdrama) > 0): ?>
+<?php foreach ($kdrama as $item): ?>
+ <tr>
+ <td>
+ <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
+ </td>
+ <td>
+ <?= $item->aired ?>
+ </td>
+ <td>
+ <?= $item->view_type ?>
+ </td>
+ </tr>
+<?php endforeach ?>
+</table>
+<div style = "float:right">
+ <?= $this->html->link("More", array('controller' => 'search',
+ 'action' => 'anime')); ?>
+</div>
+<?php else: ?>
+<p> No Entries found </p>
+<?php endif; ?> \ No newline at end of file