From 3515a4a5837bdf444280e14dfcbe9cb26c117249 Mon Sep 17 00:00:00 2001 From: OscarRui <79144467+OscarRui@users.noreply.github.com> Date: Tue, 11 May 2021 19:39:14 +0200 Subject: [PATCH] =?UTF-8?q?Cambio=20sesiones=20a=C3=B1a/edit/elim=20para?= =?UTF-8?q?=20uso=20del=20Form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panel_manager/includes/formSession.php | 165 +++++++++++++++---------- 1 file changed, 103 insertions(+), 62 deletions(-) diff --git a/panel_manager/includes/formSession.php b/panel_manager/includes/formSession.php index a9bbc5b..fb9e9ef 100644 --- a/panel_manager/includes/formSession.php +++ b/panel_manager/includes/formSession.php @@ -1,107 +1,148 @@ option = $option; + $options = array("action" => "./?state=".$option); + parent::__construct('formSession',$options); } //TODO Edit session no funciona correctamente con el seleccionar una pelicula distinta, hay que guardar la id de la sesion de alguna forma y usarla o guardar en la sesion - public static function generaCampoFormulario($data, $errores = array()){ + protected function generaCamposFormulario($data, $errores = array()){ + + $filmList = new Film_DAO('complucine'); + $films = $filmList->allFilmData(); - $cinema = $data['cinema'] ?? ''; - $film = $data['film'] ?? ''; - $hall = $data['hall'] ?? ''; - $date = $data['date'] ?? ''; - $start = $data['start'] ?? ''; - $price = $data['price'] ?? ''; - $format = $data['format'] ?? ''; - - $htmlform .= '