Files
ventas_php/templates_c/b028059a1b793fb045e98c73cd1acb0b6fd525af.file.envios-ordenes-comp2.tpl.php

89 lines
3.7 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-11 11:30:32
compiled from "/var/www/html/templates/lists/envios-ordenes-comp2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:15790198585411ce28554641-12166234%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'b028059a1b793fb045e98c73cd1acb0b6fd525af' =>
array (
0 => '/var/www/html/templates/lists/envios-ordenes-comp2.tpl',
1 => 1410130459,
),
),
'nocache_hash' => '15790198585411ce28554641-12166234',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div align="center"><b><?php echo $_smarty_tpl->getVariable('info')->value['sucursal'];?>
</b></div>
<br />
<table width="850" cellpadding="0" cellspacing="0" border="1">
<tr>
<td width="100" align="center" height="30"><b>No. de Proveedor</b></td>
<td width="" align="center"><b>Nombre del Proveedor</b></td>
<td width="110" align="center"><b>No. Orden de Compra</b></td>
<td width="110" align="center"><b>Cantidad de Prendas</b></td>
<td width="110" align="center"><b>Valor</b></td>
<td width="110" align="center"><b>No. de Cajas</b></td>
</tr>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('ordenes')->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;
?>
<tr>
<td align="center" height="30"><?php echo $_smarty_tpl->getVariable('item')->value['noProv'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['proveedor'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['noPedido'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['prendas'];?>
</td>
<td align="center">$<?php echo $_smarty_tpl->getVariable('item')->value['total'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['noCajas'];?>
</td>
</tr>
<tr>
<td align="center" colspan="7">
<br />
<table width="90%" cellpadding="0" cellspacing="0" border="1">
<tr>
<td align="center" bgcolor="#CCCCCC" width="150"><b>C&oacute;digo Barra</b></td>
<td align="center" bgcolor="#CCCCCC"><b>Modelo</b></td>
<td align="center" bgcolor="#CCCCCC" width="120"><b>Cantidad</b></td>
</tr>
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['k'] = 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['it']->key => $_smarty_tpl->tpl_vars['it']->value){
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
?>
<tr>
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['cantidad'];?>
</td>
</tr>
<?php }} else { ?>
<tr><td colspan="3" align="center">Ning&uacute;n producto encontrado.</td></tr>
<?php } ?>
</table>
</td>
</tr>
<?php }} else { ?>
<tr>
<td colspan="6" align="center" height="30">Ning&uacute;n registro encontrado.</td>
</tr>
<?php } ?>
</table>