mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
593 lines
34 KiB
PHP
593 lines
34 KiB
PHP
<?php $menus = getMenuControl(); ?>
|
|
|
|
<!-- Menu -->
|
|
<aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
|
|
<div class="app-brand">
|
|
<a href="<?= site_url('home') ?>" class="app-brand-link">
|
|
<span class="app-brand-logo">
|
|
<img src="<?= site_url('themes/vuexy/img/branding/logo.png') ?>" width="150px">
|
|
</span>
|
|
</a>
|
|
<a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
|
|
<i class="ti menu-toggle-icon d-none d-xl-block ti-sm align-middle"></i>
|
|
<i class="ti ti-x d-block d-xl-none ti-sm align-middle"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="menu-inner-shadow"></div>
|
|
|
|
<ul class="menu-inner py-1">
|
|
|
|
<li class="menu-item active">
|
|
<a href="<?= site_url("") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-smart-home"></i>
|
|
<div data-i18n="<?= lang("App.menu_dashboard") ?>"><?= lang("App.menu_dashboard") ?></div>
|
|
</a>
|
|
</li>
|
|
|
|
<?php if (allowMenuSection($menus, ['Cliente', 'Tarifacliente'], 'index')): ?>
|
|
<!-- Clientes -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-users"></i>
|
|
<div data-i18n="<?= lang("App.menu_clientes") ?>"><?= lang("App.menu_clientes") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Cliente')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("clientes/cliente") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_clientes") ?>"><?= lang("App.menu_clientes") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifacliente')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("clientes/tarifacliente") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifacliente") ?>"><?= lang("App.menu_tarifacliente") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (allowMenuSection($menus,
|
|
['Calendario', 'Correo', 'Formaspago', 'Imposiciones', 'Tipologias',
|
|
'Maquina', 'Papelesgenerico', 'Papelesimpresion', 'Seriefactura', 'Serviciocliente',
|
|
'Tamanioformatos', 'Tamaniolibros', 'Tareaservicio', 'Tiposimpresion', 'Trabajo'
|
|
],
|
|
'index')): ?>
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-users"></i>
|
|
<div data-i18n="<?= lang("App.menu_configuration") ?>"><?= lang("App.menu_configuration") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Calendario')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/calendario") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_calendario") ?>"><?= lang("App.menu_calendario") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Correo')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/correo") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_correo") ?>"><?= lang("App.menu_correo") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Formaspago')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/formaspago") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_formaspago") ?>"><?= lang("App.menu_formaspago") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Imposiciones')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/imposiciones") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_imposiciones") ?>"><?= lang("App.menu_imposiciones") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tipologias')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/tipologias") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tipologias") ?>"><?= lang("App.menu_tipologias") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Maquina')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/maquina") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_maquina") ?>"><?= lang("App.menu_maquina") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Papelesgenericos')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/papelesgenericos") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_papelgenerico") ?>"><?= lang("App.menu_papelgenerico") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Papelesimpresion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/papelesimpresion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_papelimpresion") ?>"><?= lang("App.menu_papelimpresion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Seriefactura')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/seriefactura") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_seriefactura") ?>"><?= lang("App.menu_seriefactura") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Serviciocliente')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/serviciocliente") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_serviciocliente") ?>"><?= lang("App.menu_serviciocliente") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tamanioformatos')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/tamanioformatos") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tamanioformatos") ?>"><?= lang("App.menu_tamanioformatos") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tamaniolibros')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/tamaniolibros") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tamaniolibros") ?>"><?= lang("App.menu_tamaniolibros") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tareasservicio')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/tareasservicio") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tareasservicio") ?>"><?= lang("App.menu_tareasservicio") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tiposimpresion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/tiposimpresion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tiposimpresion") ?>"><?= lang("App.menu_tiposimpresion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Trabajo')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("configuracion/trabajo") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_trabajo") ?>"><?= lang("App.menu_trabajo") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU DIGITALIZACIÓN
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Digitalizacion')) > 0): ?>
|
|
<!-- Digitalization -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("serviciosdigitalizacion/digitalizacion") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_digitalizacion") ?>"><?= lang("App.menu_digitalizacion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
/**
|
|
* MENU LOGISTICA
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Logistica')) > 0): ?>
|
|
<!-- Logistic -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("envioslogistica/logistica") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div class="<?= lang("App.menu_logistica") ?>"><?= lang("App.menu_logistica") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU FACTURACION
|
|
*/
|
|
if (allowMenuSection($menus, ['Albaran', 'Factura'], 'index')): ?>
|
|
<!-- Invoicing -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_facturación") ?>"><?= lang("App.menu_facturación") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Albaran')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("facturacion/albaran") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_albaran") ?>"><?= lang("App.menu_albaran") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Factura')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("facturacion/factura") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_facturas") ?>"><?= lang("App.menu_facturas") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU INFORMES
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Informe')) > 0): ?>
|
|
<!-- Informs -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("informes/informe") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_informes") ?>"><?= lang("App.menu_informes") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU PEDIDO
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Pedido')) > 0): ?>
|
|
<!-- Orders -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("pedidos/pedido") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_pedidos") ?>"><?= lang("App.menu_pedidos") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU PRESUPUESTO
|
|
*/
|
|
if (allowMenuSection($menus, ['Presupuesto', 'Presupuestomaquetacion'], 'index')): ?>
|
|
<!-- Budgets -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_presupuestos") ?>"><?= lang("App.menu_presupuestos") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Albaran')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("presupuestos/presupuesto") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_presupuestos") ?>"><?= lang("App.menu_presupuestos") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Factura')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("presupuestos/presupuestomaquetacion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_presupuestomaquetacion") ?>"><?= lang("App.menu_presupuestomaquetacion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU PRODUCCION
|
|
*/
|
|
if
|
|
(allowMenuSection($menus, ['Ordenmaquina', 'Ordentrabajo', 'Ordentrabajomaquetacion', 'Pedidoproduccion'], 'index')): ?>
|
|
<!-- Production -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_produccion") ?>"><?= lang("App.menu_produccion") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Ordenmaquina')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("produccion/ordenmaquina") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_ordenmaquina") ?>"><?= lang("App.menu_ordenmaquina") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Ordentrabajo')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("produccion/ordentrabajo") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_ordentrabajo") ?>"><?= lang("App.menu_ordentrabajo") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Ordentrabajomaquetacion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("produccion/ordentrabajomaquetacion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_ordentrabajomaquetacion") ?>"><?= lang("App.menu_ordentrabajomaquetacion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Pedidoproduccion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("produccion/pedidoproduccion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_pedidoproduccion") ?>"><?= lang("App.menu_pedidoproduccion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU PROVEEDORES
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Proveedor')) > 0): ?>
|
|
<!-- Providers -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("proveedores/proveedor") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_proveedores") ?>"><?= lang("App.menu_proveedores") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU TARIFAS
|
|
*/
|
|
if (allowMenuSection($menus,
|
|
['Tarifaacabado', 'Tarifaenvio', 'Tarifaimpresion', 'Tarifamanipulado',
|
|
'Tarifapapelcompra', 'Tarifapapeldefecto', 'Tarifapreimpresion'
|
|
], 'index')): ?>
|
|
<!-- Prices -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_tarifas") ?>"><?= lang("App.menu_tarifas") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifaacabado')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifaacabado") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifaacabado") ?>"><?= lang("App.menu_tarifaacabado") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifaenvio')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifaenvio") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifaenvio") ?>"><?= lang("App.menu_tarifaenvio") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifaimpresion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifaimpresion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifaimpresion") ?>"><?= lang("App.menu_tarifaimpresion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifamanipulado')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifamanipulado") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifamanipulado") ?>"><?= lang("App.menu_tarifamanipulado") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifapapelcompra')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifapapelcompra") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifapapelcompra") ?>"><?= lang("App.menu_tarifapapelcompra") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifapapeldefecto')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifapapeldefecto") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifapapeldefecto") ?>"><?= lang("App.menu_tarifapapeldefecto") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Tarifapreimpresion')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("tarifas/tarifapreimpresion") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_tarifapreimpresion") ?>"><?= lang("App.menu_tarifapreimpresion") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU USUARIOS
|
|
*/
|
|
if (allowMenuSection($menus, ['Users', 'Group'], 'index')): ?>
|
|
<!-- Users -->
|
|
<li class="menu-item">
|
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
|
<i class="menu-icon tf-icons ti ti-file-dollar"></i>
|
|
<div data-i18n="<?= lang("App.menu_users") ?>"><?= lang("App.menu_users") ?></div>
|
|
</a>
|
|
<ul class="menu-sub">
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Users')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("usuarios/users") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_users") ?>"><?= lang("App.menu_users") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if (count($temp = getArrayItem($menus, 'name', 'Group')) > 0): ?>
|
|
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("usuarios/group") ?>" class="menu-link">
|
|
<div data-i18n="<?= lang("App.menu_permission_group") ?>"><?= lang("App.menu_permission_group") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU ACTIVIDAD
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Activity')) > 0): ?>
|
|
<!-- Activity -->
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("activity") ?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-article""></i>
|
|
<div data-i18n="<?= lang("App.menu_activity") ?>"><?= lang("App.menu_activity") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
/**
|
|
* MENU AJUSTES
|
|
*/
|
|
if (count(getArrayItem($menus, 'name', 'Settings')) > 0): ?>
|
|
<!-- Settings -->
|
|
<li class="menu-header small text-uppercase">
|
|
<span class="menu-header-text">Ajustes del Sistema</span>
|
|
</li>
|
|
<li class="menu-item">
|
|
<a href="<?= site_url("settings")?>" class="menu-link">
|
|
<i class="menu-icon tf-icons ti ti-settings""></i>
|
|
<div data-i18n="<?= lang("App.menu_settings") ?>"><?= lang("App.menu_settings") ?></div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
</ul>
|
|
</aside>
|
|
<!-- / Menu -->
|
|
|
|
<?php /*
|
|
|
|
|
|
<!--Sidebar-->
|
|
<div class="quixnav">
|
|
<div class="quixnav-scroll">
|
|
<ul class="metismenu" id="menu">
|
|
|
|
<!---
|
|
<?php if (count(getArrayItem($menus,'name','Notification')) > 0): ?>
|
|
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="fas fa-bell"></i><span class="nav-text"><?= lang("App.menu_notification") ?></span></a>
|
|
<ul aria-expanded="false">
|
|
<?php if (count(getArrayItem($menus,'methods','index',true)) > 0): ?>
|
|
<li><a href="<?= site_url("notification")?>"><?= lang("App.menu_list") ?></a></li>
|
|
<?php endif; ?>
|
|
<?php if (count(getArrayItem($menus,'methods','add',true)) > 0): ?>
|
|
<li><a href="<?= site_url("notification/add")?>"><?= lang("App.menu_add") ?></a></li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (count(getArrayItem($menus,'name','Settings')) > 0): ?>
|
|
<li class="nav-label"><?= lang("App.menu_settings") ?></li>
|
|
<?php if (count(getArrayItem($menus,'methods','index',true)) > 0): ?>
|
|
<li><a href="<?= site_url("settings")?>" aria-expanded="false"><i class="fas fa-sliders-h"></i><span class="nav-text"><?= lang("App.menu_general") ?></span></a></li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (count(getArrayItem($menus,'methods','template',true)) > 0): ?>
|
|
<li><a href="<?= site_url("settings/template")?>" aria-expanded="false"><i class="fas fa-mail-bulk"></i><span class="nav-text"><?= lang("App.menu_template") ?></span></a></li>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<li class="nav-label"></li>
|
|
--->
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
*/
|
|
?>
|