summaryrefslogtreecommitdiffstats
path: root/views/anime_list/index.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/anime_list/index.html.php')
-rw-r--r--views/anime_list/index.html.php74
1 files changed, 74 insertions, 0 deletions
diff --git a/views/anime_list/index.html.php b/views/anime_list/index.html.php
new file mode 100644
index 0000000..abe931b
--- /dev/null
+++ b/views/anime_list/index.html.php
@@ -0,0 +1,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; ?> \ No newline at end of file