Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <div class="grid-cont">
  2. <div class="banda_search">
  3. <!-- hot news -->
  4.  
  5. <form action="#">
  6. <i class="fa fa-search"></i>
  7. <input type="text" placeholder="Pesquise pelo nome da banda que você procura!">
  8.  
  9. </form>
  10. </div>
  11.  
  12. <?php
  13.  
  14. $getPage = (!empty($Link->getLocal()[1]) ? $Link->getLocal()[1] : 0);
  15. $Pager = new Pager(HOME . '/bandas/');
  16. $Pager->ExePager($getPage, 12);
  17.  
  18. $readbanda = new Read;
  19. $readbanda->ExeRead("ws_bands", "WHERE band_parent IS NOT NULL ORDER BY band_date DESC LIMIT :limit OFFSET :offset", "limit={$Pager->getLimit()}&offset={$Pager->getOffset()}");
  20.  
  21.  
  22. if (!$readbanda->getResult()):
  23. $Pager->ReturnPage();
  24. WSErro("Desculpe, não existem bandas cadastradas no momento, favor volte mais tarde!", WS_INFOR);
  25. else:
  26.  
  27. echo'<div class="banda_news">';
  28. echo'<div class="grid-row">';
  29. foreach ($readbanda->getResult() as $banda):
  30. extract($banda);
  31.  
  32. $results = Artist::search($band_title,"1");
  33.  
  34. foreach($results as $artist):
  35.  
  36.  
  37.  
  38. echo' <div class="grid-col grid-col-3">
  39. <a href="'.HOME.'/banda/'.$band_name.'" class="small" alt="'.$band_title.'" title="'.$band_title.'">
  40. <span class="pic" alt="'.$band_title.'" title="'.$band_title.'" style="background-image: url(' . $artist->getImage(4) . ')"></span>
  41.  
  42. <h3>'.$band_title.'</h3>
  43. </a>
  44. </div>';
  45.  
  46.  
  47.  
  48.  
  49. endforeach;
  50. endforeach;
  51.  
  52. echo '</div>
  53. </div>';
  54. endif;
  55. $Pager->ExePaginator("ws_bands", "ORDER BY band_date");
  56. echo $Pager->getPaginator();?>
  57.  
  58.  
  59. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement