Files
ventas_php/ajax/templates_c/591161057d07ce528947b9336c4d4c6870d31677.file.reportes-devcedis.tpl.php

95 lines
4.4 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-04-30 09:51:11
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-devcedis.tpl" */ ?>
<?php /*%%SmartyHeaderCode:15421923353610ddf592025-94006386%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'591161057d07ce528947b9336c4d4c6870d31677' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-devcedis.tpl',
1 => 1398806205,
),
),
'nocache_hash' => '15421923353610ddf592025-94006386',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.date_format.php';
?><div class="clear"></div>
<!--THIS IS A WIDE PORTLET-->
<div class="portlet">
<br />
<div class="portlet-content nopadding">
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
<thead>
<tr>
<th width="100" scope="col"><div align="center">No. Dev.</div></th>
<th width="120" scope="col"><div align="center">Fecha</div></th>
<th width="" scope="col"><div align="center">Usuario</div></th>
<th width="100" scope="col"><div align="center">Productos</div></th>
<th width="150" scope="col"><div align="center">Total</div></th>
<th width="100" scope="col"><div align="center">Acciones</div></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('devoluciones')->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"><?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
</td>
<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('item')->value['fecha'],"%d-%m-%Y %k:%M:%S");?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['usuario'];?>
</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['totalCantidad'];?>
</td>
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
</td>
<td align="center">
<a href="javascript:void(0)" onclick="ViewProducts(<?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
)" title="Ver Productos">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/details.png" border="0" />
</a>
</td>
</tr>
<tr>
<td colspan="6">
<div id="listProds_<?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
" style="display:none">
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/reportes-devcedis-prods.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);?>
</div>
</td>
</tr>
<?php }} else { ?>
<tr>
<td colspan="6" align="center">Ning&uacute;n registro encontrado.</td>
</tr>
<?php } ?>
<?php if (count($_smarty_tpl->getVariable('devoluciones')->value)){?>
<tr>
<td align="center"></td>
<td align="center"></td>
<td align="center"><b>TOTALES</b></td>
<td align="center"><b><?php echo number_format($_smarty_tpl->getVariable('totalProds')->value,0,'.',',');?>
</b></td>
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('totalTotal')->value,2,'.',',');?>
</b></td>
<td align="center"></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</div>