Add files via upload

This commit is contained in:
Fernando Méndez 2021-05-24 14:07:18 +02:00 committed by GitHub
parent 6625d9787a
commit 7587548296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 4 deletions

View File

@ -358,6 +358,9 @@
.code.showtimes:hover { .code.showtimes:hover {
filter: drop-shadow(5px 5px 10px #1f2c3d); filter: drop-shadow(5px 5px 10px #1f2c3d);
} }
.code.cinemas {
height: 200px;
}
.code.purchase { .code.purchase {
text-align: center; text-align: center;
} }

View File

@ -356,6 +356,9 @@ main img {
.code.showtimes:hover { .code.showtimes:hover {
filter: drop-shadow(5px 5px 10px #1f2c3d); filter: drop-shadow(5px 5px 10px #1f2c3d);
} }
.code.cinemas {
height: 200px;
}
.code.purchase { .code.purchase {
text-align: center; text-align: center;
} }

View File

@ -465,6 +465,8 @@
//List of the cinemas: //List of the cinemas:
require_once(__DIR__.'/includes/cinema_dao.php'); require_once(__DIR__.'/includes/cinema_dao.php');
$prefix= $this->get_prefix();
$cine = new Cinema_DAO("complucine"); $cine = new Cinema_DAO("complucine");
$cinemas = $cine->allCinemaData(); $cinemas = $cine->allCinemaData();
$ids = array(); $ids = array();
@ -482,6 +484,36 @@
} }
switch($this->page){ switch($this->page){
case "Nuestros Cines":
for($i = 0; $i < count($cinemas); $i++){
if($i%2 === 0){
if($i != 0) $reply .= "</div>
";
$reply .= "<div class='column side'>
";
}
else{
if($i != 0) $reply .= "</div>
";
$reply .= "<div class='column middle'>
";
}
$reply .= "<section id='".$names[$i]."'>
<div class='zoom'>
<a href='".$prefix."purchase?cinema=".$ids[$i]."'>
<div class='code cinemas'>
<h2>".$names[$i]."</h2>
<hr />
<li>Dirección: ".$directions[$i]."</li>
<li>Teléfono: ".$phones[$i]." minutos</li>
</div>
</a>
</div>
</section>
";
}
$reply .= "</div>\n";
break;
case "Panel de Administrador": case "Panel de Administrador":
$reply .= "<div class='row'> $reply .= "<div class='row'>
<div class='column side'></div> <div class='column side'></div>

View File

@ -2,8 +2,14 @@
//General Config File: //General Config File:
require_once('../assets/php/config.php'); require_once('../assets/php/config.php');
//Specific page content: //Page-specific content:
$section = ''; $section = '<!-- Cinemas -->
<section id="cinemas">
<div class="row">
'.$template->print_cinemas().'
</div>
</section>
';
//General page content: //General page content:
require RAIZ_APP.'/HTMLtemplate.php'; require RAIZ_APP.'/HTMLtemplate.php';

View File

@ -101,8 +101,15 @@
$reply = '<h1>No existe la película.</h1>'; $reply = '<h1>No existe la película.</h1>';
$pay = false; $pay = false;
} }
} else if(isset($_GET["cinema"])) {
$reply = '<h1>ESTAMOS TRABAJANDO EN ELLO</h1>';
$pay = false;
} else {
$reply = '<h1>No ha encontrado película ni cine.</h1>';
$pay = false;
} }
//Pay button: //Pay button:
if($pay){ if($pay){
$pay = '<form action="confirm.php" method="post"> $pay = '<form action="confirm.php" method="post">