Correxiones sintaxis

This commit is contained in:
2025-07-08 09:05:48 -06:00
parent 1a5ed8b65d
commit 91b6806898
8 changed files with 166 additions and 144 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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): ?>