index.html.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. $this->styles($this->html->style('pagination'));
  3. ?>
  4. <?= var_dump($this->request()->controller); ?>
  5. <h3> Anime </h3>
  6. <hr>
  7. <table>
  8. <th>Title</th>
  9. <th>Date</th>
  10. <th>Type</th>
  11. <?php if(count($anime) > 0): ?>
  12. <?php foreach ($anime as $item): ?>
  13. <tr>
  14. <td>
  15. <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
  16. </td>
  17. <td>
  18. <?= $item->aired ?>
  19. </td>
  20. <td>
  21. <?= $item->view_type ?>
  22. </td>
  23. </tr>
  24. <?php endforeach ?>
  25. </table>
  26. <div style = "float:right">
  27. <?= $this->html->link("More", array('controller' => 'search',
  28. 'action' => 'anime')); ?>
  29. </div>
  30. <?php else: ?>
  31. <p> No results found</p>
  32. <?php endif; ?>
  33. <h3> Manga </h3>
  34. <hr>
  35. <table>
  36. <th>Title</th>
  37. <th>Date</th>
  38. <th>Type</th>
  39. <?php if(count($manga) > 0): ?>
  40. <?php foreach ($manga as $item): ?>
  41. <tr>
  42. <td>
  43. <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
  44. </td>
  45. <td>
  46. <?= $item->aired ?>
  47. </td>
  48. <td>
  49. <?= $item->view_type ?>
  50. </td>
  51. </tr>
  52. <?php endforeach ?>
  53. </table>
  54. <div style = "float:right">
  55. <?= $this->html->link("More", array('controller' => 'search',
  56. 'action' => 'anime')); ?>
  57. </div>
  58. <?php else: ?>
  59. <p> No entries found </p>
  60. <?php endif; ?>
  61. <h3> K Drama </h3>
  62. <hr>
  63. <table>
  64. <th>Title</th>
  65. <th>Date</th>
  66. <th>Type</th>
  67. <?php if(count($kdrama) > 0): ?>
  68. <?php foreach ($kdrama as $item): ?>
  69. <tr>
  70. <td>
  71. <a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a>
  72. </td>
  73. <td>
  74. <?= $item->aired ?>
  75. </td>
  76. <td>
  77. <?= $item->view_type ?>
  78. </td>
  79. </tr>
  80. <?php endforeach ?>
  81. </table>
  82. <div style = "float:right">
  83. <?= $this->html->link("More", array('controller' => 'search',
  84. 'action' => 'anime')); ?>
  85. </div>
  86. <?php else: ?>
  87. <p> No Entries found </p>
  88. <?php endif; ?>