Files
ventas_php/templates_c/bf7c94c20eb4bdc3670e142704b0c73ab5805066.file.status.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

53 lines
2.7 KiB
PHP

<?php /* Smarty version Smarty3-b7, created on 2026-01-08 01:02:25
compiled from "/var/www/html/ventas/templates/boxes/status.tpl" */ ?>
<?php /*%%SmartyHeaderCode:611573571695f56813d1b02-56614081%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'bf7c94c20eb4bdc3670e142704b0c73ab5805066' =>
array (
0 => '/var/www/html/ventas/templates/boxes/status.tpl',
1 => 1767836456,
),
),
'nocache_hash' => '611573571695f56813d1b02-56614081',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/status_open.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 (!empty($_smarty_tpl->getVariable('errors')->value)){?>
<h3>
<?php if ($_smarty_tpl->getVariable('errors')->value['complete']){?>
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/ok.gif" style="cursor:pointer" onclick="ToogleStatusDiv()"/>
<?php }else{ ?>
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/error.gif" style="cursor:pointer" onclick="ToogleStatusDiv()"/>
<?php }?>
</h3>
<div style="position:relative;top:-40px;left:50px; font-size:16px;">
<?php $_smarty_tpl->tpl_vars["error"] = new Smarty_Variable;
$_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('errors')->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars["error"]->key => $_smarty_tpl->tpl_vars["error"]->value){
$_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["error"]->key;
?>
<?php echo $_smarty_tpl->getVariable('error')->value;?>
<?php if ($_smarty_tpl->getVariable('errors')->value['field'][$_smarty_tpl->getVariable('key')->value]){?>
: <?php echo $_smarty_tpl->getVariable('errors')->value['field'][$_smarty_tpl->getVariable('key')->value];?>
<?php }?>
<br />
<?php }} ?>
</div>
<?php }?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/status_close.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);?>