summaryrefslogtreecommitdiffstats
path: root/views/anime_list/addsearch.html.php
blob: eb5cbe1f9d815318c041b0abe102591e9f88ad8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

<?= $this->form->create(null, array('method' => 'get')); ?>
	<?= $this->form->text('Search', array('value' => 'Search for...')); ?>
	<?= $this->form->submit('Go', array('class' => 'button')); ?>
<?= $this->form->end(); ?>
<?php if (isset($content)): ?>
	<table class="table">
	<tr><th>Entry #</th><th>Name</th><th>Type</th><th>Episodes</th><th>Score</th><th>Add</th></tr>
	<?php $i = 1; foreach($content as $result): ?>
		<tr>
			<td># <?= $i ?></td>
			<td><?= $result->title ?></td>
			<td><?= $result->view_type ?></td>
			<td><?= $result->episode_count ?></td>
			<td><?= $result->mal_score ?></td>
			<td><button class="green"><a href="/animelist/add/<?= $result->special_id ?>">Add</a></button></td>
			<?php $i++; ?>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>