From 75875482960ad9811fd508ca80eee91d962272ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 24 May 2021 14:07:18 +0200 Subject: [PATCH] Add files via upload --- assets/css/highContrast.css | 5 ++++- assets/css/main.css | 3 +++ assets/php/template.php | 34 +++++++++++++++++++++++++++++++++- cinemas/index.php | 10 ++++++++-- purchase/index.php | 7 +++++++ 5 files changed, 55 insertions(+), 4 deletions(-) diff --git a/assets/css/highContrast.css b/assets/css/highContrast.css index 42055f3..af1fd80 100644 --- a/assets/css/highContrast.css +++ b/assets/css/highContrast.css @@ -357,7 +357,10 @@ } .code.showtimes:hover { filter: drop-shadow(5px 5px 10px #1f2c3d); -} +} +.code.cinemas { + height: 200px; +} .code.purchase { text-align: center; } diff --git a/assets/css/main.css b/assets/css/main.css index 2a0cb6a..3d5c065 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -356,6 +356,9 @@ main img { .code.showtimes:hover { filter: drop-shadow(5px 5px 10px #1f2c3d); } +.code.cinemas { + height: 200px; +} .code.purchase { text-align: center; } diff --git a/assets/php/template.php b/assets/php/template.php index f0c2044..5e2368a 100644 --- a/assets/php/template.php +++ b/assets/php/template.php @@ -465,6 +465,8 @@ //List of the cinemas: require_once(__DIR__.'/includes/cinema_dao.php'); + $prefix= $this->get_prefix(); + $cine = new Cinema_DAO("complucine"); $cinemas = $cine->allCinemaData(); $ids = array(); @@ -482,6 +484,36 @@ } switch($this->page){ + case "Nuestros Cines": + for($i = 0; $i < count($cinemas); $i++){ + if($i%2 === 0){ + if($i != 0) $reply .= " + "; + $reply .= "
+ "; + } + else{ + if($i != 0) $reply .= "
+ "; + $reply .= "
+ "; + } + $reply .= "
+ +
+ "; + } + $reply .= "
\n"; + break; case "Panel de Administrador": $reply .= "
@@ -533,7 +565,7 @@ '; break; - default: + default: break; } diff --git a/cinemas/index.php b/cinemas/index.php index c5e02d5..b67000c 100644 --- a/cinemas/index.php +++ b/cinemas/index.php @@ -2,8 +2,14 @@ //General Config File: require_once('../assets/php/config.php'); - //Specific page content: - $section = ''; + //Page-specific content: + $section = ' +
+
+ '.$template->print_cinemas().' +
+
+ '; //General page content: require RAIZ_APP.'/HTMLtemplate.php'; diff --git a/purchase/index.php b/purchase/index.php index cec00d8..450ca96 100644 --- a/purchase/index.php +++ b/purchase/index.php @@ -101,8 +101,15 @@ $reply = '

No existe la película.

'; $pay = false; } + } else if(isset($_GET["cinema"])) { + $reply = '

ESTAMOS TRABAJANDO EN ELLO

'; + $pay = false; + } else { + $reply = '

No ha encontrado película ni cine.

'; + $pay = false; } + //Pay button: if($pay){ $pay = '