Ejemplo n.º 1
0
}
if ($action == "delete") {
    ShoppingcartDB::deleteById($_POST['id']);
} else {
    if ($action == "stock") {
        $results = ShoppingcartDB::getLowstock(5, AuthModel::getUser('id'));
        $cinemas = FoodDB::getFoodCinema();
        include "load.php";
    } else {
        if ($action == "all") {
            $results = ShoppingcartDB::getCartByUserId(AuthModel::getUser('id'));
            $cinemas = FoodDB::getFoodCinema();
            include "load.php";
        } else {
            if ($action == "reduction") {
                $results = ShoppingcartDB::getReduction(AuthModel::getUser('id'));
                $cinemas = FoodDB::getFoodCinema();
                include "load.php";
            } else {
                if ($action == "history") {
                    $foods = ShoppingcartDB::getHistory(6);
                    include "bottomload.php";
                } else {
                    if ($action == "guess") {
                        $foods = ShoppingcartDB::getGuess(AuthModel::getUser('id'), 6);
                        include "bottomload.php";
                    } else {
                        if ($action == "update") {
                            ShoppingcartDB::updateSizeById($_GET["id"], $_GET["size"]);
                        } else {
                            if ($action == "updatecinema") {