/** * Description of ingredientesControlador * * @author neto */ function principal() { confirmBoxBaja(); $idGrupoIngredientes = $_GET['i']; require_once 'modulos/platillos/modelos/grupoIngredientesModelo.php'; $grupoIngredientes = getGrupoIngredientes($idGrupoIngredientes); require_once 'modulos/platillos/modelos/platilloModelo.php'; $idRestaurante = getIdRestauranteDePlatillo($grupoIngredientes->idPlatillo); if (validarAdministrador() || validarRestauranteLoggeadoId($idRestaurante)) { require_once 'modulos/platillos/modelos/ingredienteModelo.php'; $ingredientes = getIngredientesDeGrupo($idGrupoIngredientes); require_once 'modulos/platillos/vistas/mostrarIngredientes.php'; } else { goToIndex(); } }
function principal() { confirmBoxBaja(); $idRestaurante = $_GET['i']; if (validarAdministrador() || validarRestauranteLoggeadoId($idRestaurante)) { require_once 'modulos/restaurantes/modelos/RestauranteModelo.php'; $restaurante = getRestaurante($idRestaurante); if (isset($restaurante)) { require_once 'modulos/platillos/modelos/CategoriaPlatilloModelo.php'; $categorias = getCategoriasdeRestaurante($idRestaurante); require_once 'modulos/platillos/vistas/mostrarCategoriasPlatillo.php'; } else { goToIndex(); } } else { goToIndex(); } }
function mostrar() { confirmBoxBaja(); $idGrupoIngredientes = $_GET['i']; require_once 'modulos/platillos/clases/GrupoIngredientes.php'; require_once 'modulos/platillos/modelos/grupoIngredientesModelo.php'; $grupoIngredientes = getGrupoIngredientes($idGrupoIngredientes); $idPlatillo = $grupoIngredientes->idPlatillo; require_once "modulos/platillos/modelos/platilloModelo.php"; $idRestaurante = getIdRestauranteDePlatillo($idPlatillo); if (validarAdministrador() || validarRestauranteLoggeadoId($idRestaurante)) { echo '<table border=1>'; echo GrupoIngredientes::printGrupoIngredientesHeader(); $grupoIngredientes->printGrupoIngredientes(); echo '</table>'; echo '<a class="offset1" href="grupoIngredientes.php?i=' . $idPlatillo . '">Regresar</a>'; } else { goToIndex(); } }
function mostrar() { if (validarAdministrador()) { require_once 'funcionesPHP/funcionesGenerales.php'; require_once 'modulos/usuarios/modelos/usuarioModelo.php'; require_once 'modulos/principal/modelos/login.php'; confirmBoxBaja(); $usuarios = getUsuarios(); require_once 'modulos/usuarios/vistas/mostrarUsuarios.php'; } else { goToIndex(); } }
function menu() { require_once 'modulos/platillos/modelos/platilloModelo.php'; $idRestaurante = $_GET['i']; if (validarAdministrador() || validarRestauranteLoggeadoId($idRestaurante)) { confirmBoxBaja(); require_once 'modulos/restaurantes/modelos/RestauranteModelo.php'; $restaurante = getRestaurante($idRestaurante); $platillos = getPlatillosDeRestaurante($idRestaurante); require_once 'modulos/platillos/vistas/mostrarPlatillos.php'; } else { goToIndex(); } }