Compare commits
3 Commits
792c1a7d4c
...
17238e1ddd
Author | SHA1 | Date |
---|---|---|
|
17238e1ddd | |
|
4850dee1ad | |
|
d38e4f1387 |
|
@ -11,7 +11,7 @@ require_once 'VendedorController.php';
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
// Conexión a base de datos
|
// Conexión a base de datos
|
||||||
$db = new BaseDatos('localhost:3306', 'root', '481037', 'boletos_db');
|
$db = new BaseDatos('localhost:3306', 'root', 'password', 'boletos_db');
|
||||||
|
|
||||||
// Inicializar el controlador
|
// Inicializar el controlador
|
||||||
$vendedorController = new VendedorController($db);
|
$vendedorController = new VendedorController($db);
|
||||||
|
|
|
@ -16,6 +16,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('../controlador/asientos.php');
|
const response = await fetch('../controlador/asientos.php');
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|
||||||
|
console.log('Datos recibidos:', data); // Agregar este log para ver los datos recibidos
|
||||||
|
|
||||||
|
|
||||||
if (!data.success) {
|
if (!data.success) {
|
||||||
mostrarMensaje('Error al cargar el mapa de asientos', 'error');
|
mostrarMensaje('Error al cargar el mapa de asientos', 'error');
|
||||||
|
@ -31,6 +34,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
// Función para renderizar el mapa de asientos
|
// Función para renderizar el mapa de asientos
|
||||||
function renderizarMapaAsientos(mapa) {
|
function renderizarMapaAsientos(mapa) {
|
||||||
|
console.log('Mapa de asientos:', mapa); // Agregar este log para ver el mapa de asientos
|
||||||
const contenedor = document.getElementById('mapaAsientos');
|
const contenedor = document.getElementById('mapaAsientos');
|
||||||
contenedor.innerHTML = '';
|
contenedor.innerHTML = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue