Files
ventas_php/ajax/templates_c/1b8d6421c20c921bdd4257df8398518ad1209943.file.envios-ordenes-comp.tpl.php

102 lines
4.3 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-11 10:07:47
compiled from "/var/www/html/templates/lists/envios-ordenes-comp.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9843448665411bac3ad11a7-18083658%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1b8d6421c20c921bdd4257df8398518ad1209943' =>
array (
0 => '/var/www/html/templates/lists/envios-ordenes-comp.tpl',
1 => 1410130459,
),
),
'nocache_hash' => '9843448665411bac3ad11a7-18083658',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div align="center"><b><?php echo $_smarty_tpl->getVariable('nomSuc')->value;?>
</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/Paq.</b></td>
<td width="110" align="center"><b>Valor</b></td>
<td width="110" align="center"><b>No. de Cajas</b></td>
<td width="50" align="center"></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">
<input type="text" name="noCajas_<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
" id="noCajas_<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
" value="<?php echo $_smarty_tpl->getVariable('item')->value['cajas'];?>
" class="smallInput" style="width:90px" />
</td>
<td align="center">
<input type="checkbox" name="idPedido[]" id="" value="<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
" checked="checked" />
</td>
</tr>
<tr>
<td align="center" colspan="7">
<br />
<div align="center"><b>Total de Cajas: <?php echo $_smarty_tpl->getVariable('item')->value['cajas'];?>
</b></div>
<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="7" align="center" height="30">Ning&uacute;n registro encontrado.</td>
</tr>
<?php } ?>
</table>