From 03e54d0f7d0053831e880e536dd2bca7bf3c522e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 9 Aug 2021 11:12:33 +0200 Subject: [PATCH] Delete formPurchase-FER_SURFACE-3.php --- .../includes/formPurchase-FER_SURFACE-3.php | 230 ------------------ 1 file changed, 230 deletions(-) delete mode 100644 purchase/includes/formPurchase-FER_SURFACE-3.php diff --git a/purchase/includes/formPurchase-FER_SURFACE-3.php b/purchase/includes/formPurchase-FER_SURFACE-3.php deleted file mode 100644 index d78cdcb..0000000 --- a/purchase/includes/formPurchase-FER_SURFACE-3.php +++ /dev/null @@ -1,230 +0,0 @@ -session = $sessionDAO->sessionData($_POST["sessions"]); - - $filmDAO = new Film_DAO("complucine"); - $this->film = $filmDAO->FilmData($this->session->getIdfilm()); - - $cinemaDAO = new Cinema_DAO("complucine"); - $this->cinema = $cinemaDAO->cinemaData($this->session->getIdcinema()); - - $hallDAO = new HallDAO("complucine"); - $this->hall = $hallDAO->HallData($this->session->getIdhall()); - - $this->seat = array(); - $this->row = array(); - $this->col = array(); - $rows = $this->hall->getNumRows(); - $cols = $this->hall->getNumCol(); - for($i = 0; $i <= $rows; $i++){ - for($j = 0; $j <= $cols; $j++){ - $seat = $i.$j; - if(isset($_POST["checkbox".$seat])){ - array_push($this->seat, $i."-".$j); - array_push($this->row, $i); - array_push($this->col, $j); - } - } - } - - $promoDAO = new Promotion_DAO("complucine"); - $this->code = intval(0); - if(isset($_POST["code"]) && $_POST["code"] !== ""){ - if($promoDAO->GetPromotion($_POST["code"])->data_seek(0)){ - $this->code = intval(2); - } - } - - $TODAY = getdate(); - $year = "$TODAY[year]"; - - $this->_TODAY = "$TODAY[year]-$TODAY[month]-$TODAY[mday] $TODAY[hours]:$TODAY[minutes]:$TODAY[seconds]"; - - $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, 'card-holder', 'span', array('class' => 'error')); - $errorCardNumber = self::createMensajeError($errores, 'card-number-0', 'span', array('class' => 'error')); - $errorCVV = self::createMensajeError($errores, 'card-cvv', 'span', array('class' => 'error')); - $errorCardExpirationMonth = self::createMensajeError($errores, 'card-expiration-month', 'span', array('class' => 'error')); - $errorCardExpirationYear = self::createMensajeError($errores, 'card-expiration-year', 'span', array('class' => 'error')); - - $monthsHTML = ""; - foreach($this->months as $value){ - $monthsHTML .= ""; - } - - $yearsHTML = ""; - foreach($this->years as $value){ - $yearsHTML .= ""; - } - - if($this->session->getSeatsFull()){ - $html = "
Vuelva atrás para selecionar otra sesión.
-(Se ha aplicado un descuento por código promocional)."; - - $html = "
Vuelva atrás para selecionar una butaca.
- -