Example #1
0
function Guardar()
{
    $concepto = new Concepto();
    if (isset($_POST['catalogo']) && $_POST['catalogo'] != "" && isset($_POST['clasificacion']) && $_POST['clasificacion'] != "" && isset($_POST['concepto']) && $_POST['concepto'] != "" && isset($_POST['cuenta']) && $_POST['cuenta'] != "") {
        $dc_catalogo = $_POST['catalogo'];
        $cp_clasificacion = $_POST['clasificacion'];
        $cp_concepto = $_POST['concepto'];
        $cp_cuenta = $_POST['cuenta'];
        $cp_estatus = $_POST['estatus'];
        $concepto->Nuevo_Concepto($dc_catalogo, $cp_clasificacion, $cp_concepto, $cp_cuenta, $cp_estatus);
        header("Location: index.php?oksave");
    } else {
        header("Location: index.php?error");
    }
}