Files
ventas_php/ajax/templates_c/6299e6a87db27c5e67eb1b889826a8adca6bf868.file.reportes-prod-prov.tpl.php

84 lines
3.8 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-06-27 19:03:04
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov.tpl" */ ?>
<?php /*%%SmartyHeaderCode:74122701053ae0638466051-73606955%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6299e6a87db27c5e67eb1b889826a8adca6bf868' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov.tpl',
1 => 1403913719,
),
),
'nocache_hash' => '74122701053ae0638466051-73606955',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div align="center"><b><?php echo $_smarty_tpl->getVariable('titulo')->value;?>
</b></div>
<br />
<div align="center">
<span style="color:#FF0000">Los datos no son generados en tiempo real.</span>
<br />
Ult. Act. del Reporte: <?php echo $_smarty_tpl->getVariable('fechaRep')->value;?>
</div>
<br />
<table width="<?php echo $_smarty_tpl->getVariable('width')->value+410;?>
" cellpadding="0" cellspacing="0" border="1">
<?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 if (count($_smarty_tpl->getVariable('suc')->value['productos'])>0){?>
<tr>
<td align="left" height="25" style="background-color:#CCCCCC; border:1px solid #000000">
<b><?php echo urldecode($_smarty_tpl->getVariable('suc')->value['nombre']);?>
</b>
</td>
<td width="80" align="center" style="background-color:#CCCCCC; border:1px solid #000000">
<a href="javascript:void(0)" onclick="ShowProdProv(<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
)">
<div id="showHide_<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
">[+]</div>
</a>
</td>
</tr>
<tr>
<td colspan="2" style="display:none" id="sucPP_<?php echo $_smarty_tpl->getVariable('suc')->value['sucursalId'];?>
">
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/reportes-prod-prov-item.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
</td>
</tr>
<?php }?>
<?php }} ?>
</table>
<table width="<?php echo $_smarty_tpl->getVariable('width')->value+410;?>
" cellpadding="0" cellspacing="0" border="1">
<tr>
<td align="left" height="25" style="background-color:#CCCCCC; border:1px solid #000000">
<b>Totales Generales</b>
</td>
<td width="80" align="center" style="background-color:#CCCCCC; border:1px solid #000000">
<a href="javascript:void(0)" onclick="ShowProdProv('Totales')">
<div id="showHide_Totales">[+]</div>
</a>
</td>
</tr>
<tr>
<td colspan="2" style="display:none" id="sucPP_Totales">
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/reportes-prod-prov-totales.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
</td>
</tr>
</table>