summaryrefslogtreecommitdiffstats
path: root/views/anime_list/index.html.php
blob: abe931bc68e3b82c40f2b11fe7a6f5c825140b05 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<h1><?= $user->username ?>'s AnimeList</h1>
<hr/>
<table><tr><?= $this->html->link("Completed", "/animelist/view/$user->username/completed"); ?> </tr></table>

<?php if (isset($watching)): ?>
<h2 class="ribbon">Watching</h2><button value="Add" style="float:right">
<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
<?php $i = 1; ?>
<?php foreach ($watching as $anime): ?>
	<tr>
	<td><?= $i ?></td>
	<td><?= $anime->series_title ?></td>
	<td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
	<td><?= $anime->series_type ?></td>
	<td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
	</tr>
<?php $i += 1; ?>
<?php endforeach; ?>
</table>
<?php endif; ?>

<?php if (isset($planning)): ?>
<h2 class="ribbon">Plans to Watch</h2>
<table>
<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
<?php $i = 1; ?>
<?php foreach ($planning as $anime): ?>
	<tr>
	<td><?= $i ?></td>
	<td><?= $anime->series_title ?></td>
	<td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
	<td><?= $anime->series_type ?></td>
	<td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
	</tr>
<?php $i += 1; ?>
<?php endforeach; ?>
</table>
<?php endif; ?>

<?php if(isset($paused)): ?>
<h2 class="ribbon">Paused</h2>
<table>
<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
<?php $i = 1; ?>
<?php foreach ($paused as $anime): ?>
	<tr>
	<td><?= $i ?></td>
	<td><?= $anime->series_title ?></td>
	<td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
	<td><?= $anime->series_type ?></td>
	<td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
	</tr>
<?php $i += 1; ?>
<?php endforeach; ?>
</table>
<?php endif; ?>

<?php if (isset($dropped)): ?>
<h2 class="ribbon">Dropped</h2>
<table>
<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
<?php $i = 1; ?>
<?php foreach ($dropped as $anime): ?>
	<tr>
	<td><?= $i ?></td>
	<td><?= $anime->series_title ?></td>
	<td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
	<td><?= $anime->series_type ?></td>
	<td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
	</tr>
<?php $i += 1; ?>
<?php endforeach; ?>
</table>
<?php endif; ?>