summaryrefslogtreecommitdiffstats
path: root/views/elements/animetable.html.php
blob: 0d9f9fb574ca40ed6bee1e08549de20831896ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<table>
<th>Title</th>
<th>Date</th>
<th>Type</th>
<?php foreach ($anime as $a): ?>
	<tr>
		<td>
			<a href="/anime/view/<?= $a->special_id ?>"><?= $a->title ?></a>
			<?php if ($a->foreign_titles || $a->alternative_titles): ?>
				<span class="alt_titles">
				<?php if ($a->foreign_titles): ?>
					<?= $a->foreign_titles[0] ?>
				<?php endif ?>
				<?php if ($a->alternative_titles): ?>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<?= $a->alternative_titles[0] ?>
				<?php endif ?>
				</span>
			<?php endif ?>
		</td>
		<td>
			<?= $a->aired ?>
		</td>
		<td>
			<?= $a->view_type ?>
		</td>
	</tr>
<?php endforeach ?>
</table>