public function ejecutarReserva($id_hotel)
 {
     $proteccion = new Proteccion();
     $capacidad = $proteccion->html($_POST['cantidad']);
     $fec_llegada = $proteccion->html($_POST['llegada']);
     $fec_salida = $proteccion->html($_POST['salida']);
     $reserva = new Reserva();
     $cod_reserva = $reserva->setReserva($id_hotel, $_SESSION['user'], $capacidad, $fec_llegada, $fec_salida, date("Y-m-d"));
     $tp = new TemplatePower("templates/reserva.html");
     $tp->prepare();
     $tp->gotoBlock("_ROOT");
     $tp->newBlock("mensajereserva");
     $tp->assign("cod_reserva", $cod_reserva);
     echo $tp->getOutputContent();
 }