Files
ventas_php/ajax/templates_c/d3187b3c848168f6aaebd36a95a363e7e082aa40.file.enumProdCatVta.tpl.php

33 lines
1.6 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:59:40
compiled from "/var/www/html/templates/lists/enumProdCatVta.tpl" */ ?>
<?php /*%%SmartyHeaderCode:60920808540ce35c1745e5-10290807%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'd3187b3c848168f6aaebd36a95a363e7e082aa40' =>
array (
0 => '/var/www/html/templates/lists/enumProdCatVta.tpl',
1 => 1410130458,
),
),
'nocache_hash' => '60920808540ce35c1745e5-10290807',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_truncate')) include '/var/www/html/libs/plugins/modifier.truncate.php';
?> <select name="prodCatId2" id="prodCatId2" class="largeInput" style="width:210px" onchange="LoadSubcats()">
<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('categorias')->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['prodCatId'];?>
"><?php echo smarty_modifier_truncate($_smarty_tpl->getVariable('item')->value['nombre'],25,'...');?>
</option>
<?php }} ?>
</select>