diff options
author | raylu <raylu@mixpanel.com> | 2011-07-16 22:07:00 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-16 22:07:00 -0700 |
commit | 5cc64bc633e8ff287cf7bb16ab1a8b8d2afb29b3 (patch) | |
tree | 77cfb712e6bc2b469702101d031791e16f2a022e /views/elements/kdramatable.html.php | |
parent | 3404aebda95c78a98e477c120354f20891f55c7b (diff) | |
download | otakuhub-5cc64bc633e8ff287cf7bb16ab1a8b8d2afb29b3.tar.xz |
kdrama search results on search/index
Diffstat (limited to 'views/elements/kdramatable.html.php')
-rw-r--r-- | views/elements/kdramatable.html.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/elements/kdramatable.html.php b/views/elements/kdramatable.html.php new file mode 100644 index 0000000..956d59f --- /dev/null +++ b/views/elements/kdramatable.html.php @@ -0,0 +1,28 @@ +<table> +<th>Title</th> +<th>Date</th> +<?php foreach ($kdrama as $k): ?> + <tr> + <td> + <a href="/kdrama/view/<?= $k->special_id ?>"><?= $k->title ?></a> + <?php if (isset($k->foreign_titles) || isset($k->alternative_titles)): ?> + <span class="alt_titles"> + <?php if (isset($k->foreign_titles)): ?> + <?= $k->foreign_titles[0] ?> + <?php endif ?> + <?php if (isset($k->alternative_titles)): ?> + + <?= $k->alternative_titles[0] ?> + <?php endif ?> + </span> + <?php endif ?> + </td> + <td> + <?php + $network = array_values($k->networks->data()); + ?> + <?= $network[0]['broadcast_period'] ?> + </td> + </tr> +<?php endforeach ?> +</table> |