anime.html.php 1.1 KB

123456789101112131415161718192021222324252627
  1. <div class="container_12">
  2. <div class="grid_4">
  3. <h2> Search options </h2>
  4. <hr />
  5. <?= $this->form->create(null, array('method' => 'get')); ?>
  6. <?= $this->form->field('search', array('type' => 'textbox', 'class' => 'sidebar-search', 'style' => 'width:200px')); ?>
  7. <?= $this->form->label('type', 'For:'); ?>
  8. <?= $this->form->select('type', array('Anime' => 'Anime',
  9. 'Manga' => 'Manga',
  10. 'Kdrama' => 'Kdrama')); ?>
  11. <?= $this->form->submit('Search', array('style' => 'width: 100px')); ?>
  12. <?= $this->form->end(); ?>
  13. </div>
  14. <div class="grid_8">
  15. <h2>Search Results</h2>
  16. <hr />
  17. <table class="table">
  18. <tr><th>img</th><th>Name</th><th>Episodes</th><th>Type</th><th>Score</th></tr>
  19. <?php foreach($content as $item): ?>
  20. <tr><td>"image"</td><td><a href="/anime/view/<?= $item->special_id ?>"><?= $item->title ?></a></td> <td><?= $item->episode_count ?></td><td><?= $item->view_type ?></td><td><?= $item->mal_score ?></td></tr>
  21. <?php endforeach; ?>
  22. </table>
  23. <?=$this->Paginator->paginate(array('separator' => '', 'action' => 'index/anime')); ?>
  24. </div>
  25. <br class="cl">
  26. </div>