diff options
author | raylu <raylu@mixpanel.com> | 2011-07-16 22:58:09 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-16 23:07:36 -0700 |
commit | 994c36b8279480b6e3374017140e36d77401d3a4 (patch) | |
tree | bf93a3b31be862ead08433df2bec7c0481fcc0f0 /views/elements/mangatable.html.php | |
parent | 5cc64bc633e8ff287cf7bb16ab1a8b8d2afb29b3 (diff) | |
download | otakuhub-994c36b8279480b6e3374017140e36d77401d3a4.tar.xz |
add manga to search/index
Diffstat (limited to 'views/elements/mangatable.html.php')
-rw-r--r-- | views/elements/mangatable.html.php | 29 |
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)): ?> + + <?= $m->alternative_titles[0] ?> + <?php endif ?> + </span> + <?php endif ?> + </td> + <td> + <?= $m->publish_period ?> + </td> + <td> + <?= $m->author ?> + </td> + </tr> +<?php endforeach ?> +</table> |