2015-06-16 11:11:35 -04:00
|
|
|
<main>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
|
|
|
<h2><?= $name ?></h2>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Alternate Title</th>
|
|
|
|
<th>Airing Status</th>
|
|
|
|
<th>Score</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Progress</th>
|
|
|
|
<th>Rated</th>
|
2015-10-01 16:01:23 -04:00
|
|
|
<th>Notes</th>
|
2015-07-02 14:04:04 -04:00
|
|
|
<th>Genres</th>
|
2015-06-16 11:11:35 -04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($items as $item): ?>
|
|
|
|
<tr id="a-<?= $item['anime']['id'] ?>">
|
|
|
|
<td class="align_left">
|
2015-06-11 16:44:52 -04:00
|
|
|
<a href="<?= $item['anime']['url'] ?>">
|
2015-06-16 11:11:35 -04:00
|
|
|
<?= $item['anime']['title'] ?>
|
2015-06-11 16:44:52 -04:00
|
|
|
</a>
|
2015-06-16 11:11:35 -04:00
|
|
|
</td>
|
|
|
|
<td class="align_left"><?= $item['anime']['alternate_title'] ?></td>
|
2015-10-01 16:01:23 -04:00
|
|
|
<td class="align_left"><?= $item['airing']['status'] ?></td>
|
|
|
|
<td><?= $item['user_rating'] ?> / 10 </td>
|
|
|
|
<td><?= $item['anime']['type'] ?></td>
|
|
|
|
<td>Episodes: <?= $item['episodes']['watched'] ?> / <?= $item['episodes']['total'] ?></td>
|
2015-06-16 11:11:35 -04:00
|
|
|
<td><?= $item['anime']['age_rating'] ?></td>
|
2015-10-01 16:01:23 -04:00
|
|
|
<td><?= $item['notes'] ?></td>
|
2015-07-02 14:04:04 -04:00
|
|
|
<td class="flex flex-justify-space-around align-left">
|
|
|
|
<?php sort($item['anime']['genres']) ?>
|
|
|
|
<?php foreach($item['anime']['genres'] as $genre): ?>
|
2015-10-01 16:01:23 -04:00
|
|
|
<span><?= $genre ?></span>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
</td>
|
2015-06-16 11:11:35 -04:00
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</main>
|
2015-09-14 16:14:02 -04:00
|
|
|
<script src="<?= $urlGenerator->asset_url('js.php?g=table') ?>"></script>
|