Beispiel #1
0
    $act = $_GET['act'];
    if ($act == 1) {
        $index->setNewPasillo($_POST);
    }
    if ($act == 2) {
        $index->setNewTypeProduct($_POST);
    }
    if ($act == 3) {
        $index->setNewProducts($_POST);
    }
    if ($act == 4) {
        $index->setNewProduct($_POST);
    }
    if ($act == 5) {
        $index->setSelectClient($_GET['select']);
    }
    if ($act == 6) {
        $index->loadFiles();
    }
    if ($act == 7) {
        $index->setAdmin();
    }
    if ($act == 8) {
        $cart->addProduct();
        $index->setNewProduct("");
    }
    if ($act == 9) {
        $cart->setExtraTime(15);
        //header("location: product.php?act=8&pas="******"&type=".$_GET['type']."&prods=".$_GET['prods']."&select=1");
    }
}