<!DOCTYPE html>
<?php 
$product = new Product_controller();
?>
<html lang="en">
    <head>
        

        <title>Sam Shop</title>
        <link rel="stylesheet" href="css/bootstrap.css">
        <link rel="stylesheet" href="css/bootstrap-responsive.css">
        <link rel="stylesheet" href="css/style.css">
        
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/bootstrap.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        
        <!--start slider -->
        <link rel="stylesheet" href="css/fwslider.css" media="all">
        <script src="js/jquery-ui.min.js"></script>
        <script src="js/css3-mediaqueries.js"></script>
        <script src="js/fwslider.js"></script>
        <!--end slider -->
        <script type="text/javascript" src="js/script.js"></script>
        
    </head>
    <body>
        <div class="row-fluid span12 form_sec header_menu">
            <h1 class="row-fluid span12 h1_tag">Sam Shop</h1>
                <div class="row-fluid menu">
                    <div style="position: static;" class="navbar navbar-inverse">
<?php

$product = new Product_controller();
?>
                <div id="Test" class="container">
            <div class="row-fluid span12 form_sec">   
                <?php 
if (isset($_SESSION['err_rmvPrd']) && $_SESSION['err_rmvPrd'] != "") {
    ?>
                        <div class="alert alert-error" style="margin-top:20px;">
                        <button data-dismiss="alert" class="close" type="button"> 	&#215;</button>
                        <strong>Oh snap!</strong> <?php 
    echo $_SESSION['err_rmvPrd'];
    ?>
                        </div>
                        <?php 
    $_SESSION['err_rmvPrd'] = "";
}
?>
                        <?php 
if (isset($_SESSION['success_rmvPrd']) && $_SESSION['success_rmvPrd'] != "") {
    ?>
                        <div class="alert alert-success" style="margin-top:20px;">
                        <button data-dismiss="alert" class="close" type="button"> 	&#215;</button>
                        <strong>Well done!</strong> <?php 
    echo $_SESSION['success_rmvPrd'];
    ?>
                        </div>
                        
                        <?php 
    $_SESSION['success_rmvPrd'] = "";
<?php

$product = new Product_controller();
?>
                <div id="Test" class="container">
                    <div class="row-fluid span12 form_sec">    
                </div>
                    <div class="row-fluid span12 form_sec">
                        <?php 
if (isset($_SESSION['success_addTc']) && $_SESSION['success_addTc'] != "") {
    ?>
<div class="alert alert-success" style="margin-top:30px;">
                            <button data-dismiss="alert" class="close" type="button"> 	&#215;</button>
                            <strong>Well done!</strong> <?php 
    echo $_SESSION['success_addTc'];
    ?>
                        </div>
                        <?php 
    $_SESSION['success_addTc'] = "";
}
?>
                        
                    </div>
                    <div class="row-fluid span12 form_sec">
                        <h1 class="row-fluid span12 ">Featured Products</h1>
                        
                        <div class="row-fluid span12 form_sec">
                            
                            <?php 
$results = $product->getProducts();
for ($i = 0; $i < count($results); $i++) {