- 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.
57 lines
2.6 KiB
PHP
57 lines
2.6 KiB
PHP
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:36:31
|
|
compiled from "/var/www/html/ventas/templates/items/atributos-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1587184849695f506f61b4b7-75527790%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'6dbbae8ab83b2d3e8228f1364946b740b967b965' =>
|
|
array (
|
|
0 => '/var/www/html/ventas/templates/items/atributos-base.tpl',
|
|
1 => 1767836456,
|
|
),
|
|
),
|
|
'nocache_hash' => '1587184849695f506f61b4b7-75527790',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<tr>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
</td>
|
|
<td align="center">
|
|
<a href="javascript:void(0)" onclick="AddValorDiv(<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
)" title="Agregar Valor">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/add.png" border="0"/>
|
|
</a>
|
|
<a href="javascript:void(0)" onclick="ViewValores(<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
)" title="Ver Valores">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/details.png" border="0"/>
|
|
</a>
|
|
</td>
|
|
<td align="center">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/edit.gif" class="spanEdit" id="<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
" title="Editar"/>
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['atributoId']>2){?>
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/delete.gif" class="spanDelete" id="<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
" title="Eliminar"/>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="valores_<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
" style="display:none">
|
|
<td> </td>
|
|
<td colspan="3" align="left" id="contValores_<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
">
|
|
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/atributos-valores.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);?>
|
|
|
|
</td>
|
|
</tr>
|