animetable.html.php 800 B

123456789101112131415161718192021222324252627282930313233
  1. <?= $this->Paginator->paginate(array('separator' => '')) ?>
  2. <table>
  3. <th>Title</th>
  4. <th>Date</th>
  5. <th>Type</th>
  6. <?php foreach ($content as $anime): ?>
  7. <tr>
  8. <td>
  9. <a href="/anime/view/<?= $anime->special_id ?>"><?= $anime->title ?></a>
  10. <?php if ($anime->foreign_titles || $anime->alternative_titles): ?>
  11. <span class="alt_titles">
  12. <?php if ($anime->foreign_titles): ?>
  13. <?= $anime->foreign_titles[0] ?>
  14. <?php endif ?>
  15. <?php if ($anime->alternative_titles): ?>
  16. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  17. <?= $anime->alternative_titles[0] ?>
  18. <?php endif ?>
  19. </span>
  20. <?php endif ?>
  21. </td>
  22. <td>
  23. <?= $anime->aired ?>
  24. </td>
  25. <td>
  26. <?= $anime->view_type ?>
  27. </td>
  28. </tr>
  29. <?php endforeach ?>
  30. </table>
  31. <?= $this->Paginator->paginate(array('separator' => '')) ?>