mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Menu lateral inicial creado
This commit is contained in:
@ -12,8 +12,8 @@ class Cliente extends BaseController
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
{
|
||||
echo "Cliente";
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifacliente extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo "Tarifa Cliente";
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Calendario extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Calendario';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Correo extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Correo';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Formaspago extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Formas de pago';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Imposiciones extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Imposiciones';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Maquina extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Maquina';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Papelgenerico extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Papel genérico';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -4,7 +4,7 @@ namespace App\Controllers\Configuracion;
|
||||
use App\Controllers\BaseController;
|
||||
|
||||
|
||||
class Serie extends BaseController
|
||||
class Seriefactura extends BaseController
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
@ -13,7 +13,7 @@ class Serie extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Serie factura';
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Serviciocliente extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Servicio cliente';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tamanioformatos extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tamaño formatos';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tamaniolibros extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tamaño libros';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tareaservicio extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarea servicio';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tiposimpresion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tipos impresion';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -13,7 +13,7 @@ class Trabajo extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Trabajo';
|
||||
}
|
||||
|
||||
public function edit()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Logistica;
|
||||
namespace App\Controllers\EnviosLogistica;
|
||||
use App\Controllers\BaseController;
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Logistica extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Logistica';
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Albaran extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Albaran';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Factura extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Facturas';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Informe extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Informe';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Pedido extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Pedido';
|
||||
}
|
||||
|
||||
public function delete_files()
|
||||
|
||||
@ -13,7 +13,7 @@ class Presupuesto extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Presupuesto';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Presupuestomaquetacion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Presupuesto maquetacion';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Ordenmaquina extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Orden maquina';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Ordentrabajo extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Orden trabajo';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Ordentrabajomaquetacion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Orden maquetación';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Pedidoproduccion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Pedido produccion';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Proveedor extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Proveedor';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Digitalizacion;
|
||||
namespace App\Controllers\ServiciosDigitalizacion;
|
||||
use App\Controllers\BaseController;
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Digitalizacion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Digitalizacion';
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifaacabado extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa acabado';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifaenvio extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa envio';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifaimpresion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa impresion';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifamanipulado extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa manipulado';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifapapelcompra extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa papel compra';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifapapeldefecto extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa papel defecto';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,7 @@ class Tarifapreimpresion extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
echo 'Hola2';
|
||||
echo 'Tarifa papel impresion';
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
@ -13,7 +13,116 @@ class Test extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
helper('general');
|
||||
var_dump( getAllClass());
|
||||
echo '<pre>';
|
||||
var_dump($this->validateControllerAccess());
|
||||
echo '</pre>';
|
||||
}
|
||||
|
||||
public function validateControllerAccess(){
|
||||
$request = \Config\Services::request();
|
||||
$uri = $uri = new \CodeIgniter\HTTP\URI('https://sk-jjo.imnavajas.es/envioslogistica/logistica');
|
||||
$language = \Config\Services::language();
|
||||
$language->setLocale(session()->lang);
|
||||
|
||||
$getWhiteList = $this->whiteListController();
|
||||
|
||||
foreach ($getWhiteList as $item){
|
||||
if(strtolower($item) == $uri->getSegment(1)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$getRules = json_decode(session()->get('rules')??'[]');
|
||||
|
||||
foreach ($this->whiteListMethod() as $item){
|
||||
if(strtolower($item) == $uri->getSegment(2)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($getRules as $key=>$value){
|
||||
if($key=='Digitalizacion') {
|
||||
echo 'Hola';
|
||||
}
|
||||
if(strtolower($key) == $uri->getSegment(1)){
|
||||
if($uri->getTotalSegments() <= 1){
|
||||
return true;
|
||||
}
|
||||
foreach ($value as $item){
|
||||
if(strtolower($item) == $uri->getSegment(2)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
foreach($this->controllerFolderWhiteList() as $folder){
|
||||
|
||||
if(strtolower($folder) == $uri->getSegment(1)){
|
||||
|
||||
if(strtolower($key) == $uri->getSegment(2)){
|
||||
if($uri->getTotalSegments() <= 2){
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach ($value as $item){
|
||||
if(strtolower($item) == $uri->getSegment(3)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function whiteListController(){
|
||||
return [
|
||||
'',
|
||||
'BaseController',
|
||||
'Home',
|
||||
'Login',
|
||||
'Oauth',
|
||||
'Language',
|
||||
'Api',
|
||||
'Cron',
|
||||
'lang',
|
||||
'Ajax',
|
||||
'Integration',
|
||||
'Migrate',
|
||||
'Test',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
public function whiteListMethod(){
|
||||
return [
|
||||
'initController',
|
||||
'__construct',
|
||||
'validateControllerAccess',
|
||||
'whiteListController',
|
||||
'whiteListMethod'
|
||||
];
|
||||
}
|
||||
|
||||
public function controllerFolderWhiteList(){
|
||||
return [
|
||||
'Catalogo',
|
||||
'Clientes',
|
||||
'Configuracion',
|
||||
'Digitalizacion',
|
||||
'Facturacion',
|
||||
'Informes',
|
||||
'EnviosLogistica',
|
||||
'Pedidos',
|
||||
'Presupuestos',
|
||||
'Produccion',
|
||||
'Proveedores',
|
||||
'Tarifas',
|
||||
'Usuarios',
|
||||
];
|
||||
}
|
||||
}
|
||||
@ -106,10 +106,10 @@ class LoginAuthFilter implements FilterInterface
|
||||
'Catalogo',
|
||||
'Clientes',
|
||||
'Configuracion',
|
||||
'Digitalizacion',
|
||||
'ServiciosDigitalizacion',
|
||||
'Facturacion',
|
||||
'Informes',
|
||||
'Logistica',
|
||||
'EnviosLogistica',
|
||||
'Pedidos',
|
||||
'Presupuestos',
|
||||
'Produccion',
|
||||
|
||||
@ -185,7 +185,7 @@ function getDictionary($word=''){
|
||||
'Maquina' => lang("App.permisos_maquina"),
|
||||
'Tamaniolibros' => lang("App.permisos_tamaniolibros"),
|
||||
'Imposiciones' => lang("App.permisos_imposiciones"),
|
||||
'Serie' => lang("App.permisos_serie"),
|
||||
'Seriefactura' => lang("App.permisos_seriefactura"),
|
||||
'Tamanioformatos' => lang("App.permisos_tamanioformatos"),
|
||||
'Serviciocliente' => lang("App.permisos_serviciocliente"),
|
||||
'Calendario' => lang("App.permisos_calendario"),
|
||||
@ -197,7 +197,7 @@ function getDictionary($word=''){
|
||||
|
||||
'Catalogo' => lang("App.permisos_catalogo"),
|
||||
|
||||
'Clientes' => lang("App.permisos_clientes"),
|
||||
'Cliente' => lang("App.permisos_clientes"),
|
||||
'Tarifacliente' => lang("App.permisos_tarifacliente"),
|
||||
|
||||
'Proveedores' => lang("App.permisos_proveedores"),
|
||||
@ -253,6 +253,23 @@ function getMenuControl(){
|
||||
}
|
||||
}
|
||||
|
||||
function allowMenuSection(array $array, array $keys, $method){
|
||||
try{
|
||||
$value = false;
|
||||
foreach($keys as $key){
|
||||
if (count($temp=getArrayItem($array,'name',$key)) > 0){
|
||||
if (count(getArrayItem($temp,'methods','index',true)) > 0){
|
||||
$value = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
|
||||
} catch (Exception $e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
function getArrayItem(array $array, $key, $word, $isArray=false)
|
||||
{
|
||||
try {
|
||||
|
||||
@ -1,21 +1,5 @@
|
||||
<?php
|
||||
return [
|
||||
// MENUS
|
||||
"menu_dashboard" => "Dashboard",
|
||||
"menu_registration" => "Registration",
|
||||
"menu_users" => "Users",
|
||||
"menu_permission_group" => "Permission Group",
|
||||
"menu_settings" => "Settings",
|
||||
"menu_general" => "General",
|
||||
"menu_logout" => "Logout",
|
||||
"menu_profile" => "My Profile",
|
||||
"menu_activity" => "Activities",
|
||||
"menu_notification" => "Notifications",
|
||||
"menu_list" => "List",
|
||||
"menu_add" => "Add",
|
||||
"menu_oauth" => "Authentications",
|
||||
"menu_template" => "Templates",
|
||||
|
||||
// LANGUAGES
|
||||
"lang_en" => "English",
|
||||
"lang_es" => "Spanish",
|
||||
@ -649,7 +633,7 @@ return [
|
||||
"permisos_maquina" => "Machine",
|
||||
"permisos_tamaniolibros" => "Books size",
|
||||
"permisos_imposiciones" => "Impositions",
|
||||
"permisos_serie" => "Serie",
|
||||
"permisos_seriefactura" => "Billing series",
|
||||
"permisos_tamanioformatos" => "Format size",
|
||||
"permisos_serviciocliente" => "Customer service",
|
||||
"permisos_calendario" => "Calendar",
|
||||
@ -668,7 +652,7 @@ return [
|
||||
"permisos_informes" => "Reports",
|
||||
|
||||
"permisos_facturación" => "Billing",
|
||||
"permisos_albaran" => "Deluvery note",
|
||||
"permisos_albaran" => "Delivery notes",
|
||||
"permisos_facturas" => "Invoices",
|
||||
|
||||
"permisos_pedidos" => "Orders",
|
||||
@ -680,4 +664,73 @@ return [
|
||||
"permisos_ordenmaquina" => "Machine order",
|
||||
"permisos_pedidoproduccion" => "Orders",
|
||||
"permisos_ordentrabajo" => "Work order",
|
||||
|
||||
|
||||
// MENUS
|
||||
"menu_dashboard" => "Dashboard",
|
||||
|
||||
"menu_clientes" => "Customers",
|
||||
"menu_tarifacliente" => "Customer Fee",
|
||||
|
||||
"menu_configuration" => "Settings",
|
||||
"menu_calendario" => "Calendar",
|
||||
"menu_correo" => "Mail",
|
||||
"menu_formaspago" => "Payment methods",
|
||||
"menu_imposiciones" => "Impositions",
|
||||
"menu_maquina" => "Machines",
|
||||
"menu_papelgenerico" => "Generic paper",
|
||||
"menu_seriefactura" => "Billing series",
|
||||
"menu_serviciocliente" => "Customer service",
|
||||
"menu_tamanioformatos" => "Format size",
|
||||
"menu_tamaniolibros" => "Books size",
|
||||
"menu_tareasservicio" => "Service tasks",
|
||||
"menu_tiposimpresion" => "Printing types",
|
||||
"menu_trabajo" => "Works",
|
||||
|
||||
"menu_digitalizacion" => "Digitalisation",
|
||||
|
||||
"menu_logistica" => "Logistics",
|
||||
|
||||
"menu_facturación" => "Billing",
|
||||
"menu_albaran" => "Delivery notes",
|
||||
"menu_facturas" => "Invoices",
|
||||
|
||||
"menu_informes" => "Reports",
|
||||
|
||||
"menu_pedidos" => "Orders",
|
||||
|
||||
"menu_presupuestos" => "Budgets",
|
||||
"menu_presupuestomaquetacion" => "Layout budgets",
|
||||
|
||||
"menu_produccion" => "Production",
|
||||
"menu_ordentrabajomaquetacion" => "Layout work order",
|
||||
"menu_ordenmaquina" => "Machine order",
|
||||
"menu_pedidoproduccion" => "Orders",
|
||||
"menu_ordentrabajo" => "Work order",
|
||||
|
||||
"menu_proveedores" => "Providers",
|
||||
|
||||
"menu_tarifas" => "Rates",
|
||||
"menu_tarifapreimpresion" => "Preprinting",
|
||||
"menu_tarifamanipulado" => "Handling",
|
||||
"menu_tarifapapelcompra" => "Paper",
|
||||
"menu_tarifaacabado" => "Finish",
|
||||
"menu_tarifapapeldefecto" => "Default paper",
|
||||
"menu_tarifaenvio" => "Shipping",
|
||||
"menu_tarifaimpresion" => "Printing",
|
||||
|
||||
"menu_users" => "Users",
|
||||
"menu_permission_group" => "Roles and permissions",
|
||||
|
||||
"menu_registration" => "Registration",
|
||||
"menu_settings" => "Settings",
|
||||
"menu_general" => "General",
|
||||
"menu_logout" => "Logout",
|
||||
"menu_profile" => "My Profile",
|
||||
"menu_activity" => "Activities",
|
||||
"menu_notification" => "Notifications",
|
||||
"menu_list" => "List",
|
||||
"menu_add" => "Add",
|
||||
"menu_oauth" => "Authentications",
|
||||
"menu_template" => "Templates",
|
||||
];
|
||||
@ -1,21 +1,5 @@
|
||||
<?php
|
||||
return [
|
||||
// MENUS
|
||||
"menu_dashboard" => "Panel",
|
||||
"menu_registration" => "Registro",
|
||||
"menu_users" => "Usuarios",
|
||||
"menu_permission_group" => "Grupo Permisos",
|
||||
"menu_settings" => "Ajustes",
|
||||
"menu_general" => "General",
|
||||
"menu_logout" => "Salir",
|
||||
"menu_profile" => "Mi Perfil",
|
||||
"menu_activity" => "Ocupaciones",
|
||||
"menu_notification" => "Notificaciones",
|
||||
"menu_list" => "Lista",
|
||||
"menu_add" => "Agregar",
|
||||
"menu_oauth" => "Autenticaciones",
|
||||
"menu_template" => "Plantillas",
|
||||
|
||||
// LANGUAGES
|
||||
"lang_en" => "Inglés",
|
||||
"lang_es" => "Español",
|
||||
@ -649,7 +633,7 @@ return [
|
||||
"permisos_maquina" => "Máquina",
|
||||
"permisos_tamaniolibros" => "Tamaño libros",
|
||||
"permisos_imposiciones" => "Imposiciones",
|
||||
"permisos_serie" => "Serie",
|
||||
"permisos_seriefactura" => "Series facturas",
|
||||
"permisos_tamanioformatos" => "Tamaño de formatos",
|
||||
"permisos_serviciocliente" => "Servicio cliente",
|
||||
"permisos_calendario" => "Calendario",
|
||||
@ -668,7 +652,7 @@ return [
|
||||
"permisos_informes" => "Informes",
|
||||
|
||||
"permisos_facturación" => "Facturación",
|
||||
"permisos_albaran" => "Albarán",
|
||||
"permisos_albaran" => "Albaranes",
|
||||
"permisos_facturas" => "Facturas",
|
||||
|
||||
"permisos_pedidos" => "Pedidos",
|
||||
@ -680,4 +664,75 @@ return [
|
||||
"permisos_ordenmaquina" => "Orden máquina",
|
||||
"permisos_pedidoproduccion" => "Pedidos",
|
||||
"permisos_ordentrabajo" => "Orden de trabajo",
|
||||
|
||||
|
||||
// MENUS
|
||||
"menu_dashboard" => "Panel",
|
||||
|
||||
"menu_clientes" => "Clientes",
|
||||
"menu_tarifacliente" => "Tarifa Clientes",
|
||||
|
||||
"menu_configuration" => "Configuracion",
|
||||
"menu_calendario" => "Calendario",
|
||||
"menu_correo" => "Correo",
|
||||
"menu_formaspago" => "Metodos de pago",
|
||||
"menu_imposiciones" => "Imposiciones",
|
||||
"menu_maquina" => "Maquinas",
|
||||
"menu_papelgenerico" => "Papel generico",
|
||||
"menu_seriefactura" => "Series facturas",
|
||||
"menu_serviciocliente" => "Servicio cliente",
|
||||
"menu_tamanioformatos" => "Tamaño formatos",
|
||||
"menu_tamaniolibros" => "Tamaño libros",
|
||||
"menu_tareasservicio" => "Tareas Servicio",
|
||||
"menu_tiposimpresion" => "Tipos de impresion",
|
||||
"menu_trabajo" => "Trabajos",
|
||||
|
||||
"menu_digitalizacion" => "Digitalización",
|
||||
|
||||
"menu_logistica" => "Logistica",
|
||||
|
||||
"menu_facturación" => "Facturación",
|
||||
"menu_albaran" => "Albaranes",
|
||||
"menu_facturas" => "Facturas",
|
||||
|
||||
"menu_informes" => "Informes",
|
||||
|
||||
"menu_pedidos" => "Pedidos",
|
||||
|
||||
"menu_presupuestos" => "Presupuestos",
|
||||
"menu_presupuestomaquetacion" => "Presupuestos maquetación",
|
||||
|
||||
"menu_produccion" => "Producción",
|
||||
"menu_ordentrabajomaquetacion" => "Orden de trabajo maquetación",
|
||||
"menu_ordenmaquina" => "Orden máquina",
|
||||
"menu_pedidoproduccion" => "Pedidos",
|
||||
"menu_ordentrabajo" => "Orden de trabajo",
|
||||
|
||||
"menu_proveedores" => "Proveedores",
|
||||
|
||||
"menu_tarifas" => "Tarifas",
|
||||
"menu_tarifapreimpresion" => "Preimpresión",
|
||||
"menu_tarifamanipulado" => "Manipulado",
|
||||
"menu_tarifapapelcompra" => "Papel compra",
|
||||
"menu_tarifaacabado" => "Acabado",
|
||||
"menu_tarifapapeldefecto" => "Papel defecto",
|
||||
"menu_tarifaenvio" => "Envío",
|
||||
"menu_tarifaimpresion" => "Impresión",
|
||||
|
||||
"menu_users" => "Usuarios",
|
||||
"menu_permission_group" => "Roles y permisos",
|
||||
|
||||
"menu_registration" => "Registro",
|
||||
"menu_settings" => "Ajustes",
|
||||
"menu_general" => "General",
|
||||
"menu_logout" => "Salir",
|
||||
"menu_profile" => "Mi Perfil",
|
||||
"menu_activity" => "Ocupaciones",
|
||||
"menu_notification" => "Notificaciones",
|
||||
"menu_list" => "Lista",
|
||||
"menu_add" => "Agregar",
|
||||
"menu_oauth" => "Autenticaciones",
|
||||
"menu_template" => "Plantillas",
|
||||
|
||||
|
||||
];
|
||||
@ -28,7 +28,7 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?= formAlert() ?>
|
||||
<form class="form" action="<?= site_url("group/store")?>" method="post">
|
||||
<form class="form" action="<?= site_url("usuarios/group/store")?>" method="post">
|
||||
<?= csrf_field() ?>
|
||||
<input type="hidden" name="id_group" value="<?= (isset($obj)) ? $obj['id_group'] : set_value('id_group') ?>">
|
||||
<input type="hidden" name="token" value="<?= (isset($obj)) ? $obj['token'] : set_value('token') ?>">
|
||||
|
||||
@ -4,31 +4,234 @@
|
||||
<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 (count(getArrayItem($menus,'name','User')) > 0): ?>
|
||||
<li class="nav-label"><?= lang("App.menu_registration") ?></li>
|
||||
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="fas fa-user-friends"></i><span class="nav-text"><?= lang("App.menu_users") ?></span></a>
|
||||
|
||||
|
||||
|
||||
<?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(getArrayItem($menus,'methods','index',true)) > 0): ?>
|
||||
<li><a href="<?= site_url("usuarios/user")?>"><?= lang("App.menu_list") ?></a></li>
|
||||
<?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 if (count(getArrayItem($menus,'methods','add',true)) > 0): ?>
|
||||
<li><a href="<?= site_url("usuarios/user/add")?>"><?= lang("App.menu_add") ?></a></li>
|
||||
<?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>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (count(getArrayItem($menus,'name','Group')) > 0): ?>
|
||||
<li><a class="has-arrow" href="Javascript:void()" aria-expanded="false"><i class="fas fa-user-lock"></i><span class="nav-text"><?= lang("App.menu_permission_group") ?></span></a>
|
||||
|
||||
|
||||
<?php if(allowMenuSection($menus, ['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(getArrayItem($menus,'methods','index',true)) > 0): ?>
|
||||
<li><a href="<?= site_url("usuarios/group")?>"><?= lang("App.menu_list") ?></a></li>
|
||||
<?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 if (count(getArrayItem($menus,'methods','add',true)) > 0): ?>
|
||||
<li><a href="<?= site_url("usuarios/group/add")?>"><?= lang("App.menu_add") ?></a></li>
|
||||
<?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>
|
||||
</li>
|
||||
<?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_produccion") ?></span></a>
|
||||
<ul aria-expanded="false">
|
||||
<?php if (count($temp=getArrayItem($menus,'name','Taricaacabado')) > 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">
|
||||
|
||||
Reference in New Issue
Block a user