anime.html.php 1.1 KB

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