Esempio n. 1
0
 public static function all()
 {
     $aGenres = array();
     $oCon = new Connection();
     $sSQL = "SELECT GenreID FROM tbgenres";
     $oResultSet = $oCon->query($sSQL);
     while ($aRow = $oCon->fetchArray($oResultSet)) {
         $iGenreID = $aRow["GenreID"];
         $oGenre = new Genre();
         $oGenre->load($iGenreID);
         $aGenres[] = $oGenre;
     }
     $oCon->close();
     return $aGenres;
 }
Esempio n. 2
0
                                <div class="item">
                                    <img class="slide-image" src="images/banner2.jpg" alt="">
                                </div>
                                <div class="item">
                                    <img class="slide-image" src="images/banner3.jpg" alt="">
                                </div>
                            </div>
                            <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left"></span>
                            </a>
                            <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right"></span>
                            </a>
                        </div>
                    </div>

                </div>

<?php 
$oGenre = new Genre();
$iCurrentGenreID = 1;
if (isset($_GET['genreid'])) {
    $iCurrentGenreID = $_GET['genreid'];
}
$oGenre->load($iCurrentGenreID);
echo View::renderGenre($oGenre);
?>

            
<?php 
require_once "includes/footer.php";