Correxiones sintaxis
This commit is contained in:
@@ -89,13 +89,13 @@
|
||||
<?php foreach ($agencias as $ag): ?>
|
||||
<tr>
|
||||
<td><?= $ag['id_agencia'] ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($ag['nombre_agencia'])) ?></td>
|
||||
<td><?= htmlspecialchars($ag['rfc_agencia']) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($ag['email'])) ?></td>
|
||||
<td><?= htmlspecialchars($ag['telefono']) ?></td>
|
||||
<td><?= htmlspecialchars($ag['direccion']) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($ag['nombre_agencia'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars($ag['rfc_agencia'] ?? '') ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($ag['email'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars($ag['telefono'] ?? '') ?></td>
|
||||
<td><?= htmlspecialchars($ag['direccion'] ?? '') ?></td>
|
||||
<td><?= $ag['creado_en'] ? $ag['creado_en']->format('Y-m-d H:i') : '' ?></td>
|
||||
<td><?= htmlspecialchars($ag['id_administrador']) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($ag['nombre_admin'] ?? '')) ?></td>
|
||||
<td>
|
||||
<?php if (isset($ag['activo']) && $ag['activo'] == 1): ?>
|
||||
<a href="/IMPORTADORES/administrador/suspenderAgencia?id=<?= $ag['id_agencia'] ?>&success=1" class="btn btn-sm btn-danger mt-auto w-auto btn-animated">Suspender</a>
|
||||
|
||||
@@ -193,18 +193,18 @@
|
||||
</div>
|
||||
<div class="col-md-2 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<input name="password" type="password" class="form-control form-control input-pulse input-ripple" id="password" placeholder=" " required>
|
||||
<input name="password" type="password" class="form-control input-pulse input-ripple" id="password" placeholder=" " required>
|
||||
<label for="password" class="form-label">Contraseña *</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<select name="tipo_usuario" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required>
|
||||
<option value="">Tipo</option>
|
||||
<select name="tipo_usuario" id="tipo" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required>
|
||||
<option value=""></option>
|
||||
<option value="super_admin">Administrador General</option>
|
||||
<option value="importador">Importador</option>
|
||||
</select>
|
||||
<label for="tipo_usuario" class="form_label"></label>
|
||||
<label for="tipo" class="form-label">Tipo</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -233,10 +233,10 @@
|
||||
<?php foreach ($usuarios as $u): ?>
|
||||
<tr>
|
||||
<td><?= $u['id_usuario'] ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre'])) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['email'])) ?></td>
|
||||
<td><?= htmlspecialchars($u['tipo_usuario']) ?></td>
|
||||
<td><?= htmlspecialchars($u['creado_por']) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['email'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars($u['tipo_usuario'] ?? '') ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre_creador'] ?? '')) ?></td>
|
||||
<td><?= isset($u['creado_en']) && $u['creado_en'] instanceof DateTime ? $u['creado_en']->format('Y-m-d H:i') : '' ?></td>
|
||||
<td>
|
||||
<?php if (isset($u['activo']) && $u['activo'] == 1): ?>
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
// Script para manejar las animaciones de validación
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const inputs = document.querySelectorAll('.form-control');
|
||||
const inputs = document.querySelectorAll('input.form-control, select.form_select');
|
||||
|
||||
inputs.forEach(input => {
|
||||
// Validación en tiempo real
|
||||
|
||||
@@ -88,10 +88,10 @@
|
||||
<?php foreach ($usuarios as $u): ?>
|
||||
<tr>
|
||||
<td><?= $u['id_usuario'] ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre'])) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['email'])) ?></td>
|
||||
<td><?= htmlspecialchars($u['tipo_usuario']) ?></td>
|
||||
<td><?= htmlspecialchars($u['creado_por']) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['email'] ?? '')) ?></td>
|
||||
<td><?= htmlspecialchars($u['tipo_usuario'] ?? '') ?></td>
|
||||
<td><?= htmlspecialchars(decrypt($u['nombre_creador'] ?? '')) ?></td>
|
||||
<td><?= isset($u['creado_en']) && $u['creado_en'] instanceof DateTime ? $u['creado_en']->format('Y-m-d H:i') : '' ?></td>
|
||||
<td>
|
||||
<?php if (isset($u['activo']) && $u['activo'] == 0): ?>
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 form-group-animated">
|
||||
<label for="" class="form-label">Transportista *</label>
|
||||
<label for="" class="form-label">Transportista</label>
|
||||
<div class="form-floating-custom">
|
||||
<select name="id_transportista" id="transportista" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required>
|
||||
<option value=""></option>
|
||||
@@ -218,7 +218,7 @@
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<label for="trasportista" class="form-label">Transportista *</label>
|
||||
<label for="trasportista" class="form-label">Transportista</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -222,12 +222,12 @@
|
||||
<div class="col-md-4 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<select id="pais" name="pais" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required>
|
||||
<option value="">Selecciona país</option>
|
||||
<option value=""></option>
|
||||
<?php foreach($paises as $p): ?>
|
||||
<option value="<?= $p['id_pais'] ?>"><?= htmlspecialchars($p['nombre']) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<label for="pais" class="form-label">País *</label>
|
||||
<label for="pais" class="form-label">País</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
<select id="entidad" name="entidad" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required disabled>
|
||||
<option value="">Primero país…</option>
|
||||
</select>
|
||||
<label for="entidad" class="form-label">Entidad *</label>
|
||||
<label for="entidad" class="form-label">Entidad</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -245,11 +245,11 @@
|
||||
<select id="ciudad" name="ciudad" class="form-select select-pulse select-gradient select-arrow-rotate select-status" required disabled>
|
||||
<option value="">Primero estado…</option>
|
||||
</select>
|
||||
<label for="ciudad" class="form-label">Ciudad *</label>
|
||||
<label for="ciudad" class="form-label">Ciudad</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8 form-group-animated">
|
||||
<div class="col-md-12 form-group-animated">
|
||||
<div class="form-floating-custom">
|
||||
<input name="domicilio" id="domicilio" type="text" class="form-control input-pulse input-gradient" maxlength="100" placeholder=" " required>
|
||||
<label for="domicilio" class="form-label">Domicilio *</label>
|
||||
@@ -373,7 +373,7 @@
|
||||
fetch(`/IMPORTADORES/transportistas/estados?pais=${pid}`)
|
||||
.then(r => { if (!r.ok) throw new Error('Error al cargar estados'); return r.json(); })
|
||||
.then(list => {
|
||||
estadoSelect.innerHTML = '<option value="">Selecciona estado</option>';
|
||||
estadoSelect.innerHTML = '<option value=""></option>';
|
||||
list.forEach(st => estadoSelect.add(new Option(st.nombre, st.id_estado)));
|
||||
estadoSelect.disabled = false;
|
||||
})
|
||||
@@ -392,7 +392,7 @@
|
||||
fetch(`/IMPORTADORES/transportistas/ciudades?estado=${eid}`)
|
||||
.then(r => { if (!r.ok) throw new Error('Error al cargar ciudades'); return r.json(); })
|
||||
.then(list => {
|
||||
ciudadSelect.innerHTML = '<option value="">Selecciona ciudad</option>';
|
||||
ciudadSelect.innerHTML = '<option value=""></option>';
|
||||
list.forEach(ct => ciudadSelect.add(new Option(ct.nombre, ct.id_ciudad)));
|
||||
ciudadSelect.disabled = false;
|
||||
})
|
||||
@@ -423,7 +423,7 @@
|
||||
});
|
||||
// Script para manejar las animaciones de validación
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const inputs = document.querySelectorAll('.form-control');
|
||||
const inputs = document.querySelectorAll('input.form-control, select.form_select');
|
||||
|
||||
inputs.forEach(input => {
|
||||
// Validación en tiempo real
|
||||
|
||||
Reference in New Issue
Block a user