Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 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.  
  19. $readbanda = new Read;
  20. $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()}");
  21.  
  22.  
  23. if (!$readbanda->getResult()):
  24. $Pager->ReturnPage();
  25. WSErro("Desculpe, não existem bandas cadastradas no momento, favor volte mais tarde!", WS_INFOR);
  26. else:
  27.  
  28. echo'<div class="banda_news">';
  29. echo'<div class="grid-row">';
  30. foreach ($readbanda->getResult() as $banda):
  31. extract($banda);
  32.  
  33. $results = Artist::search($band_title,"1");
  34.  
  35. foreach($results as $artist):
  36.  
  37.  
  38.  
  39. echo' <div class="grid-col grid-col-3">
  40. <a href="'.HOME.'/banda/'.$band_name.'" class="small" alt="'.$band_title.'" title="'.$band_title.'">
  41. <span class="pic" alt="'.$band_title.'" title="'.$band_title.'" style="background-image: url(' . $artist->getImage(4) . ')"></span>
  42. <h5></h5>
  43. <h3>'.$band_title.'</h3>
  44. </a>
  45. </div>';
  46.  
  47.  
  48.  
  49.  
  50. endforeach;
  51. endforeach;
  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