- Deshabilita la paginación para mostrar todos los atributos por defecto. - Corrige un error de renderizado en 'atributos-valores.tpl' añadiendo etiquetas de cierre faltantes. - Cambia el orden de los atributos a 'atributoId' en 'atributo.class.php'. - Corrige un bug en 'atributoValor.class.php' descomentando una condición. - Asegura que las acciones AJAX (añadir, editar, eliminar) refresquen la lista correctamente sin paginación.
186 lines
15 KiB
PHP
186 lines
15 KiB
PHP
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:36:31
|
|
compiled from "/var/www/html/ventas/templates/menus/main.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1240459790695f506f3c25c5-29327061%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'609737f18f894abfa6157e8d0005cc9d18d3c612' =>
|
|
array (
|
|
0 => '/var/www/html/ventas/templates/menus/main.tpl',
|
|
1 => 1767836456,
|
|
),
|
|
),
|
|
'nocache_hash' => '1240459790695f506f3c25c5-29327061',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<div id="menu">
|
|
<ul class="group" id="menu_group_main">
|
|
|
|
<li class="item first" id="one">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="homepage"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner dashboard">Inicio</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>productos<?php }else{ ?>usuarios<?php }?>" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="datos-generales"||$_smarty_tpl->getVariable('page')->value=="usuarios"||$_smarty_tpl->getVariable('page')->value=="usuarios-agregar"||$_smarty_tpl->getVariable('page')->value=="usuarios-editar"||$_smarty_tpl->getVariable('page')->value=="usuarios-detalles"||$_smarty_tpl->getVariable('page')->value=="atributos"||$_smarty_tpl->getVariable('page')->value=="metodos-pago"||$_smarty_tpl->getVariable('page')->value=="clientes"||$_smarty_tpl->getVariable('page')->value=="temporadas"||$_smarty_tpl->getVariable('page')->value=="tallas"||$_smarty_tpl->getVariable('page')->value=="colores"||$_smarty_tpl->getVariable('page')->value=="materiales"||$_smarty_tpl->getVariable('page')->value=="composiciones"||$_smarty_tpl->getVariable('page')->value=="motivos"||$_smarty_tpl->getVariable('page')->value=="productos"||$_smarty_tpl->getVariable('page')->value=="proveedores"||$_smarty_tpl->getVariable('page')->value=="productos-agregar"||$_smarty_tpl->getVariable('page')->value=="productos-editar"||$_smarty_tpl->getVariable('page')->value=="productos-detalles"||$_smarty_tpl->getVariable('page')->value=="productos-categorias"||$_smarty_tpl->getVariable('page')->value=="productos-subcategorias"||$_smarty_tpl->getVariable('page')->value=="productos-duplicados"||$_smarty_tpl->getVariable('page')->value=="conjunto-tallas"||$_smarty_tpl->getVariable('page')->value=="promociones"||$_smarty_tpl->getVariable('page')->value=="monederos"||$_smarty_tpl->getVariable('page')->value=="bancos"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner catalogos">Catálogos</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="gerente"&&$_smarty_tpl->getVariable('Usr')->value['type']!="vendedor"&&$_smarty_tpl->getVariable('Usr')->value['type']!="cajero"&&$_smarty_tpl->getVariable('Usr')->value['type']!="facturacion"&&$_smarty_tpl->getVariable('Usr')->value['type']!="cliente"&&$_smarty_tpl->getVariable('Usr')->value['type']!="supervisor"){?>
|
|
<li class="item middle" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/pedidos" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="pedidos"||$_smarty_tpl->getVariable('page')->value=="pedidos-agregar"||$_smarty_tpl->getVariable('page')->value=="pedidos-editar"||$_smarty_tpl->getVariable('page')->value=="pedidos-detalles"||$_smarty_tpl->getVariable('page')->value=="pedidos-aprobados"||$_smarty_tpl->getVariable('page')->value=="pedidos-rechazados"||$_smarty_tpl->getVariable('page')->value=="pedidos-rechazar"||$_smarty_tpl->getVariable('page')->value=="pedidos-revivir"||$_smarty_tpl->getVariable('page')->value=="cuentas-pagar"||$_smarty_tpl->getVariable('page')->value=="cuentas-pagar-saldos"||$_smarty_tpl->getVariable('page')->value=="bonificaciones"||$_smarty_tpl->getVariable('page')->value=="bonificaciones-agregar"||$_smarty_tpl->getVariable('page')->value=="conciliaciones"||$_smarty_tpl->getVariable('page')->value=="devoluciones-cedis"||$_smarty_tpl->getVariable('page')->value=="devoluciones-cedis-detalles"||$_smarty_tpl->getVariable('page')->value=="devoluciones-cedis-agregar"||$_smarty_tpl->getVariable('page')->value=="bonificaciones-pendientes"||$_smarty_tpl->getVariable('page')->value=="pedidos-aprobar"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner compras">Compras</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="vendedor"||$_smarty_tpl->getVariable('Usr')->value['type']=="cajero"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="inventario"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard"||$_smarty_tpl->getVariable('page')->value=="inventario-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-bloqueados-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-bloqueados"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner inventario">Inventario</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="supervisor"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario-fisico" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="inventario-fisico"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-agregar"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner inventario">Inventario</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario-solicitar" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="inventario-solicitar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-agregar"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner inventario">Inventario</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario-wizard-list" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="inventario-wizard"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list2"||$_smarty_tpl->getVariable('page')->value=="inventario-ajustar"||$_smarty_tpl->getVariable('page')->value=="inventario-ajustar-list"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-agregar"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner inventario">Inventario</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="cajero"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="admin"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/ventas" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="ventas"||$_smarty_tpl->getVariable('page')->value=="ventas-nueva"||$_smarty_tpl->getVariable('page')->value=="ventas-espera"||$_smarty_tpl->getVariable('page')->value=="devoluciones"||$_smarty_tpl->getVariable('page')->value=="ventas-bloqueados"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner ventas">Ventas</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="cajero"){?>
|
|
<li class="item" id="two">
|
|
<a href="javascript:void(0)" class="main" onclick="AddNewVtaDiv()">
|
|
<span class="outer">
|
|
<span class="inner ventas2">Nueva Venta</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>envios-tienda<?php }else{ ?>envios<?php }?>" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="envios"||$_smarty_tpl->getVariable('page')->value=="envios-reporte"||$_smarty_tpl->getVariable('page')->value=="envios-recibir"||$_smarty_tpl->getVariable('page')->value=="envios-recibir-reporte"||$_smarty_tpl->getVariable('page')->value=="envios-detalles"||$_smarty_tpl->getVariable('page')->value=="envios-tienda"||$_smarty_tpl->getVariable('page')->value=="envios-tienda-detalles"||$_smarty_tpl->getVariable('page')->value=="envios-tienda-agregar"||$_smarty_tpl->getVariable('page')->value=="envios-traspasos"||$_smarty_tpl->getVariable('page')->value=="envios-transito"||$_smarty_tpl->getVariable('page')->value=="envios-cedis-agregar"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner envios">Envíos</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="facturacion"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/facturacion" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="facturacion"||$_smarty_tpl->getVariable('page')->value=="facturacion"||$_smarty_tpl->getVariable('page')->value=="facturacion-nueva"||$_smarty_tpl->getVariable('page')->value=="facturacion-certificado"||$_smarty_tpl->getVariable('page')->value=="facturacion-folios"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner facturacion">Facturación</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="facturacion"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="supervisor"){?>
|
|
<li class="item last" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/reportes-ventas" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="reportes-ventas"||$_smarty_tpl->getVariable('page')->value=="reportes-compras"||$_smarty_tpl->getVariable('page')->value=="reportes-cuentaspagar"||$_smarty_tpl->getVariable('page')->value=="reportes-cuentascobrar"||$_smarty_tpl->getVariable('page')->value=="reportes-inventario"||$_smarty_tpl->getVariable('page')->value=="reportes-invparcial"||$_smarty_tpl->getVariable('page')->value=="reportes-invparcial-detalles"||$_smarty_tpl->getVariable('page')->value=="reportes-tickets"||$_smarty_tpl->getVariable('page')->value=="reportes-faltantes"||$_smarty_tpl->getVariable('page')->value=="reportes-devcedis"||$_smarty_tpl->getVariable('page')->value=="analisis-venta"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner reportes">Reportes</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="cliente"){?>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/facturas-listado" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="facturas-listado"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner facturacion">Facturas</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li class="item" id="two">
|
|
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/facturas-datos" class="main
|
|
<?php if ($_smarty_tpl->getVariable('page')->value=="facturas-datos"){?>current<?php }?>">
|
|
<span class="outer">
|
|
<span class="inner customer">Mis Datos</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<?php }?>
|
|
|
|
|
|
</ul>
|
|
</div>
|