Add files via upload
This commit is contained in:
parent
27c3ee739c
commit
1ad88d42a2
@ -358,6 +358,22 @@
|
||||
.code.showtimes:hover {
|
||||
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 */
|
||||
.blockquote {
|
||||
|
@ -331,11 +331,11 @@ main img {
|
||||
.code.plan {
|
||||
height: 1150px;
|
||||
}
|
||||
.code.info{
|
||||
.code.info {
|
||||
text-align: center;
|
||||
height: 250px;
|
||||
}
|
||||
.code.info img{
|
||||
.code.info img {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
margin-top: 5px;
|
||||
@ -344,12 +344,11 @@ main img {
|
||||
padding: 5px;
|
||||
transition: .5s ease;
|
||||
backface-visibility: hidden;
|
||||
|
||||
}
|
||||
.code.showtimes{
|
||||
.code.showtimes {
|
||||
height: 600px;
|
||||
}
|
||||
.code.showtimes p{
|
||||
.code.showtimes p {
|
||||
height: 5em;
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
@ -357,6 +356,21 @@ main img {
|
||||
.code.showtimes:hover {
|
||||
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 */
|
||||
|
@ -112,7 +112,7 @@
|
||||
(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');
|
||||
|
||||
//$cinemas[] = null;
|
||||
$cinemas = null;
|
||||
while($fila = $resul->fetch_assoc()){
|
||||
$cinemas[] = $cinema->loadCinema($fila["id"], $fila["name"], $fila["direction"], $fila["phone"]);
|
||||
}
|
||||
|
@ -15,15 +15,24 @@
|
||||
$tittle = $film->getTittle();
|
||||
|
||||
$cinemas = $filmDAO->getCinemas($_GET["film"]);
|
||||
$cinemasNames = array();
|
||||
foreach($cinemas as $key=>$value){
|
||||
$cinemasNames[$key] = $value->getName();
|
||||
if(!empty($cinemas)){
|
||||
$cinemasNames = array();
|
||||
foreach($cinemas as $key=>$value){
|
||||
$cinemasNames[$key] = $value->getName();
|
||||
}
|
||||
|
||||
$cinemasListHTML = '<select name="cinemas">';
|
||||
foreach($cinemasNames as $value){
|
||||
if($value == reset($cinemasNames)){
|
||||
$cinemasListHTML .= '<option value="'.$value.'" selected>'.$value.'</option>';
|
||||
} 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>';
|
||||
}
|
||||
foreach($cinemasNames as $value){
|
||||
$cinemasListHTML = '<select name="cinemas">
|
||||
<option value="'.$value.'">'.$value.'</option>
|
||||
</select>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,12 +40,14 @@
|
||||
$reply = '<div class="column left">
|
||||
<h2>Película seleccionada: '.str_replace('_', ' ', $tittle).'</h2><hr />
|
||||
<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>
|
||||
</div>
|
||||
<div class="column right">
|
||||
<h2>Seleccione un Cine y una Sesión</h2><hr />
|
||||
<br /><h3>Cines</h3>
|
||||
'.$cinemasListHTML.'
|
||||
<h3>Sesiones</h3>
|
||||
</div>
|
||||
';
|
||||
|
||||
@ -44,7 +55,7 @@
|
||||
$section = '<!-- Purchase -->
|
||||
<section id="purchase">
|
||||
<div class="row">
|
||||
<section class="code">
|
||||
<section class="code purchase">
|
||||
'.$reply.'
|
||||
</section>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user