Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-07 00:11:52
|
||||
compiled from "/var/www/html/ventas/templates/forms/search-usuarios.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:380169911695df928a34117-01089047%%*/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 => 1767753171,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '380169911695df928a34117-01089047',
|
||||
'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>
|
||||
Reference in New Issue
Block a user