Files
ventas_php/ajax/templates_c/c30c4d08b517f6af699e608dc39b9eee371fd763.file.cuentas-pagar2.tpl.php

65 lines
3.6 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-05-19 12:32:25
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/cuentas-pagar2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1652244217537a4029e8ac56-90377399%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'c30c4d08b517f6af699e608dc39b9eee371fd763' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/cuentas-pagar2.tpl',
1 => 1400520697,
),
),
'nocache_hash' => '1652244217537a4029e8ac56-90377399',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/cuentas-pagar-header2.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('proveedores')->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;
?>
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/cuentas-pagar-base2.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/cuentas-pagar-base2.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
<?php }} else { ?>
<tr><td colspan="9" align="center">Ning&uacute;n registro encontrado.</td>
<?php } ?>
<?php if ($_smarty_tpl->getVariable('tipo')->value=="search"&&count($_smarty_tpl->getVariable('proveedores')->value)>0){?>
<tr>
<td></td>
<td align="center"><b>TOTALES</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['total'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalAbonos'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalNotas'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalDesc'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalBonif'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalDev'],2,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('info')->value['totalSaldo'],2,'.',',');?>
</b></td>
<td></td>
</tr>
<?php }?>