session = $sessionDAO->sessionData($_POST["session_id"]); $filmDAO = new Film_DAO("complucine"); $this->film = $filmDAO->FilmData($this->session->getIdfilm()); $cinemaDAO = new Cinema_DAO("complucine"); $this->cinema = $cinemaDAO->cinemaData($this->session->getIdcinema()); $TODAY = getdate(); $year = "$TODAY[year]"; $this->years = array(); for($i = $year; $i < $year+10; $i++) array_push($this->years, $i); $this->months = array(); for($i = 1; $i <= 12; $i++) array_push($this->months, $i); } protected function generaCamposFormulario($datos, $errores = array()){ // Se generan los mensajes de error si existen. $htmlErroresGlobales = self::generaListaErroresGlobales($errores); $errorNombre = self::createMensajeError($errores, 'name', 'span', array('class' => 'error')); $errorPassword = self::createMensajeError($errores, 'pass', 'span', array('class' => 'error')); $monthsHTML = ""; foreach($this->months as $value){ $monthsHTML .= ""; } $yearsHTML = ""; foreach($this->years as $value){ $yearsHTML .= ""; } $html = "