Add files via upload
This commit is contained in:
@ -373,13 +373,19 @@
|
||||
.code.purchase {
|
||||
text-align: center;
|
||||
}
|
||||
.code.purchase h3 {
|
||||
margin-top: 2em;
|
||||
}
|
||||
.code.purchase img {
|
||||
margin: 0.1em 0 0.8em 0;
|
||||
width: 100%;
|
||||
box-shadow: 0 4px 8px 0 #00020f, 0 6px 20px 0 #00020f;
|
||||
box-shadow: 0 4px 8px 0 #d3ebff, 0 6px 20px 0 #d3ebff;
|
||||
}
|
||||
.code.purchase select, .code.purchase select option {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
margin: 0.1em 0.5em 1em 0.5em;
|
||||
font-weight: bold !important;
|
||||
color: #1f2c3d !important;
|
||||
background-color: #d3ebff;
|
||||
@ -678,6 +684,53 @@
|
||||
.file input{
|
||||
height: 110%;
|
||||
}
|
||||
|
||||
.card-holder {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
.input-cart-number, .fieldset-cvv, .select {
|
||||
width: 70px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
form select {
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #1f2c3d;
|
||||
line-height: 1.3;
|
||||
padding: .4em 1.4em .3em .8em;
|
||||
width: 75px;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin: 10px auto;
|
||||
border: 1px solid #d3ebff;
|
||||
box-shadow: 0 1px 0 1px #1f2c3d;
|
||||
border-radius: .3em;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
background-color: #fff;
|
||||
}
|
||||
form select::-ms-expand {
|
||||
display: none;
|
||||
}
|
||||
form select:hover {
|
||||
border-color: #d3ebff;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/* Preformatted Text */
|
||||
pre {
|
||||
|
@ -371,13 +371,19 @@ main img {
|
||||
.code.purchase {
|
||||
text-align: center;
|
||||
}
|
||||
.code.purchase h3 {
|
||||
margin-top: 2em;
|
||||
}
|
||||
.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 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
margin: 0.1em 0.5em 1em 0.5em;
|
||||
font-weight: bold !important;
|
||||
color: #1f2c3d !important;
|
||||
background-color: #d3ebff;
|
||||
@ -664,6 +670,7 @@ textarea {
|
||||
border:#000000;
|
||||
background-color: #791515;
|
||||
}
|
||||
|
||||
.file{
|
||||
margin-top: 10px;
|
||||
}
|
||||
@ -671,6 +678,53 @@ textarea {
|
||||
height: 110%;
|
||||
}
|
||||
|
||||
.card-holder {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
.input-cart-number, .fieldset-cvv, .select {
|
||||
width: 70px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
form select {
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #1f2c3d;
|
||||
line-height: 1.3;
|
||||
padding: .4em 1.4em .3em .8em;
|
||||
width: 75px;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin: 10px auto;
|
||||
border: 1px solid #d3ebff;
|
||||
box-shadow: 0 1px 0 1px #1f2c3d;
|
||||
border-radius: .3em;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
background-color: #fff;
|
||||
}
|
||||
form select::-ms-expand {
|
||||
display: none;
|
||||
}
|
||||
form select:hover {
|
||||
border-color: #d3ebff;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/* Preformatted Text */
|
||||
pre {
|
||||
font-weight: bold;
|
||||
@ -680,6 +734,7 @@ fieldset pre {
|
||||
color: red;
|
||||
}
|
||||
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
text-align: left;
|
||||
|
3
assets/js/deleteConfirm.js
Normal file
3
assets/js/deleteConfirm.js
Normal file
@ -0,0 +1,3 @@
|
||||
function newWindow(page){
|
||||
window.open(page, 'Ventana de Confirmación', 'width=500, height=300');
|
||||
}
|
@ -44,7 +44,14 @@
|
||||
public function cinemaData($id){
|
||||
$sql = sprintf( "SELECT * FROM cinema WHERE cinema.id = '%d'", $id);
|
||||
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
||||
return $resul;
|
||||
|
||||
$cinema = null;
|
||||
while($fila=$resul->fetch_assoc()){
|
||||
$cinema = $this->loadCinema($fila["id"], $fila["name"], $fila["direction"], $fila["phone"]);
|
||||
}
|
||||
$resul->free();
|
||||
|
||||
return $cinema;
|
||||
}
|
||||
|
||||
//Deleted film by "id".
|
||||
|
@ -120,24 +120,6 @@
|
||||
|
||||
return $cinemas;
|
||||
}
|
||||
|
||||
//Get sessions associated with a film.
|
||||
public function getSessions($id){
|
||||
include_once('session_dao.php');
|
||||
$session = new SessionDAO("complucine");
|
||||
|
||||
$sql = sprintf( " SELECT DISTINCT * FROM session WHERE session.id in
|
||||
(SELECT session.id 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');
|
||||
|
||||
$sessions = null;
|
||||
while($fila = $resul->fetch_assoc()){
|
||||
$sessions[] = $session->loadSession($fila["id"], $fila["idfilm"], $fila["idhall"], $fila["idcinema"], $fila["date"], $fila["start_time"], $fila["seat_price"], $fila["format"], $fila["seats_full"]);
|
||||
}
|
||||
$resul->free();
|
||||
|
||||
return $sessions;
|
||||
}
|
||||
|
||||
//Create a new film Data Transfer Object.
|
||||
public function loadFilm($id, $tittle, $duration, $language,$description, $img){
|
||||
|
@ -79,6 +79,19 @@
|
||||
|
||||
return $sessions;
|
||||
}
|
||||
|
||||
public function getSessions_Film_Cinema($idFiml, $idCinema){
|
||||
$sql = sprintf( "SELECT * FROM session WHERE session.idfilm = '%d' AND session.idcinema = '%d' ", $idFiml, $idCinema);
|
||||
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
||||
|
||||
$sessions = null;
|
||||
while($fila = $resul->fetch_assoc()){
|
||||
$sessions[] = $this->loadSession($fila["id"], $fila["idfilm"], $fila["idhall"], $fila["idcinema"], $fila["date"], $fila["start_time"], $fila["seat_price"], $fila["format"], $fila["seats_full"]);
|
||||
}
|
||||
$resul->free();
|
||||
|
||||
return $sessions;
|
||||
}
|
||||
|
||||
public function editSession($idfilm, $idhall, $idcinema, $date, $startTime, $seatPrice, $format, $origin){
|
||||
$format = $this->mysqli->real_escape_string($format);
|
||||
|
@ -690,6 +690,7 @@
|
||||
<script type='text/javascript' src='{$prefix}assets/js/checkForms.js'></script>
|
||||
";
|
||||
if($page === "FDI-Cines") echo"<script type='text/javascript' src='{$prefix}assets/js/promotions.js' ></script>\n";
|
||||
if($page === "Panel de Usuario") echo"<script type='text/javascript' src='{$prefix}assets/js/deleteConfirm.js' ></script>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user