Add files via upload

This commit is contained in:
Fernando Méndez 2021-05-26 10:31:29 +02:00 committed by GitHub
parent 4d1eb61a1e
commit 11e4339a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 63 deletions

View File

@ -695,13 +695,13 @@
display: inline-block;
}
form select {
form select {
display: inline-block;
font-size: 15px;
font-weight: 400;
font-size: 14px;
font-weight: 400px;
color: #1f2c3d;
line-height: 1.3;
padding: .4em 1.4em .3em .8em;
padding: .3em 1.4em .3em .4em;
width: 75px;
max-width: 100%;
box-sizing: border-box;
@ -713,24 +713,23 @@
-webkit-appearance: none;
appearance: none;
background-color: #fff;
}
form select::-ms-expand {
}
form select::-ms-expand {
display: none;
}
form select:hover {
}
form select:hover {
border-color: #d3ebff;
}
form select:focus {
}
form select:focus {
border-color: #d3ebff;
box-shadow: 0 0 1px 3px #1f2c3d;
box-shadow: 0 0 0 3px -moz-mac-focusring;
color: #1f2c3d;
outline: none;
}
form select option {
font-weight:normal;
}
}
form select option {
font-weight: normal;
}
/* Preformatted Text */
pre {

View File

@ -690,11 +690,11 @@ textarea {
form select {
display: inline-block;
font-size: 15px;
font-weight: 400;
font-size: 14px;
font-weight: 400px;
color: #1f2c3d;
line-height: 1.3;
padding: .4em 1.4em .3em .8em;
padding: .3em 1.4em .3em .4em;
width: 75px;
max-width: 100%;
box-sizing: border-box;
@ -721,7 +721,7 @@ form select:focus {
outline: none;
}
form select option {
font-weight:normal;
font-weight: normal;
}

View File

@ -2,8 +2,6 @@
//General Config File:
require_once('../assets/php/config.php');
//echo $_POST["session_id"];
//Purchase form:
require_once('includes/formPurchase.php');
$form = new FormPurchase();

View File

@ -20,7 +20,7 @@ class FormPurchase extends Form {
parent::__construct('formPurchase');
$sessionDAO = new SessionDAO("complucine");
$this->session = $sessionDAO->sessionData($_POST["session_id"]);
$this->session = $sessionDAO->sessionData($_POST["sessions"]);
$filmDAO = new Film_DAO("complucine");
$this->film = $filmDAO->FilmData($this->session->getIdfilm());
@ -68,7 +68,7 @@ class FormPurchase extends Form {
<fieldset id='pagar_entrada'><pre>".$htmlErroresGlobales."</pre>
<legend>Datos Bancarios</legend>
<label for='card-holder'>Titular de la Tarjeta:</label><br />
<input type='text' id='card-holder' class='card-holder' required />
<input type='text' id='card-holder' class='card-holder' placeholder='NOMBRE APELLIDO1 APELLIDO2' required />
<br />
<label for='card-number'>Número de Tarjeta: </label><br />
<input type='num' id='card-number-0' class='input-cart-number' placeholder='XXXX' maxlength='4' required />

View File

@ -35,7 +35,7 @@
$cinemasIT->attachIterator($cinemasIDs, "cID");
$cinemasIT->attachIterator($cinemasNames, "NAME");
$cinemasListHTML = '<select name="cinemas">';
$cinemasListHTML = '<form><select name="cinemas" id="cinemas">';
foreach($cinemasIT as $value){
if($value == reset($cinemasIT)){
$cinemasListHTML .= '<option value="'.$value["cID"].'" selected>'.$value["NAME"].'</option>';
@ -43,9 +43,9 @@
$cinemasListHTML .='<option value="'.$value["cID"].'">'.$value["NAME"].'</option>';
}
}
$cinemasListHTML .= '</select>';
$cinemasListHTML .= '</select></form>';
} else {
$cinemasListHTML = '<select name="cinemas"><option value="" selected>No hay cines disponibles para esta película.</option></select>';
$cinemasListHTML = '<select name="cinemas"><option value="" selected>No hay cines disponibles para esta película.</option></select></form>';
}
$fiml_id = $film->getId();
@ -71,25 +71,34 @@
$sessionsIT->attachIterator($sessionsHalls, "HALL");
$sessionsIT->attachIterator($sessionsStarts, "HOUR");
$sessionsListHTML = '<select name="sessions">';
$count = 0;
$sessionsListHTML = '<form action="confirm.php" method="post">';
$sessionsListHTML .= '<select name="sessions" id="sessions">';
foreach ($sessionsIT as $value) {
if($TODAY <= $value["DATE"]){
if($value === reset($sessionsIT)){
$sessionsListHTML .= '<option value="'.$value["sID"].'" selected>Fecha: '.$value["DATE"].' || Hora: '.$value["HOUR"].' || Sala: '.$value["HALL"].'</option>';
$sessionsListHTML .= '<option value="'.$value["sID"].'" >Fecha: '.$value["DATE"].' | Hora: '.$value["HOUR"].' | Sala: '.$value["HALL"].'</option>';
} else {
$sessionsListHTML .='<option value="'.$value["sID"].'">Fecha: '.$value["DATE"].' || Hora:'.$value["HOUR"].' || Sala: '.$value["HALL"].'</option>';
$sessionsListHTML .='<option value="'.$value["sID"].'">Fecha: '.$value["DATE"].' | Hora:'.$value["HOUR"].' | Sala: '.$value["HALL"].'</option>';
}
$count++;
}
}
$sessionsListHTML .= '</select>';
if($count == 0) {
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
$pay = false;
}
} else {
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
$pay = false;
}
$session_id = $value["sID"];
$hall_id = $value["HALL"];
$date_ = $value["DATE"];
$hour_ = $value["HOUR"];
//$session_id = $value["sID"];
//$hall_id = $value["HALL"];
//$date_ = $value["DATE"];
//$hour_ = $value["HOUR"];
//Reply: Depends on whether the purchase is to be made from a selected movie or a cinema.
$reply = '<div class="column left">
@ -121,14 +130,7 @@
//Pay button:
if($pay){
$pay = '<form action="confirm.php" method="post">
<input type="hidden" name="film_id" id="film_id" value='.$fiml_id.' />
<input type="hidden" name="cinema_id" id="cinema_id" value='.$cinema_id.' />
<input type="hidden" name="session_id" id="session_id" value='.$session_id.' />
<input type="hidden" name="hall_id" id="hall_id" value='.$hall_id.' />
<input type="hidden" name="date_" id="date_" value='.$date_.' />
<input type="hidden" name="hour_" id="hour_" value='.$hour_.' />
<input type="submit" id="submit" value="Pagar" />
$pay = '<input type="submit" id="submit" value="Pagar" />
</form>';
}
//Page-specific content: