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.php43
1 files changed, 7 insertions, 36 deletions
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 @@
-<?php
+<?php
$this->styles($this->html->style('pagination'));
?>
-<?= var_dump($this->request()->controller); ?>
-
-
-<h3> Anime </h3>
-<hr>
-<table>
-<th>Title</th>
-<th>Date</th>
-<th>Type</th>
-<?php if(count($anime) > 0): ?>
-<?php foreach ($anime 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">
+<h3>Anime</h3>
+<?= $this->_render('element', 'animetable', compact('anime')) ?>
<?= $this->html->link("More", array('controller' => 'search',
'action' => 'anime')); ?>
-</div>
-<?php else: ?>
-<p> No results found</p>
-<?php endif; ?>
-
-
-<h3> Manga </h3>
+<h3>Manga</h3>
<hr>
<table>
<th>Title</th>
@@ -64,7 +35,7 @@ $this->styles($this->html->style('pagination'));
<p> No entries found </p>
<?php endif; ?>
-<h3> K Drama </h3>
+<h3> K Drama </h3>
<hr>
<table>
<th>Title</th>
@@ -90,5 +61,5 @@ $this->styles($this->html->style('pagination'));
'action' => 'anime')); ?>
</div>
<?php else: ?>
-<p> No Entries found </p>
-<?php endif; ?> \ No newline at end of file
+<p>No Entries found</p>
+<?php endif; ?>