86 lines
4.2 KiB
PHP
Executable File
86 lines
4.2 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-05-11 15:50:12
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-temporada-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:414057145536fe284818149-56754363%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'92988722639aaab87ebebabeacdbd3cdc534beb8' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-temporada-base.tpl',
|
|
1 => 1381018572,
|
|
),
|
|
),
|
|
'nocache_hash' => '414057145536fe284818149-56754363',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php $_smarty_tpl->tpl_vars['suc'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['kS'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['suc']->key => $_smarty_tpl->tpl_vars['suc']->value){
|
|
$_smarty_tpl->tpl_vars['kS']->value = $_smarty_tpl->tpl_vars['suc']->key;
|
|
?>
|
|
<?php $_smarty_tpl->tpl_vars['temp'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['kT'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('suc')->value['temporadas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['temp']->key => $_smarty_tpl->tpl_vars['temp']->value){
|
|
$_smarty_tpl->tpl_vars['kT']->value = $_smarty_tpl->tpl_vars['temp']->key;
|
|
?>
|
|
<?php if (count($_smarty_tpl->getVariable('temp')->value['productos'])>0){?>
|
|
<thead>
|
|
<tr style="background:#CCC;text-align:center" >
|
|
<th id="alinear" colspan="2"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('suc')->value['nombre'])));?>
|
|
</b></th>
|
|
<th>
|
|
<div style="float:right">
|
|
<a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
|
|
_<?php echo $_smarty_tpl->getVariable('temp')->value['temporadaId'];?>
|
|
" onclick="ShowDescT(<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
|
|
,<?php echo $_smarty_tpl->getVariable('temp')->value['temporadaId'];?>
|
|
)">[+]</a>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="totales<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
|
|
_<?php echo $_smarty_tpl->getVariable('temp')->value['temporadaId'];?>
|
|
" style="display:none">
|
|
<tr style="background:#E0E5E7;text-align:center">
|
|
<th>Código de Barras</b></th>
|
|
<th>Temporada: <b><?php echo $_smarty_tpl->getVariable('temp')->value['nombre'];?>
|
|
</b></th>
|
|
<th>Número de productos vendidos</b></th>
|
|
</tr>
|
|
<?php $_smarty_tpl->tpl_vars['prod'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('temp')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['prod']->key => $_smarty_tpl->tpl_vars['prod']->value){
|
|
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['prod']->key;
|
|
?>
|
|
<tr>
|
|
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('prod')->value['codigoBarra'];?>
|
|
</td>
|
|
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('prod')->value['modelo'];?>
|
|
</td>
|
|
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('prod')->value['vendidos'],0,'.',',');?>
|
|
</td>
|
|
</tr>
|
|
<?php }} ?>
|
|
|
|
<tr>
|
|
<td style="text-align:left;"></td>
|
|
<td style="text-align:center;"><b>TOTAL</b></td>
|
|
<td style="text-align:center;"><b><?php echo number_format($_smarty_tpl->getVariable('temp')->value['totalVendidos'],0,'.',',');?>
|
|
</b></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
<?php }?>
|
|
<?php }} ?>
|
|
<?php }} ?>
|