Advertisement
Devilarte

Código de Listagem por Gênero

Jun 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <!-- LISTA DE FILMES, Sliders e Lista por Gênero -->
  2. <h3 align="center"> Filmes </h3>
  3.     <?php $genres = $this->crud_model->get_genres(); foreach ($genres as $row): ?>
  4.     <div class="row" style="margin:20px 60px;">
  5.         <h4 style="text-transform: capitalize;"><?php echo $row['name'];?></h4>
  6.         <div class="content">
  7.             <div class="grid">
  8.                 <?php
  9.                     $movies = $this->crud_model->get_movies($row['genre_id'] , 6, 0);
  10.                     foreach ($movies as $row)
  11.                     {
  12.                         $title  =   $row['title'];
  13.                         $link   =   base_url().'index.php?browse/playmovie/'.$row['movie_id'];
  14.                         $thumb  =   $this->crud_model->get_thumb_url('movie' , $row['movie_id']);
  15.                         include 'thumb.php';
  16.                     }
  17.                 ?>
  18.             </div>
  19.         </div>
  20.     </div>
  21. <?php endforeach;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement