index.html.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <h1><?= $user->username ?>'s AnimeList</h1>
  2. <hr/>
  3. <table><tr><?= $this->html->link("Completed", "/animelist/view/$user->username/completed"); ?> </tr></table>
  4. <?php if (isset($watching)): ?>
  5. <h2 class="ribbon">Watching</h2><button value="Add" style="float:right">
  6. <tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
  7. <?php $i = 1; ?>
  8. <?php foreach ($watching as $anime): ?>
  9. <tr>
  10. <td><?= $i ?></td>
  11. <td><?= $anime->series_title ?></td>
  12. <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
  13. <td><?= $anime->series_type ?></td>
  14. <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
  15. </tr>
  16. <?php $i += 1; ?>
  17. <?php endforeach; ?>
  18. </table>
  19. <?php endif; ?>
  20. <?php if (isset($planning)): ?>
  21. <h2 class="ribbon">Plans to Watch</h2>
  22. <table>
  23. <tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
  24. <?php $i = 1; ?>
  25. <?php foreach ($planning as $anime): ?>
  26. <tr>
  27. <td><?= $i ?></td>
  28. <td><?= $anime->series_title ?></td>
  29. <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
  30. <td><?= $anime->series_type ?></td>
  31. <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
  32. </tr>
  33. <?php $i += 1; ?>
  34. <?php endforeach; ?>
  35. </table>
  36. <?php endif; ?>
  37. <?php if(isset($paused)): ?>
  38. <h2 class="ribbon">Paused</h2>
  39. <table>
  40. <tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
  41. <?php $i = 1; ?>
  42. <?php foreach ($paused as $anime): ?>
  43. <tr>
  44. <td><?= $i ?></td>
  45. <td><?= $anime->series_title ?></td>
  46. <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
  47. <td><?= $anime->series_type ?></td>
  48. <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
  49. </tr>
  50. <?php $i += 1; ?>
  51. <?php endforeach; ?>
  52. </table>
  53. <?php endif; ?>
  54. <?php if (isset($dropped)): ?>
  55. <h2 class="ribbon">Dropped</h2>
  56. <table>
  57. <tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>
  58. <?php $i = 1; ?>
  59. <?php foreach ($dropped as $anime): ?>
  60. <tr>
  61. <td><?= $i ?></td>
  62. <td><?= $anime->series_title ?></td>
  63. <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td>
  64. <td><?= $anime->series_type ?></td>
  65. <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td>
  66. </tr>
  67. <?php $i += 1; ?>
  68. <?php endforeach; ?>
  69. </table>
  70. <?php endif; ?>