blob: 485e389323119b15959b673ecacef333a30fa5ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
$this->styles($this->html->style('pagination'));
?>
<div class="container_12">
<div class="grid_4">
<h2> Search options </h2>
<hr />
<?= $this->form->create(null, array('method' => 'get')); ?>
<?= $this->form->field('search', array('type' => 'textbox', 'class' => 'sidebar-search', 'style' => 'width:200px')); ?>
<?= $this->form->label('type', 'For:'); ?>
<?= $this->form->select('type', array('Anime' => 'Anime',
'Manga' => 'Manga',
'Kdrama' => 'Kdrama')); ?>
<?= $this->form->submit('Search', array('style' => 'width: 100px')); ?>
<?= $this->form->end(); ?>
</div>
<div class="grid_8">
<h2>Search Results</h2>
<hr />
<table class="table">
<tr><th>img</th><th>Name</th><th>Episodes</th><th>Type</th><th>Score</th></tr>
<?php foreach($content as $item): ?>
<tr><td>"image"</td><td><a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a></td> <td><?= $item->episode_count ?></td><td><?= $item->view_type ?></td><td><?= $item->mal_score ?></td></tr>
<?php endforeach; ?>
</table>
<?=$this->Paginator->paginate(array('separator' => '', 'action' => 'index/anime')); ?>
</div>
<br class="cl">
</div>
|