Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="grid-cont">
- <div class="banda_search">
- <!-- hot news -->
- <form action="#">
- <i class="fa fa-search"></i>
- <input type="text" placeholder="Pesquise pelo nome da banda que você procura!">
- </form>
- </div>
- <?php
- $getPage = (!empty($Link->getLocal()[1]) ? $Link->getLocal()[1] : 0);
- $Pager = new Pager(HOME . '/bandas/');
- $Pager->ExePager($getPage, 12);
- $readbanda = new Read;
- $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()}");
- if (!$readbanda->getResult()):
- $Pager->ReturnPage();
- WSErro("Desculpe, não existem bandas cadastradas no momento, favor volte mais tarde!", WS_INFOR);
- else:
- echo'<div class="banda_news">';
- echo'<div class="grid-row">';
- foreach ($readbanda->getResult() as $banda):
- extract($banda);
- $results = Artist::search($band_title,"1");
- foreach($results as $artist):
- echo' <div class="grid-col grid-col-3">
- <a href="'.HOME.'/banda/'.$band_name.'" class="small" alt="'.$band_title.'" title="'.$band_title.'">
- <span class="pic" alt="'.$band_title.'" title="'.$band_title.'" style="background-image: url(' . $artist->getImage(4) . ')"></span>
- <h5></h5>
- <h3>'.$band_title.'</h3>
- </a>
- </div>';
- endforeach;
- endforeach;
- echo '</div>
- </div>';
- endif;
- $Pager->ExePaginator("ws_bands", "ORDER BY band_date");
- echo $Pager->getPaginator();?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement