Add files via upload
This commit is contained in:
parent
4d1eb61a1e
commit
11e4339a04
@ -697,11 +697,11 @@
|
|||||||
|
|
||||||
form select {
|
form select {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400px;
|
||||||
color: #1f2c3d;
|
color: #1f2c3d;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
padding: .4em 1.4em .3em .8em;
|
padding: .3em 1.4em .3em .4em;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -731,7 +731,6 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Preformatted Text */
|
/* Preformatted Text */
|
||||||
pre {
|
pre {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -690,11 +690,11 @@ textarea {
|
|||||||
|
|
||||||
form select {
|
form select {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400px;
|
||||||
color: #1f2c3d;
|
color: #1f2c3d;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
padding: .4em 1.4em .3em .8em;
|
padding: .3em 1.4em .3em .4em;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
//General Config File:
|
//General Config File:
|
||||||
require_once('../assets/php/config.php');
|
require_once('../assets/php/config.php');
|
||||||
|
|
||||||
//echo $_POST["session_id"];
|
|
||||||
|
|
||||||
//Purchase form:
|
//Purchase form:
|
||||||
require_once('includes/formPurchase.php');
|
require_once('includes/formPurchase.php');
|
||||||
$form = new FormPurchase();
|
$form = new FormPurchase();
|
||||||
|
@ -20,7 +20,7 @@ class FormPurchase extends Form {
|
|||||||
parent::__construct('formPurchase');
|
parent::__construct('formPurchase');
|
||||||
|
|
||||||
$sessionDAO = new SessionDAO("complucine");
|
$sessionDAO = new SessionDAO("complucine");
|
||||||
$this->session = $sessionDAO->sessionData($_POST["session_id"]);
|
$this->session = $sessionDAO->sessionData($_POST["sessions"]);
|
||||||
|
|
||||||
$filmDAO = new Film_DAO("complucine");
|
$filmDAO = new Film_DAO("complucine");
|
||||||
$this->film = $filmDAO->FilmData($this->session->getIdfilm());
|
$this->film = $filmDAO->FilmData($this->session->getIdfilm());
|
||||||
@ -68,7 +68,7 @@ class FormPurchase extends Form {
|
|||||||
<fieldset id='pagar_entrada'><pre>".$htmlErroresGlobales."</pre>
|
<fieldset id='pagar_entrada'><pre>".$htmlErroresGlobales."</pre>
|
||||||
<legend>Datos Bancarios</legend>
|
<legend>Datos Bancarios</legend>
|
||||||
<label for='card-holder'>Titular de la Tarjeta:</label><br />
|
<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 />
|
<br />
|
||||||
<label for='card-number'>Número de Tarjeta: </label><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 />
|
<input type='num' id='card-number-0' class='input-cart-number' placeholder='XXXX' maxlength='4' required />
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
$cinemasIT->attachIterator($cinemasIDs, "cID");
|
$cinemasIT->attachIterator($cinemasIDs, "cID");
|
||||||
$cinemasIT->attachIterator($cinemasNames, "NAME");
|
$cinemasIT->attachIterator($cinemasNames, "NAME");
|
||||||
|
|
||||||
$cinemasListHTML = '<select name="cinemas">';
|
$cinemasListHTML = '<form><select name="cinemas" id="cinemas">';
|
||||||
foreach($cinemasIT as $value){
|
foreach($cinemasIT as $value){
|
||||||
if($value == reset($cinemasIT)){
|
if($value == reset($cinemasIT)){
|
||||||
$cinemasListHTML .= '<option value="'.$value["cID"].'" selected>'.$value["NAME"].'</option>';
|
$cinemasListHTML .= '<option value="'.$value["cID"].'" selected>'.$value["NAME"].'</option>';
|
||||||
@ -43,9 +43,9 @@
|
|||||||
$cinemasListHTML .='<option value="'.$value["cID"].'">'.$value["NAME"].'</option>';
|
$cinemasListHTML .='<option value="'.$value["cID"].'">'.$value["NAME"].'</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$cinemasListHTML .= '</select>';
|
$cinemasListHTML .= '</select></form>';
|
||||||
} else {
|
} 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();
|
$fiml_id = $film->getId();
|
||||||
@ -71,25 +71,34 @@
|
|||||||
$sessionsIT->attachIterator($sessionsHalls, "HALL");
|
$sessionsIT->attachIterator($sessionsHalls, "HALL");
|
||||||
$sessionsIT->attachIterator($sessionsStarts, "HOUR");
|
$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) {
|
foreach ($sessionsIT as $value) {
|
||||||
if($TODAY <= $value["DATE"]){
|
if($TODAY <= $value["DATE"]){
|
||||||
if($value === reset($sessionsIT)){
|
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 {
|
} 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>';
|
$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 {
|
} else {
|
||||||
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
|
$sessionsListHTML = '<select name="sessions"><option value="" selected>No hay sesiones disponibles para esta película.</option></select>';
|
||||||
|
$pay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$session_id = $value["sID"];
|
//$session_id = $value["sID"];
|
||||||
$hall_id = $value["HALL"];
|
//$hall_id = $value["HALL"];
|
||||||
$date_ = $value["DATE"];
|
//$date_ = $value["DATE"];
|
||||||
$hour_ = $value["HOUR"];
|
//$hour_ = $value["HOUR"];
|
||||||
|
|
||||||
//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.
|
||||||
$reply = '<div class="column left">
|
$reply = '<div class="column left">
|
||||||
@ -121,14 +130,7 @@
|
|||||||
|
|
||||||
//Pay button:
|
//Pay button:
|
||||||
if($pay){
|
if($pay){
|
||||||
$pay = '<form action="confirm.php" method="post">
|
$pay = '<input type="submit" id="submit" value="Pagar" />
|
||||||
<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" />
|
|
||||||
</form>';
|
</form>';
|
||||||
}
|
}
|
||||||
//Page-specific content:
|
//Page-specific content:
|
||||||
|
Loading…
Reference in New Issue
Block a user