<?php

require '../clases/AutoCarga.php';
$bd = new DataBase();
$gestorArtista = new ManageArtista($bd);
$gestorLugar = new ManageLugar($bd);
$gestorTipoEvento = new ManageTipoEvento($bd);
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <a href="../login/administrador.php">Volver al Menú</a>
        <h3>Añadir Evento</h3>
        <form action="insertEvento.php" method="post" >
            Nombre evento<input type="text" name="nombre"/></br>
            Fecha<input type="date" name="fecha"/></br>
            Artista<?php 
echo Util::getSelect("ID_artista", $gestorArtista->getValuesSelect());
?>
<br>
                
            Lugar<?php 
echo Util::getSelect("ID_lugar", $gestorLugar->getValuesSelect());
?>
<br>
            Tipo evento<?php 
echo Util::getSelect("nombre_tipo", $gestorTipoEvento->getValuesSelect());
<?php

require '../clases/AutoCarga.php';
$bd = new DataBase();
$gestorEvento = new ManageEvento($bd);
$id = Request::get("ID_evento");
$evento = $gestorEvento->get($id);
$gestorArtista = new ManageArtista($bd);
$gestorLugar = new ManageLugar($bd);
$gestorTipo = new ManageTipoEvento($bd);
//   var_dump($gestorCountry->getValuesSelect());
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>

        <form action="phpEditarEvento.php" method="post" >


            <input type="hidden" name="pkID" value="<?php 
echo $evento->getID_evento();
?>