index.html.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. $this->styles($this->html->style('pagination'));
  3. ?>
  4. <h3>Anime</h3>
  5. <?= $this->_render('element', 'animetable', compact('anime')) ?>
  6. <?= $this->html->link("More", array('controller' => 'search',
  7. 'action' => 'anime')); ?>
  8. <h3>Manga</h3>
  9. <hr>
  10. <table>
  11. <th>Title</th>
  12. <th>Date</th>
  13. <th>Type</th>
  14. <?php if(count($manga) > 0): ?>
  15. <?php foreach ($manga as $item): ?>
  16. <tr>
  17. <td>
  18. <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
  19. </td>
  20. <td>
  21. <?= $item->aired ?>
  22. </td>
  23. <td>
  24. <?= $item->view_type ?>
  25. </td>
  26. </tr>
  27. <?php endforeach ?>
  28. </table>
  29. <div style = "float:right">
  30. <?= $this->html->link("More", array('controller' => 'search',
  31. 'action' => 'anime')); ?>
  32. </div>
  33. <?php else: ?>
  34. <p> No entries found </p>
  35. <?php endif; ?>
  36. <h3> K Drama </h3>
  37. <hr>
  38. <table>
  39. <th>Title</th>
  40. <th>Date</th>
  41. <th>Type</th>
  42. <?php if(count($kdrama) > 0): ?>
  43. <?php foreach ($kdrama as $item): ?>
  44. <tr>
  45. <td>
  46. <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
  47. </td>
  48. <td>
  49. <?= $item->aired ?>
  50. </td>
  51. <td>
  52. <?= $item->view_type ?>
  53. </td>
  54. </tr>
  55. <?php endforeach ?>
  56. </table>
  57. <div style = "float:right">
  58. <?= $this->html->link("More", array('controller' => 'search',
  59. 'action' => 'anime')); ?>
  60. </div>
  61. <?php else: ?>
  62. <p>No Entries found</p>
  63. <?php endif; ?>