Ejemplo n.º 1
0
                    }
                } else {
                    if ($operacion == EquipoVerRegistrar) {
                        $destino = '../../../web/verEquipo.php';
                        unset($_SESSION[EquipoSesion]);
                        $objUtilidadesLN = new utilidadesLN();
                        $carrera = $objUtilidadesLN->getSiguienteCarrera();
                        //Obtener siguiente carrera
                        $_SESSION[CarreraSesion] = $carrera;
                        $listaPilotos = $objUtilidadesLN->getPilotosCarrera($carrera->getCarCod());
                        $_SESSION[ListaPilotosSesion] = $listaPilotos;
                        $listaEscuderias = $objUtilidadesLN->getEscuderiasCarrera($carrera->getCarCod());
                        $_SESSION[ListaEscuderiasSesion] = $listaEscuderias;
                        $listaMotores = $objUtilidadesLN->getMotoresCarrera($carrera->getCarCod());
                        $_SESSION[ListaMotoresSesion] = $listaMotores;
                        $listaCampeonatos = $objUtilidadesLN->getCampeonatos($carrera->getCarCod());
                        $_SESSION[ListaCampeonatosSesion] = $listaCampeonatos;
                        //Version 2.0; 2011-03-24
                        $listaPosiciones = $objUtilidadesLN->getPosicionesPilotos();
                        $_SESSION[ListaPosicionesPilotosSesion] = $listaPosiciones;
                    } else {
                        $resultado["Errores"] = "Operación no reconocida";
                    }
                }
            }
        }
    }
    //Analizamos el destino
    header("location:" . $destino);
} else {
    //if (isset)