summaryrefslogtreecommitdiffstats
path: root/views/elements/mangatable.html.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-17 20:38:31 -0400
committerMichael Francis <edude03@gmail.com>2011-07-17 20:38:31 -0400
commitc9994190d2ba584e1eb95b6b47ff586da7b0f29f (patch)
treeff4d02327f8e988925036f7406c760dfba8791d3 /views/elements/mangatable.html.php
parent7be960630a8c0b4dab94245c73453b22db3f305e (diff)
parent2baaf56e140a06eed8fe0b1d28d744d34a537d49 (diff)
downloadotakuhub-c9994190d2ba584e1eb95b6b47ff586da7b0f29f.tar.xz
Merge branch 'master' of git.raylu.net:otakuhub
Diffstat (limited to 'views/elements/mangatable.html.php')
-rw-r--r--views/elements/mangatable.html.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/views/elements/mangatable.html.php b/views/elements/mangatable.html.php
new file mode 100644
index 0000000..c92ff83
--- /dev/null
+++ b/views/elements/mangatable.html.php
@@ -0,0 +1,29 @@
+<table>
+<th>Title</th>
+<th>Date</th>
+<th style="width: 200px">Type</th>
+<?php foreach ($manga as $m): ?>
+ <tr>
+ <td>
+ <a href="/manga/view/<?= $m->special_id ?>"><?= $m->title ?></a>
+ <?php if (isset($m->foreign_titles) || isset($m->alternative_titles)): ?>
+ <span class="alt_titles">
+ <?php if (isset($m->foreign_titles)): ?>
+ <?= $m->foreign_titles[0] ?>
+ <?php endif ?>
+ <?php if (isset($m->alternative_titles)): ?>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <?= $m->alternative_titles[0] ?>
+ <?php endif ?>
+ </span>
+ <?php endif ?>
+ </td>
+ <td>
+ <?= $m->publish_period ?>
+ </td>
+ <td>
+ <?= $m->author ?>
+ </td>
+ </tr>
+<?php endforeach ?>
+</table>