Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-07 00:32:08
|
||||
compiled from "/var/www/html/ventas/templates/lists/enumSucursales.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:2036300350695dfde8580fd8-98994506%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'b7032056f09f7f3c275f271ca640b0434330b09e' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/lists/enumSucursales.tpl',
|
||||
1 => 1767753171,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '2036300350695dfde8580fd8-98994506',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<select name="sucursalId" id="sucursalId" class="largeInput" style="width:300px">
|
||||
<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>
|
||||
Reference in New Issue
Block a user