Add files via upload
This commit is contained in:
parent
27c3ee739c
commit
1ad88d42a2
@ -358,6 +358,22 @@
|
|||||||
.code.showtimes:hover {
|
.code.showtimes:hover {
|
||||||
filter: drop-shadow(5px 5px 10px #1f2c3d);
|
filter: drop-shadow(5px 5px 10px #1f2c3d);
|
||||||
}
|
}
|
||||||
|
.code.purchase {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.code.purchase img {
|
||||||
|
margin: 0.1em 0 0.8em 0;
|
||||||
|
width: 100%;
|
||||||
|
box-shadow: 0 4px 8px 0 #00020f, 0 6px 20px 0 #00020f;
|
||||||
|
}
|
||||||
|
.code.purchase select, .code.purchase select option {
|
||||||
|
width: 100%;
|
||||||
|
font-weight: bold !important;
|
||||||
|
color: #1f2c3d !important;
|
||||||
|
background-color: #d3ebff;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* BlockQuotes */
|
/* BlockQuotes */
|
||||||
.blockquote {
|
.blockquote {
|
||||||
|
@ -344,7 +344,6 @@ main img {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
transition: .5s ease;
|
transition: .5s ease;
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
|
|
||||||
}
|
}
|
||||||
.code.showtimes {
|
.code.showtimes {
|
||||||
height: 600px;
|
height: 600px;
|
||||||
@ -357,6 +356,21 @@ main img {
|
|||||||
.code.showtimes:hover {
|
.code.showtimes:hover {
|
||||||
filter: drop-shadow(5px 5px 10px #1f2c3d);
|
filter: drop-shadow(5px 5px 10px #1f2c3d);
|
||||||
}
|
}
|
||||||
|
.code.purchase {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.code.purchase img {
|
||||||
|
margin: 0.1em 0 0.8em 0;
|
||||||
|
width: 100%;
|
||||||
|
box-shadow: 0 4px 8px 0 #d3ebff, 0 6px 20px 0 #d3ebff;
|
||||||
|
}
|
||||||
|
.code.purchase select, .code.purchase select option {
|
||||||
|
width: 100%;
|
||||||
|
font-weight: bold !important;
|
||||||
|
color: #1f2c3d !important;
|
||||||
|
background-color: #d3ebff;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* BlockQuotes */
|
/* BlockQuotes */
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
(SELECT session.idcinema FROM session JOIN film ON session.idfilm = film.id WHERE film.id = '%d'); ", $id);
|
(SELECT session.idcinema FROM session JOIN film ON session.idfilm = film.id WHERE film.id = '%d'); ", $id);
|
||||||
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
||||||
|
|
||||||
//$cinemas[] = null;
|
$cinemas = null;
|
||||||
while($fila = $resul->fetch_assoc()){
|
while($fila = $resul->fetch_assoc()){
|
||||||
$cinemas[] = $cinema->loadCinema($fila["id"], $fila["name"], $fila["direction"], $fila["phone"]);
|
$cinemas[] = $cinema->loadCinema($fila["id"], $fila["name"], $fila["direction"], $fila["phone"]);
|
||||||
}
|
}
|
||||||
|
@ -15,14 +15,23 @@
|
|||||||
$tittle = $film->getTittle();
|
$tittle = $film->getTittle();
|
||||||
|
|
||||||
$cinemas = $filmDAO->getCinemas($_GET["film"]);
|
$cinemas = $filmDAO->getCinemas($_GET["film"]);
|
||||||
|
if(!empty($cinemas)){
|
||||||
$cinemasNames = array();
|
$cinemasNames = array();
|
||||||
foreach($cinemas as $key=>$value){
|
foreach($cinemas as $key=>$value){
|
||||||
$cinemasNames[$key] = $value->getName();
|
$cinemasNames[$key] = $value->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$cinemasListHTML = '<select name="cinemas">';
|
||||||
foreach($cinemasNames as $value){
|
foreach($cinemasNames as $value){
|
||||||
$cinemasListHTML = '<select name="cinemas">
|
if($value == reset($cinemasNames)){
|
||||||
<option value="'.$value.'">'.$value.'</option>
|
$cinemasListHTML .= '<option value="'.$value.'" selected>'.$value.'</option>';
|
||||||
</select>';
|
} else {
|
||||||
|
$cinemasListHTML .='<option value="'.$value.'">'.$value.'</option>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$cinemasListHTML .= '</select>';
|
||||||
|
} else {
|
||||||
|
$cinemasListHTML = '<select name="cinemas"><option value="" selected>No hay cines disponibles para esta película.</option></select>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,12 +40,14 @@
|
|||||||
$reply = '<div class="column left">
|
$reply = '<div class="column left">
|
||||||
<h2>Película seleccionada: '.str_replace('_', ' ', $tittle).'</h2><hr />
|
<h2>Película seleccionada: '.str_replace('_', ' ', $tittle).'</h2><hr />
|
||||||
<div class="image"><img src="'.$prefix.'img/films/'.$tittle.'.jpg" alt="'.$tittle.'" /></div>
|
<div class="image"><img src="'.$prefix.'img/films/'.$tittle.'.jpg" alt="'.$tittle.'" /></div>
|
||||||
<p>Duración: '.$film->getDuration().'</p>
|
<p>Duración: '.$film->getDuration().' minutos</p>
|
||||||
<p>Idioma: '.$film->getLanguage().'</p>
|
<p>Idioma: '.$film->getLanguage().'</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="column right">
|
<div class="column right">
|
||||||
<h2>Seleccione un Cine y una Sesión</h2><hr />
|
<h2>Seleccione un Cine y una Sesión</h2><hr />
|
||||||
|
<br /><h3>Cines</h3>
|
||||||
'.$cinemasListHTML.'
|
'.$cinemasListHTML.'
|
||||||
|
<h3>Sesiones</h3>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
|
|
||||||
@ -44,7 +55,7 @@
|
|||||||
$section = '<!-- Purchase -->
|
$section = '<!-- Purchase -->
|
||||||
<section id="purchase">
|
<section id="purchase">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<section class="code">
|
<section class="code purchase">
|
||||||
'.$reply.'
|
'.$reply.'
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user