summaryrefslogtreecommitdiffstats
path: root/views/anime_list
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-29 16:35:13 -0400
committerMichael Francis <edude03@gmail.com>2011-05-29 16:35:13 -0400
commit88666d9644f06f2dd37516c95661f24d9f2eadbe (patch)
treea8cf506993598aebe8acbd7755626dd784817907 /views/anime_list
parent5632af0c0e7bf914227cdf237d370858b88ac969 (diff)
downloadotakuhub-88666d9644f06f2dd37516c95661f24d9f2eadbe.tar.xz
Implemented / Fixed adding
Diffstat (limited to 'views/anime_list')
-rw-r--r--views/anime_list/addsearch.html.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/anime_list/addsearch.html.php b/views/anime_list/addsearch.html.php
new file mode 100644
index 0000000..eb5cbe1
--- /dev/null
+++ b/views/anime_list/addsearch.html.php
@@ -0,0 +1,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; ?> \ No newline at end of file