function gestionarPropuesta($id, $a)
{
    $datos = datosPropuestaGastronomica($id);
    $fila = mysqli_fetch_assoc($datos);
    $id = $fila["idpincho"];
    $nombre = $fila["nombrepincho"];
    $foto = $fila["fotopincho"];
    $descripcion = $fila["descripcionpincho"];
    $ingredientes = $fila["ingredientesp"];
    $precio = $fila["precio"];
    $pincho = new Pincho();
    return $pincho->modificar($id, $nombre, $foto, $descripcion, $ingredientes, $precio, $a);
}
Exemple #2
0
<?php

session_start();
ob_start();
ini_set('display_errors', 1);
include "../../loader.php";
loadclasses("view", "header.php");
loadclasses("menus", "menuorganizador.html");
loadclasses("controller", "ControladorOrganizador.php");
if ($_SESSION['tipo'] != 'org') {
    header("Location: ../../index.php");
} else {
    $id = $_GET['idpincho'];
    $datos = datosPropuestaGastronomica($id);
    $pincho = mysqli_fetch_assoc($datos);
    if (isset($_POST['guardar'])) {
        if (isset($_POST['jurado'])) {
            $jurados = $_POST['jurado'];
            asignarPinchosJuradoProfesional($id, $jurados);
        }
        header("Location: ./asignarpinchojuradoprofesional.php");
    }
    ?>
				<form id="registropincho" method="post">
                    <div id=templatemo_form>
                        <div>
                            <label for="nombrepincho">Nome</label>
                            <h4><?php 
    echo $pincho['nombrepincho'];
    ?>
</h4>