Пример #1
0
    case 17:
        unset($_SESSION['detasubc']);
        $scate = $_REQUEST['scate'];
        $objDAO = new dao();
        $_SESSION['scate'] = $scate;
        $detasubc = $objDAO->detasubc($scate);
        $_SESSION['detasubc'] = $detasubc;
        header('Location: ../view/editarsubcate.php');
        break;
    case 18:
        unset($_SESSION['detatari']);
        $codtari = $_REQUEST['codtari'];
        $objDAO = new dao();
        $_SESSION['codtari'] = $codtari;
        $detatari = $objDAO->detatari($codtari);
        $_SESSION['detatari'] = $detatari;
        header('Location: ../view/editatarifa.php');
        break;
    case 19:
        unset($_SESSION['buscar']);
        $objDAO = new dao();
        $letra = $_REQUEST['letra'];
        $_SESSION['letra'] = $letra;
        $buscar = $objDAO->buscar($letra);
        $_SESSION['buscar'] = $buscar;
        header('Location: ../view/busqueda.php');
        break;
    default:
        header('Location: ../view/index.php');
        break;
}