Add files via upload
This commit is contained in:
parent
c0cbc85ff9
commit
505fc87698
@ -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);
|
||||||
|
@ -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 '
|
||||||
|
Loading…
Reference in New Issue
Block a user