61 lines
2.7 KiB
PHP
Executable File
61 lines
2.7 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:17:22
|
|
compiled from "/var/www/html/templates/lists/reportes-devcedis-prods.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1368336157540de4a263e032-25507599%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'1cafacc6f633b6e1f784dd95b085b9ff40f77d30' =>
|
|
array (
|
|
0 => '/var/www/html/templates/lists/reportes-devcedis-prods.tpl',
|
|
1 => 1410130460,
|
|
),
|
|
),
|
|
'nocache_hash' => '1368336157540de4a263e032-25507599',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
<thead>
|
|
<tr>
|
|
<th width="70" style="background-color:#99CCFF"><div align="center">Sucursal</div></th>
|
|
<th width="" style="background-color:#99CCFF"><div align="center">Proveedor</div></th>
|
|
<th width="60" style="background-color:#99CCFF"><div align="center">Código Barra</div></th>
|
|
<th width="200" style="background-color:#99CCFF"><div align="center">Producto</div></th>
|
|
<th width="60" style="background-color:#99CCFF"><div align="center">Cantidad</div></th>
|
|
<th width="60" style="background-color:#99CCFF"><div align="center">Costo</div></th>
|
|
<th width="60" style="background-color:#99CCFF"><div align="center">Total</div></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
|
|
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['itP']->key;
|
|
?>
|
|
<tr>
|
|
<td align="center"><?php echo urldecode($_smarty_tpl->getVariable('itP')->value['sucursal']);?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['producto'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['cantidad'];?>
|
|
</td>
|
|
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
|
|
</td>
|
|
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} else { ?>
|
|
<tr>
|
|
<td colspan="6" align="center">Ningún registro encontrado.</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|