Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-27 18:01:24 +02:00
committed by GitHub
parent d9992fde93
commit 6e18e93fc2
8 changed files with 313 additions and 54 deletions

View File

@@ -701,7 +701,7 @@ form select {
font-weight: 400px;
color: #1f2c3d;
line-height: 1.3;
padding: .3em 1.4em .3em .4em;
padding: 0.2em 0.2em 0.2em 0.2em;
width: 75px;
max-width: 100%;
box-sizing: border-box;

View File

@@ -694,7 +694,7 @@ form select {
font-weight: 400px;
color: #1f2c3d;
line-height: 1.3;
padding: .3em 1.4em .3em .4em;
padding: 0.2em 0.2em 0.2em 0.2em;
width: 75px;
max-width: 100%;
box-sizing: border-box;

View File

@@ -101,7 +101,7 @@ table.seat td:first-child {
pointer-events: none;
}
.tablelist li:nth-child(3n+)
.tablelist li:nth-child(3n)
{
clear: both;
}

47
assets/js/selectTicket.js Normal file
View File

@@ -0,0 +1,47 @@
// Método 1: recargar la página y enviar un GET.
window.onload = function(){
var select = document.getElementById("select_cinema");
select.onchange = function(){
location.href += "&cinema=" + $('select[id=cinemas]').val();
}
}
// Método 2: enviar una petición AJAX con POST. (NO FUNCIONA)
/*
$(document).ready(function(){
$("#select_cinema_session").change(function(){
var cinema = $('select[id=cinemas]').val();
//console.log($('select[id=cinemas]').val());
$.ajax({
url : 'index.php',
type : 'POST',
dataType : 'text',
data : 'cinema='+cinema,
cache : false,
async : false,
success: function(data){
$("cinemas option").remove();
$("cinemas").append(data);
console.log(cinema);
},
error: function(response)
{
console.log(response + ' ==> Error al seleccionar el cine')
}
});
});
});
*/
//Método 3: enviar una petición AJAX con GET. (NO FUNCIONA)
/*
$(document).ready(function(){
$("#select_cinema_session").change(function(){
var cinema = $('select[id=cinemas]').val();
//console.log($('select[id=cinemas]').val());
$.get(window.location + "?cinema=" + cinema, function(data,status){
console.log(cinema);
});
});
});
*/

View File

@@ -701,6 +701,7 @@
";
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";
if($page === "Comprar Entrada") echo"<script type='text/javascript' src='{$prefix}assets/js/selectTicket.js' ></script>\n";
}
}