Files
ventas_php/templates_c/6ee39a69f93600ffc67951af38acf5d081a06bfd.file.search-usuarios.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

97 lines
3.9 KiB
PHP

<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:47:02
compiled from "/var/www/html/ventas/templates/forms/search-usuarios.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1735606233695f52e69a3469-03325538%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6ee39a69f93600ffc67951af38acf5d081a06bfd' =>
array (
0 => '/var/www/html/ventas/templates/forms/search-usuarios.tpl',
1 => 1767836456,
),
),
'nocache_hash' => '1735606233695f52e69a3469-03325538',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="frmSearch" id="frmSearch">
<input type="hidden" name="action" id="action" value="search" />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th width="25%"></th>
<th scope="col" align="center">
<div align="center">Nombre</div>
</th>
<th scope="col" align="center">
<div align="center">Tipo</div>
</th>
<th scope="col" align="center">
<div align="center">Sucursal</div>
</th>
<th width="25%"></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td align="center">
<input type="text" size="35" name="nombre2" id="nombre2" class="largeInput" style="width:130px" />
</td>
<td align="center">
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<div class="txtFrm" style="width:200px">Vendedor</div>
<input type="hidden" name="tipo2" id="tipo2" value="vendedor" />
<?php }else{ ?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumUserTypes2.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 }?>
</td>
<td align="center">
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
<div class="txtFrm" style="width:250px"><?php echo $_smarty_tpl->getVariable('nomSuc')->value;?>
</div>
<input type="hidden" name="sucursalId2" id="sucursalId2" value="<?php echo $_smarty_tpl->getVariable('Usr')->value['sucursalId'];?>
" />
<?php }else{ ?>
<select name="sucursalId2" id="sucursalId2" class="largeInput" style="width:200px">
<option value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
" <?php if ($_smarty_tpl->getVariable('post')->value['sucursalId']==$_smarty_tpl->getVariable('item')->value['sucursalId']){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
<?php }?>
</td>
<td></td>
</tr>
<tr>
<td colspan="5" align="center">
<input type="button" name="btnSearch" value="Buscar" class="btnSearch" onclick="Search()" />
</td>
</tr>
<tr>
<td colspan="6">
<div align="center">
<div id="loadBusqueda" style="display:none">
<br />
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/loading.gif" width="16" height="16" />
<br />Cargando...
</div>
</div>
</td>
</tr>
</tbody>
</table>
</form>