89 lines
4.2 KiB
PHP
Executable File
89 lines
4.2 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-15 14:28:27
|
|
compiled from "/var/www/html/templates/lists/pedidos-proporciones2.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:149556243154173ddbc72d41-61139505%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'e885fe6fa3576c597b56862788c3f3cd0505e84e' =>
|
|
array (
|
|
0 => '/var/www/html/templates/lists/pedidos-proporciones2.tpl',
|
|
1 => 1410130460,
|
|
),
|
|
),
|
|
'nocache_hash' => '149556243154173ddbc72d41-61139505',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<table width="" cellpadding="0" cellspacing="0" border="1">
|
|
<tr>
|
|
<td width="120" align="center" height="30"><b>Color / Talla</b></td>
|
|
<td width="80" align="center"><b>Prop. Color</b></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('it')->value['tallas']; 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;
|
|
?>
|
|
<td align="center" width="80"><b><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
</b></td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" height="30"><b>Prop. Talla</b></td>
|
|
<td align="center"></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('it')->value['tallas']; 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;
|
|
?>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idC'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('it')->value['colores']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value){
|
|
$_smarty_tpl->tpl_vars['idC']->value = $_smarty_tpl->tpl_vars['c']->key;
|
|
?>
|
|
<tr>
|
|
<td align="center" height="30"><b><?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
</b></td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('c')->value['cantidad'];?>
|
|
</td>
|
|
<?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('it')->value['tallas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value){
|
|
$_smarty_tpl->tpl_vars['idT']->value = $_smarty_tpl->tpl_vars['t']->key;
|
|
?>
|
|
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('it')->value['subtotales'][$_tmp1][$_tmp2];?>
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<?php }} ?>
|
|
<tr>
|
|
<td align="center" height="30"><b>Total</b></td>
|
|
<td align="center"></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('it')->value['tallas']; 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['idT']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
?>
|
|
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('it')->value['totales'][$_tmp3];?>
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
</table>
|