Files
ventas_php/ajax/templates_c/6cacacd2341b6c68645c7ead23c53439960d31ea.file.analisis-proveedor.tpl.php

56 lines
2.6 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-12-11 10:02:50
compiled from "/var/www/html/templates/lists/analisis-proveedor.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9001417035489c02a60bc15-49466047%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6cacacd2341b6c68645c7ead23c53439960d31ea' =>
array (
0 => '/var/www/html/templates/lists/analisis-proveedor.tpl',
1 => 1410130457,
),
),
'nocache_hash' => '9001417035489c02a60bc15-49466047',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<table width="100%" cellpadding="0" cellspacing="0" id="subTable">
<?php $_smarty_tpl->tpl_vars['iP'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('iS')->value['proveedores']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['iP']->key => $_smarty_tpl->tpl_vars['iP']->value){
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['iP']->key;
?>
<tr>
<td width="70" height="35"></td>
<td align="center" width="40">
<a href="javascript:void(0)" onclick="ShowProductos(<?php echo $_smarty_tpl->getVariable('kS')->value;?>
,<?php echo $_smarty_tpl->getVariable('kP')->value;?>
)"><div id="iconProv_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
_<?php echo $_smarty_tpl->getVariable('kP')->value;?>
">[+]</div></a>
</td>
<td align="left"><?php echo $_smarty_tpl->getVariable('iP')->value['nombre'];?>
</td>
<td>TOTAL</td>
<td width="110" align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['prendas'],0,'.',',');?>
</td>
<td width="110" align="center">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['ventas'],2,'.',',');?>
</td>
<td width="110" align="center">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['utilidad'],2,'.',',');?>
</td>
</tr>
<tr id="prod_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
_<?php echo $_smarty_tpl->getVariable('kP')->value;?>
" style="display:none">
<td colspan="7" align="left">
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/analisis-producto.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);?>
</td>
</tr>
<?php }} ?>
</table>