Propuesta Multi-agencia
This commit is contained in:
45
app/controllers/agencias.php
Normal file
45
app/controllers/agencias.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
require_once __DIR__ . '/../helpers/session.php';
|
||||
require_once __DIR__ . '/../../config/database.php';
|
||||
require_once __DIR__ . '/../helpers/crypto.php';
|
||||
require_once __DIR__ . '/../helpers/bitacoras.php';
|
||||
require_once __DIR__ . '/../helpers/env.php';
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
||||
loadEnv();
|
||||
|
||||
function dashboard()
|
||||
{
|
||||
if (!isset($_SESSION['usuario_id']) || $_SESSION['tipo_usuario'] !== 'agente_aduanal') {
|
||||
header("Location: /IMPORTADORES/login");
|
||||
exit;
|
||||
}
|
||||
|
||||
$nombreAgencia = $_SESSION['nombre_agencia'];
|
||||
|
||||
include __DIR__ . '/../../views/agencias/dashboard_agencias.php';
|
||||
}
|
||||
|
||||
function alta()
|
||||
{
|
||||
include __DIR__ . '/../../views/agencias/.php';
|
||||
}
|
||||
|
||||
function alta_agente()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function activos()
|
||||
{
|
||||
include __DIR__ . '/../../views/agencias/usuarios_activos.php';
|
||||
}
|
||||
|
||||
function bitacora()
|
||||
{
|
||||
include __DIR__ . '/../../views/agencias/dashboard_agencias.php';
|
||||
}
|
||||
Reference in New Issue
Block a user