Add files via upload

This commit is contained in:
Fernando Méndez 2021-06-04 23:59:51 +02:00 committed by GitHub
parent c0cbc85ff9
commit 505fc87698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -53,7 +53,7 @@
* @see http://php.net/manual/en/language.types.callable.php * @see http://php.net/manual/en/language.types.callable.php
*/ */
register_shutdown_function(array($app, 'shutdown')); register_shutdown_function(array($app, 'shutdown'));
//Depuración (BORRAR): //Depuración (BORRAR):
ini_set('display_errors', 1); ini_set('display_errors', 1);
ini_set('display_startup_errors', 1); ini_set('display_startup_errors', 1);

View File

@ -78,7 +78,7 @@ class FormSelectCinemaSession extends Form {
$cinemasListHTML .= '</select> $cinemasListHTML .= '</select>
</section>'; </section>';
} else { } else {
$cinemasListHTML = '<select name="cinemas"><option value="" selected>No hay cines disponibles para esta película.</option></select><button id="go-back">Volver</button>'; $cinemasListHTML = '<select name="cinemas"><option value="" selected>No hay cines disponibles para esta película.</option></select>';
} }
$fiml_id = $film->getId(); $fiml_id = $film->getId();
@ -118,11 +118,11 @@ class FormSelectCinemaSession extends Form {
$sessionsListHTML .= '</select>'; $sessionsListHTML .= '</select>';
if($count == 0) { if($count == 0) {
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select><button id="go-back">Volver</button>'; $sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
$pay = false; $pay = false;
} }
} else { } else {
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select><button id="go-back">Volver</button>'; $sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
$pay = false; $pay = false;
} }
} else { } else {
@ -147,7 +147,7 @@ class FormSelectCinemaSession extends Form {
<input type="text" name="code" id="code" value="" placeholder="Código pormocional" /><pre>'.$errorCode.'</pre> <input type="text" name="code" id="code" value="" placeholder="Código pormocional" /><pre>'.$errorCode.'</pre>
</div>'; </div>';
} else { } else {
$html = '<h1>No existe la película.</h1><button id="go-back">Volver</button>'; $html = '<h1>No existe la película.</h1>';
$pay = false; $pay = false;
} }
} else if(isset($_GET["cinema"])) { } else if(isset($_GET["cinema"])) {
@ -192,7 +192,7 @@ class FormSelectCinemaSession extends Form {
</section>'; </section>';
} else { } else {
$filmsListHTML = '<select name="films"><option value="" selected>No hay películas disponibles para este cine.</option></select><button id="go-back">Volver</button>'; $filmsListHTML = '<select name="films"><option value="" selected>No hay películas disponibles para este cine.</option></select>';
} }
//Reply: Depends on whether the purchase is to be made from a selected movie or a cinema. //Reply: Depends on whether the purchase is to be made from a selected movie or a cinema.
@ -213,8 +213,7 @@ class FormSelectCinemaSession extends Form {
</div>'; </div>';
} else { } else {
$html = '<h1>No existe el cine.</h1> $html = '<h1>No existe el cine.</h1>';
<button id="go-back">Volver</button>';
$pay = false; $pay = false;
} }
} else { } else {
@ -226,6 +225,8 @@ class FormSelectCinemaSession extends Form {
//Select seat button: //Select seat button:
if($pay){ if($pay){
$pay = '<input type="submit" id="submit" value="Seleccionar Asiento" />'; $pay = '<input type="submit" id="submit" value="Seleccionar Asiento" />';
} else {
$pay = '<button id="go-back">Volver</button>';
} }
return ' return '