From 11e4339a04f4c9f6a21b960b6b27549ad386c1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Wed, 26 May 2021 10:31:29 +0200 Subject: [PATCH] Add files via upload --- assets/css/highContrast.css | 71 +++++++++++++++--------------- assets/css/main.css | 8 ++-- purchase/confirm.php | 2 - purchase/includes/formPurchase.php | 4 +- purchase/index.php | 40 +++++++++-------- 5 files changed, 62 insertions(+), 63 deletions(-) diff --git a/assets/css/highContrast.css b/assets/css/highContrast.css index f41436d..c10d05c 100644 --- a/assets/css/highContrast.css +++ b/assets/css/highContrast.css @@ -695,42 +695,41 @@ display: inline-block; } - form select { - display: inline-block; - font-size: 15px; - font-weight: 400; - color: #1f2c3d; - line-height: 1.3; - padding: .4em 1.4em .3em .8em; - width: 75px; - max-width: 100%; - box-sizing: border-box; - margin: 10px auto; - border: 1px solid #d3ebff; - box-shadow: 0 1px 0 1px #1f2c3d; - border-radius: .3em; - -moz-appearance: none; - -webkit-appearance: none; - appearance: none; - background-color: #fff; - } - form select::-ms-expand { - display: none; - } - form select:hover { - border-color: #d3ebff; - } - form select:focus { - border-color: #d3ebff; - box-shadow: 0 0 1px 3px #1f2c3d; - box-shadow: 0 0 0 3px -moz-mac-focusring; - color: #1f2c3d; - outline: none; - } - form select option { - font-weight:normal; - } - +form select { + display: inline-block; + font-size: 14px; + font-weight: 400px; + color: #1f2c3d; + line-height: 1.3; + padding: .3em 1.4em .3em .4em; + width: 75px; + max-width: 100%; + box-sizing: border-box; + margin: 10px auto; + border: 1px solid #d3ebff; + box-shadow: 0 1px 0 1px #1f2c3d; + border-radius: .3em; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; + background-color: #fff; +} +form select::-ms-expand { + display: none; +} +form select:hover { + border-color: #d3ebff; +} +form select:focus { + border-color: #d3ebff; + box-shadow: 0 0 1px 3px #1f2c3d; + box-shadow: 0 0 0 3px -moz-mac-focusring; + color: #1f2c3d; + outline: none; +} +form select option { + font-weight: normal; +} /* Preformatted Text */ pre { diff --git a/assets/css/main.css b/assets/css/main.css index c6bc8be..4d7441d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -690,11 +690,11 @@ textarea { form select { display: inline-block; - font-size: 15px; - font-weight: 400; + font-size: 14px; + font-weight: 400px; color: #1f2c3d; line-height: 1.3; - padding: .4em 1.4em .3em .8em; + padding: .3em 1.4em .3em .4em; width: 75px; max-width: 100%; box-sizing: border-box; @@ -721,7 +721,7 @@ form select:focus { outline: none; } form select option { - font-weight:normal; + font-weight: normal; } diff --git a/purchase/confirm.php b/purchase/confirm.php index 8781465..54edc74 100644 --- a/purchase/confirm.php +++ b/purchase/confirm.php @@ -1,8 +1,6 @@ session = $sessionDAO->sessionData($_POST["session_id"]); + $this->session = $sessionDAO->sessionData($_POST["sessions"]); $filmDAO = new Film_DAO("complucine"); $this->film = $filmDAO->FilmData($this->session->getIdfilm()); @@ -68,7 +68,7 @@ class FormPurchase extends Form {
".$htmlErroresGlobales."
Datos Bancarios
- +

diff --git a/purchase/index.php b/purchase/index.php index 5475fbe..65706bc 100644 --- a/purchase/index.php +++ b/purchase/index.php @@ -35,7 +35,7 @@ $cinemasIT->attachIterator($cinemasIDs, "cID"); $cinemasIT->attachIterator($cinemasNames, "NAME"); - $cinemasListHTML = ''; foreach($cinemasIT as $value){ if($value == reset($cinemasIT)){ $cinemasListHTML .= ''; @@ -43,9 +43,9 @@ $cinemasListHTML .=''; } } - $cinemasListHTML .= ''; + $cinemasListHTML .= ''; } else { - $cinemasListHTML = ''; + $cinemasListHTML = ''; } $fiml_id = $film->getId(); @@ -71,25 +71,34 @@ $sessionsIT->attachIterator($sessionsHalls, "HALL"); $sessionsIT->attachIterator($sessionsStarts, "HOUR"); - $sessionsListHTML = ''; foreach ($sessionsIT as $value) { if($TODAY <= $value["DATE"]){ if($value === reset($sessionsIT)){ - $sessionsListHTML .= ''; + $sessionsListHTML .= ''; } else { - $sessionsListHTML .=''; + $sessionsListHTML .=''; } + $count++; } } $sessionsListHTML .= ''; + + if($count == 0) { + $sessionsListHTML = ''; + $pay = false; + } } else { $sessionsListHTML = ''; + $pay = false; } - $session_id = $value["sID"]; - $hall_id = $value["HALL"]; - $date_ = $value["DATE"]; - $hour_ = $value["HOUR"]; + //$session_id = $value["sID"]; + //$hall_id = $value["HALL"]; + //$date_ = $value["DATE"]; + //$hour_ = $value["HOUR"]; //Reply: Depends on whether the purchase is to be made from a selected movie or a cinema. $reply = '
@@ -121,15 +130,8 @@ //Pay button: if($pay){ - $pay = '
- - - - - - - -
'; + $pay = ' + '; } //Page-specific content: $section = '