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.
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:47:02
|
||||
compiled from "/var/www/html/ventas/templates/usuarios.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:35949143695f52e6992ba7-70840144%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'af4a33906a984a2eddc18baccfb8f084f52707ed' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/usuarios.tpl',
|
||||
1 => 1767836456,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '35949143695f52e6992ba7-70840144',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div class="grid_16" id="content">
|
||||
|
||||
<div class="grid_9">
|
||||
<h1 class="catalogos">Usuarios</h1>
|
||||
</div>
|
||||
|
||||
<div class="grid_6" id="eventbox" style="display:none">
|
||||
<a href="#" class="inline_tip"></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div align="center" class="btnAddGral">
|
||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/usuarios-agregar" class="inline_add">Agregar Usuario</a>
|
||||
</div>
|
||||
|
||||
<?php $_template = new Smarty_Internal_Template("forms/search-usuarios.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('msg')->value!=''){?>
|
||||
<div align="center" style="color:#009900; font-size:14px; padding-top:15px">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/ok2.png" /><br /><b>
|
||||
<?php if ($_smarty_tpl->getVariable('msg')->value=="Saved"){?>
|
||||
El usuario fue agregado correctamente.
|
||||
<?php }elseif($_smarty_tpl->getVariable('msg')->value=="Updated"){?>
|
||||
El usuario fue actualizado correctamente
|
||||
<?php }?>
|
||||
</b></div>
|
||||
<?php }?>
|
||||
|
||||
<div class="grid_15" id="contenido">
|
||||
|
||||
<?php $_template = new Smarty_Internal_Template("lists/usuarios.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user