function principal() { if (validarRestauranteLoggeado()) { $restaurante = getRestauranteLoggeado(); require_once 'modulos/administracionRestaurantes/vistas/index.php'; } }
echo $restaurante->idRestaurante; ?> ">Agregar platillo</a></h4> <h4><a href="platillos.php?a=duplicar&r=<?php echo $restaurante->idRestaurante; ?> ">Duplicar platillo</a></h4> <div style="width: 100%;overflow-x: scroll;"> <table border="1"> <?php require_once 'modulos/platillos/clases/Platillo.php'; Platillo::printHeader(); if (isset($platillos)) { foreach ($platillos as $platillo) { $platillo->printPlatillo(); } } ?> </table> </div> <?php $restauranteLoggeado = getRestauranteLoggeado(); if (isset($restauranteLoggeado)) { echo '<a href="adminRestaurante.php">Regresar</a>'; } else { echo '<a href="restaurantes.php">Regresar</a>'; } ?> <?php require_once 'layout/footer.php';
if ($tipo == "editar") { ?> <h3>Imagen actual:</h3> <img src="<?php echo $tipoComida->imagen; ?> "/><br> <?php } ?> <br> <input type="file" name="logo" id="logo" /> </li> <li> <label></label><br><br><br> <input type="submit" value=" Aceptar "/> </li> </ul> </form> <?php $tipoComidaLoggeado = getRestauranteLoggeado(); if (isset($tipoComidaLoggeado)) { echo '<a class="offset1" href="adminRestaurante.php">Regresar</a>'; } else { echo '<a class="offset1" href="restaurantes.php">Regresar</a>'; } ?> <?php require_once 'layout/footer.php';