Files
safekat/ci4/app/Views/themes/backend/focus2/main/menu.php
2023-05-05 15:05:24 +02:00

271 lines
21 KiB
PHP

<?php $menus = getMenuControl(); ?>
<!--Sidebar-->
<div class="quixnav">
<div class="quixnav-scroll">
<ul class="metismenu" id="menu">
<li><a href="<?= site_url("")?>" aria-expanded="false"><i class="fas fa-th-large"></i><span class="nav-text"><?= lang("App.menu_dashboard") ?></span></a></li>
<?php if(allowMenuSection($menus, ['Cliente', 'Tarifacliente'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_clientes") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Cliente')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("clientes/cliente")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_clientes") ?></span></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><a href="<?= site_url("clientes/tarifacliente")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifacliente") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['Paises', 'Calendario', 'Correo', 'Formaspago', 'Imposiciones', 'Maquina', 'Papelgenerico', 'Seriefactura', 'Serviciocliente', 'Tamanioformatos', 'Tamaniolibros', 'Tareaservicio', 'Tiposimpresion', 'Trabajo'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_configuration") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Calendario')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("configuracion/calendario")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_calendario") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
<?php if (count($temp=getArrayItem($menus,'name','Paises')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("configuracion/paises")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_paises") ?></span></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><a href="<?= site_url("configuracion/correo")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_correo") ?></span></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><a href="<?= site_url("configuracion/formaspago")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_formaspago") ?></span></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><a href="<?= site_url("configuracion/imposiciones")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_imposiciones") ?></span></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><a href="<?= site_url("configuracion/maquina")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_maquina") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
<?php if (count($temp=getArrayItem($menus,'name','Papelgenerico')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("configuracion/papelgenerico")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_papelgenerico") ?></span></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><a href="<?= site_url("configuracion/seriefactura")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_seriefactura") ?></span></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><a href="<?= site_url("configuracion/serviciocliente")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_serviciocliente") ?></span></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><a href="<?= site_url("configuracion/tamanioformatos")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tamanioformatos") ?></span></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><a href="<?= site_url("configuracion/tamaniolibros")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tamaniolibros") ?></span></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><a href="<?= site_url("configuracion/tareasservicio")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tareasservicio") ?></span></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><a href="<?= site_url("configuracion/tiposimpresion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tiposimpresion") ?></span></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><a href="<?= site_url("configuracion/trabajo")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_trabajo") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if (count(getArrayItem($menus,'name','Digitalizacion')) > 0): ?>
<li><a href="<?= site_url("serviciosdigitalizacion/digitalizacion")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_digitalizacion") ?></span></a></li>
<?php endif; ?>
<?php if (count(getArrayItem($menus,'name','Logistica')) > 0): ?>
<li><a href="<?= site_url("envioslogistica/logistica")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_logistica") ?></span></a></li>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['Albaran', 'Factura'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_facturación") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Albaran')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("facturacion/albaran")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_albaran") ?></span></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><a href="<?= site_url("facturacion/factura")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_facturas") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if (count(getArrayItem($menus,'name','Informe')) > 0): ?>
<li><a href="<?= site_url("informes/informe")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_informes") ?></span></a></li>
<?php endif; ?>
<?php if (count(getArrayItem($menus,'name','Pedido')) > 0): ?>
<li><a href="<?= site_url("pedidos/pedido")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_pedidos") ?></span></a></li>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['Presupuesto', 'Presupuestomaquetacion'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_presupuestos") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Albaran')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("presupuestos/presupuesto")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_presupuestos") ?></span></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><a href="<?= site_url("presupuestos/presupuestomaquetacion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_presupuestomaquetacion") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['Ordenmaquina', 'Ordentrabajo', 'Ordentrabajomaquetacion', 'Pedidoproduccion'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_produccion") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Ordenmaquina')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("produccion/ordenmaquina")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_ordenmaquina") ?></span></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><a href="<?= site_url("produccion/ordentrabajo")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_ordentrabajo") ?></span></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><a href="<?= site_url("produccion/ordentrabajomaquetacion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_ordentrabajomaquetacion") ?></span></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><a href="<?= site_url("produccion/pedidoproduccion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_pedidoproduccion") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if (count(getArrayItem($menus,'name','Proveedor')) > 0): ?>
<li><a href="<?= site_url("proveedores/proveedor")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_proveedores") ?></span></a></li>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['Tarifaacabado', 'Tarifaenvio', 'Tarifaimpresion', 'Tarifamanipulado', 'Tarifapapelcompra', 'Tarifapapeldefecto', 'Tarifapreimpresion'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_tarifas") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','Tarifaacabado')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("tarifas/tarifaacabado")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifaacabado") ?></span></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><a href="<?= site_url("tarifas/tarifaenvio")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifaenvio") ?></span></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><a href="<?= site_url("tarifas/tarifaimpresion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifaimpresion") ?></span></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><a href="<?= site_url("tarifas/tarifamanipulado")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifamanipulado") ?></span></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><a href="<?= site_url("tarifas/tarifapapelcompra")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifapapelcompra") ?></span></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><a href="<?= site_url("tarifas/tarifapapeldefecto")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifapapeldefecto") ?></span></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><a href="<?= site_url("tarifas/tarifapreimpresion")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_tarifapreimpresion") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if(allowMenuSection($menus, ['User', 'Group'], 'index')): ?>
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="icon-arrow-down"></i><span class="nav-text"><?= lang("App.menu_users") ?></span></a>
<ul aria-expanded="false">
<?php if (count($temp=getArrayItem($menus,'name','User')) > 0): ?>
<?php if (count(getArrayItem($temp,'methods','index',true)) > 0): ?>
<li><a href="<?= site_url("usuarios/user")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_users") ?></span></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><a href="<?= site_url("usuarios/group")?>" aria-expanded="false"><i class="icon-list"></i><span class="nav-text"><?= lang("App.menu_permission_group") ?></span></a></li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<!---
<?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>
--->
<?php if (count(getArrayItem($menus,'name','Activity')) > 0): ?>
<li><a href="<?= site_url("activity")?>" aria-expanded="false"><i class="fas fa-list"></i><span class="nav-text"><?= lang("App.menu_activity") ?></span></a></li>
<?php endif; ?>
<li><a href="<?= site_url("login/logout")?>" aria-expanded="false"><i class="fas fa-sign-out-alt"></i><span class="nav-text"><?= lang("App.menu_logout") ?></span></a></li>
</ul>
</div>
</div>