<?php require_once 'model.php'; $conn = open_database_connection(); ?> <?php require 'templates/header.php'; $limit = 5; $restaurantTypeEnums = get_all_restaurant_type_enums(); if (isset($_GET['filter'])) { $result = get_all_sorted_restaurants_with_limit($limit, $_GET['filter']); $reviews = get_all_ratings($limit, $_GET['filter']); } else { $result = get_all_restaurants_with_limit($limit); $reviews = get_all_ratings($limit); } ?> <div class="row"> <aside class="large-3 columns"> <h3><small>Cuisines</small></h3> <ul class="stack button-group"> <?php foreach ($restaurantTypeEnums as $restaurantTypeEnum) { ?> <?php $restaurantTypeEnum = $restaurantTypeEnum['unnest']; ?>
<?php require_once 'model.php'; $conn = open_database_connection(); ?> <?php require 'templates/header.php'; $ratings_limit = 5; $nearby_restaurants_limit = 3; $rid = $_GET['rID']; $row = pg_fetch_row(restaurant_based_on_rid($rid)); $loc = pg_fetch_row(locations_based_on_rid($rid)); $m = get_menu_based_on_rid($rid); $rating = get_all_ratings_by_rid_with_limit($rid, $ratings_limit); $nearby = get_all_restaurants_with_limit($nearby_restaurants_limit); $date = date("N", $timestamp) + 1; $hours = get_todays_hours($date, $rid); ?> <div class="row"> <div class="large-9 columns" role="content"> <div class="row"> <div class="large-3 columns"> <?php echo "<img src='{$row['4']}' />"; ?> Downtown <br /> <?php echo "{$loc['4']}";