Files
ventas_php/templates_c/cb6bdedc4a2adbd093d3a7d2e99a4cb9b773c401.file.submenu.tpl.php
nickpons666 ccfa01fa0e feat(atributos): Mejora la funcionalidad de la página de atributos
- 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.
2026-01-08 01:06:11 -06:00

483 lines
29 KiB
PHP

<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:36:31
compiled from "/var/www/html/ventas/templates/menus/submenu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:784806051695f506f490645-04448258%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'cb6bdedc4a2adbd093d3a7d2e99a4cb9b773c401' =>
array (
0 => '/var/www/html/ventas/templates/menus/submenu.tpl',
1 => 1767836456,
),
),
'nocache_hash' => '784806051695f506f490645-04448258',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('page')->value=="homepage"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
" <?php if ($_smarty_tpl->getVariable('page')->value=="homepage"){?> class="current"<?php }?>>
<span>Principal</span>
</a>
</li>
</ul>
<?php }?>
<?php if (($_smarty_tpl->getVariable('page')->value=="usuarios"||$_smarty_tpl->getVariable('page')->value=="productos-duplicados")&&$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/usuarios" <?php if ($_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"){?>class="current"<?php }?>>
<span>Usuarios</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/productos-duplicados" <?php if ($_smarty_tpl->getVariable('page')->value=="productos-duplicados"){?>class="current"<?php }?>>
<span>Productos Duplicados</span>
</a>
</li>
</ul>
<?php }elseif($_smarty_tpl->getVariable('page')->value=="datos-generales"||$_smarty_tpl->getVariable('page')->value=="atributos"||$_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=="metodos-pago"||$_smarty_tpl->getVariable('page')->value=="clientes"||$_smarty_tpl->getVariable('page')->value=="proveedores"||$_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=="motivos"||$_smarty_tpl->getVariable('page')->value=="productos"||$_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=="cuentas-bancarias"||$_smarty_tpl->getVariable('page')->value=="bonificacion-devolucion"||$_smarty_tpl->getVariable('page')->value=="comisiones"){?>
<ul>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/usuarios" <?php if ($_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"){?>class="current"<?php }?>>
<span>Usuarios</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/metodos-pago" <?php if ($_smarty_tpl->getVariable('page')->value=="metodos-pago"){?>class="current"<?php }?>>
<span>M&eacute;todos de Pago</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/clientes" <?php if ($_smarty_tpl->getVariable('page')->value=="clientes"){?>class="current"<?php }?>>
<span>Clientes</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/proveedores" <?php if ($_smarty_tpl->getVariable('page')->value=="proveedores"){?>class="current"<?php }?>>
<span>Proveedores</span>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/productos" <?php if ($_smarty_tpl->getVariable('page')->value=="productos"||$_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"){?>class="current"<?php }?>>
<span>Productos</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/temporadas" <?php if ($_smarty_tpl->getVariable('page')->value=="temporadas"){?>class="current"<?php }?>>
<span>Temporadas</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/materiales" <?php if ($_smarty_tpl->getVariable('page')->value=="materiales"){?>class="current"<?php }?>>
<span>Materiales</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/cuentas-bancarias" <?php if ($_smarty_tpl->getVariable('page')->value=="cuentas-bancarias"){?>class="current"<?php }?>>
<span>Cuentas Bancarias</span>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/atributos" <?php if ($_smarty_tpl->getVariable('page')->value=="atributos"||$_smarty_tpl->getVariable('page')->value=="conjunto-tallas"||$_smarty_tpl->getVariable('page')->value=="atributos-valores"){?> class="current"<?php }?>>
<span>Atributos</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/datos-generales" <?php if ($_smarty_tpl->getVariable('page')->value=="datos-generales"){?> class="current"<?php }?>>
<span>Mi Empresa</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/productos-duplicados" <?php if ($_smarty_tpl->getVariable('page')->value=="productos-duplicados"){?> class="current"<?php }?>>
<span>Productos Duplicados</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>
<?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-distribucion"||$_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=="evaluar-pedidos"||$_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=="bonificaciones"||$_smarty_tpl->getVariable('page')->value=="bonificaciones-agregar"||$_smarty_tpl->getVariable('page')->value=="pedidos-detalles"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/pedidos" <?php if ($_smarty_tpl->getVariable('page')->value=="pedidos"){?> class="current"<?php }?>>
<span>Pedidos</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/cuentas-pagar" <?php if ($_smarty_tpl->getVariable('page')->value=="cuentas-pagar"){?> class="current"<?php }?>>
<span>Cuentas por Pagar</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/bonificaciones" <?php if ($_smarty_tpl->getVariable('page')->value=="bonificaciones"||$_smarty_tpl->getVariable('page')->value=="bonificaciones-agregar"){?> class="current"<?php }?>>
<span>Bonificaciones/Devoluciones</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/bonificaciones" <?php if ($_smarty_tpl->getVariable('page')->value=="bonificaciones"||$_smarty_tpl->getVariable('page')->value=="bonificaciones-agregar"){?> class="current"<?php }?>>
<span>Bonificaciones/Devoluciones</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/devoluciones-cedis" <?php if ($_smarty_tpl->getVariable('page')->value=="devoluciones-cedis"||$_smarty_tpl->getVariable('page')->value=="devoluciones-cedis-agregar"||$_smarty_tpl->getVariable('page')->value=="devoluciones-cedis-detalles"){?> class="current"<?php }?>>
<span>Devoluciones a CEDIS</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="direccion"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/cuentas-pagar" <?php if ($_smarty_tpl->getVariable('page')->value=="cuentas-pagar"){?> class="current"<?php }?>>
<span>Cuentas por Pagar</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/cuentas-pagar-saldos" <?php if ($_smarty_tpl->getVariable('page')->value=="cuentas-pagar-saldos"){?> class="current"<?php }?>>
<span>Cuentas por Pagar Saldos</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>
<?php if ($_smarty_tpl->getVariable('page')->value=="envios"||$_smarty_tpl->getVariable('page')->value=="envios-cedis-agregar"||$_smarty_tpl->getVariable('page')->value=="envios-recibir"||$_smarty_tpl->getVariable('page')->value=="envios-recibir-reporte"||$_smarty_tpl->getVariable('page')->value=="envios-reporte"||$_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-detalles"||$_smarty_tpl->getVariable('page')->value=="envios-traspasos"||$_smarty_tpl->getVariable('page')->value=="envios-transito"||$_smarty_tpl->getVariable('page')->value=="envios-tienda-cedis"){?>
<ul>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios" <?php if ($_smarty_tpl->getVariable('page')->value=="envios"||$_smarty_tpl->getVariable('page')->value=="envios-cedis-agregar"||$_smarty_tpl->getVariable('page')->value=="envios-detalles"||$_smarty_tpl->getVariable('page')->value=="envios-recibir"){?>class="current"<?php }?>>
<span>CEDIS - Tienda</span>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-tienda" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-tienda"||$_smarty_tpl->getVariable('page')->value=="envios-tienda-agregar"||$_smarty_tpl->getVariable('page')->value=="envios-tienda-detalles"){?> class="current"<?php }?>>
<span>Tienda - Tienda</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-tienda-cedis" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-tienda-cedis"){?> class="current"<?php }?>>
<span>Tienda - CEDIS</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-reporte" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-reporte"){?> class="current"<?php }?>>
<span>Reporte de Env&iacute;os</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-traspasos" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-traspasos"){?> class="current"<?php }?>>
<span>Relaci&oacute;n de Traspasos</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"||$_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-recibir-reporte" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-recibir-reporte"){?> class="current"<?php }?>>
<span>Rep. Merc. Faltante y Sobrante</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/envios-transito" <?php if ($_smarty_tpl->getVariable('page')->value=="envios-transito"){?> class="current"<?php }?>>
<span>Productos en Tr&aacute;nsito</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>
<?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=="analisis-venta"||$_smarty_tpl->getVariable('page')->value=="reportes-devcedis"||$_smarty_tpl->getVariable('page')->value=="reportes-tickets"||$_smarty_tpl->getVariable('page')->value=="reportes-faltantes"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-ventas" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-ventas"){?>class="current"<?php }?>>
<span>Ventas</span>
</a>
</li>
</ul>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="compras"||$_smarty_tpl->getVariable('Usr')->value['type']=="supervisor"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-tickets" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-tickets"){?>class="current"<?php }?>>
<span>Tickets</span>
</a>
</li>
</ul>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-inventario" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-inventario"){?>class="current"<?php }?>>
<span>Inventario</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-faltantes" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-faltantes"){?>class="current"<?php }?>>
<span>Faltantes</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-invparcial" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-invparcial"||$_smarty_tpl->getVariable('page')->value=="reportes-invparcial-detalles"){?>class="current"<?php }?>>
<span>Inventario Total/Parcial</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/reportes-devcedis" <?php if ($_smarty_tpl->getVariable('page')->value=="reportes-devcedis"){?>class="current"<?php }?>>
<span>Devoluciones a CEDIS</span>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/analisis-venta" <?php if ($_smarty_tpl->getVariable('page')->value=="analisis-venta"){?>class="current"<?php }?>>
<span>An&aacute;lisis de Venta</span>
</a>
</li>
</ul>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('page')->value=="inventario"||$_smarty_tpl->getVariable('page')->value=="inventario-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list2"||$_smarty_tpl->getVariable('page')->value=="inventario-liberar"||$_smarty_tpl->getVariable('page')->value=="inventario-ajustar"||$_smarty_tpl->getVariable('page')->value=="inventario-ajustar-list"||$_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-fisico"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-detalles"||$_smarty_tpl->getVariable('page')->value=="inventario-detalles-bloqueados"||$_smarty_tpl->getVariable('page')->value=="inventario-bloqueados"){?>
<ul>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-wizard-list" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-wizard"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods"){?> class="current"<?php }?>>
<span>Ajustar Inv. con Excel.</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-wizard-list2" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-wizard2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods2"){?> class="current"<?php }?>>
<span>Ajustar Inv. PARCIAL con Excel</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-bloqueados" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-bloqueados"){?> class="current"<?php }?>>
<span>Productos Bloqueados</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario"){?>class="current"<?php }?>>
<span>Productos</span>
</a>
</li>
<?php }?>
<?php }elseif($_smarty_tpl->getVariable('Usr')->value['type']=="supervisor"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-fisico" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-fisico"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-detalles"){?>class="current"<?php }?>>
<span>Inventario F&iacute;sico</span>
</a>
</li>
<?php }elseif($_smarty_tpl->getVariable('Usr')->value['type']=="compras"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-solicitar" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-solicitar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-detalles"){?> class="current"<?php }?>>
<span>Solicitar Productos</span>
</a>
</li>
<?php }else{ ?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario"){?>class="current"<?php }?>>
<span>Productos</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="centralizador"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-bloqueados" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-bloqueados"){?> class="current"<?php }?>>
<span>Productos Bloqueados</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-wizard-list" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-wizard"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods"){?> class="current"<?php }?>>
<span>Ajustar Inv. con Excel.</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-wizard-list2" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-wizard2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizard-list2"||$_smarty_tpl->getVariable('page')->value=="inventario-wizprods2"){?> class="current"<?php }?>>
<span>Ajustar Inv. PARCIAL con Excel</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-liberar" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-liberar"){?> class="current"<?php }?>>
<span>Liberar Productos</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-solicitar" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-solicitar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-solicitar-detalles"){?> class="current"<?php }?>>
<span>Solicitar Productos</span>
</a>
</li>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-ajustar-list" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-ajustar"||$_smarty_tpl->getVariable('page')->value=="inventario-ajustar-list"){?> class="current"<?php }?>>
<span>Ajustar Inv. por Prod.</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/inventario-fisico" <?php if ($_smarty_tpl->getVariable('page')->value=="inventario-fisico"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-agregar"||$_smarty_tpl->getVariable('page')->value=="inventario-fisico-detalles"){?>class="current"<?php }?>>
<span>Inventario F&iacute;sico</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>
<?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=="descuentos"||$_smarty_tpl->getVariable('page')->value=="ventas-bloqueados"){?>
<ul>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/ventas" <?php if ($_smarty_tpl->getVariable('page')->value=="ventas"){?>class="current"<?php }?>>
<span>Listado</span>
</a>
</li>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/devoluciones" <?php if ($_smarty_tpl->getVariable('page')->value=="devoluciones"){?>class="current"<?php }?>>
<span>Devoluciones</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']!="facturacion"&&$_smarty_tpl->getVariable('Usr')->value['type']!="centralizador"&&$_smarty_tpl->getVariable('Usr')->value['type']!="admin"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/devoluciones" <?php if ($_smarty_tpl->getVariable('page')->value=="devoluciones"){?>class="current"<?php }?>>
<span>Devoluciones</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/descuentos" <?php if ($_smarty_tpl->getVariable('page')->value=="descuentos"){?>class="current"<?php }?>>
<span>Descuentos</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/ventas-espera" <?php if ($_smarty_tpl->getVariable('page')->value=="ventas-espera"){?>class="current"<?php }?>>
<span>En Espera</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>
<?php if ($_smarty_tpl->getVariable('page')->value=="facturacion"||$_smarty_tpl->getVariable('page')->value=="facturacion-mensual"||$_smarty_tpl->getVariable('page')->value=="facturacion-folios"||$_smarty_tpl->getVariable('page')->value=="facturacion-certificado"||$_smarty_tpl->getVariable('page')->value=="facturacion-nueva"){?>
<ul>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="facturacion"||$_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/facturacion" <?php if ($_smarty_tpl->getVariable('page')->value=="facturacion"){?>class="current"<?php }?>>
<span>Listado</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/facturacion-mensual" <?php if ($_smarty_tpl->getVariable('page')->value=="facturacion-mensual"){?>class="current"<?php }?>>
<span>Facturaci&oacute;n Mensual</span>
</a>
</li>
<?php }?>
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="facturacion"){?>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/facturacion-folios" <?php if ($_smarty_tpl->getVariable('page')->value=="facturacion-folios"){?>class="current"<?php }?>>
<span>Folios</span>
</a>
</li>
<li>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/facturacion-certificado" <?php if ($_smarty_tpl->getVariable('page')->value=="facturacion-certificado"){?>class="current"<?php }?>>
<span>Actualizar Certificado</span>
</a>
</li>
<?php }?>
</ul>
<?php }?>