Files
ventas_php/ajax/templates_c/99b321f1ae3df2716e63a160773206de86d09637.file.pagos-venta.tpl.php

82 lines
3.7 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:32:27
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/pagos-venta.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7062066185360fb6ba020f8-42081319%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'99b321f1ae3df2716e63a160773206de86d09637' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/pagos-venta.tpl',
1 => 1376566866,
),
),
'nocache_hash' => '7062066185360fb6ba020f8-42081319',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="frmPagos" id="frmPagos">
<input type="hidden" name="action" id="action" value="savePagos" />
<input type="hidden" name="idVta" id="idVta" value="" />
<input type="hidden" name="k" id="k" value="" />
<input type="hidden" name="codigoAbonar" id="codigoAbonar" value="" />
<input type="hidden" name="idVendedor" id="idVendedor" value="" />
<table width="100%" cellpadding="0" cellspacing="0" border="1">
<tr>
<td align="center" width="50%" height="30"><b>Forma de Pago</b></td>
<td align="center"><b>Cantidad</b></td>
<td align="center" width="10"></td>
</tr>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('pagos')->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">
<select class="largeInput" name="metodoPago[<?php echo $_smarty_tpl->getVariable('key')->value;?>
]" id="idMetodoPago_<?php echo $_smarty_tpl->getVariable('key')->value;?>
" onchange="CheckMetodoPago(<?php echo $_smarty_tpl->getVariable('key')->value;?>
)">
<option value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('metodosPago')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
?>
<option value="<?php echo $_smarty_tpl->getVariable('it')->value['metodoPagoId'];?>
" <?php if ($_smarty_tpl->getVariable('it')->value['metodoPagoId']==$_smarty_tpl->getVariable('item')->value['metodoPagoId']){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('it')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
<td align="center" valign="top">
<input type="text" class="largeInput" name="cantidad_<?php echo $_smarty_tpl->getVariable('key')->value;?>
" value="<?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
" onkeyup="CheckKeyPago()" autofocus="autofocus" <?php if ($_smarty_tpl->getVariable('item')->value['metodoPagoId']==6){?>readonly<?php }?> />
</td>
<td align="center">
<?php if ($_smarty_tpl->getVariable('item')->value['metodoPagoId']!=6){?>
<a href="javascript:void(0)" onclick="DeletePago(<?php echo $_smarty_tpl->getVariable('key')->value;?>
)">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/delete.gif" border="0" />
</a>
<?php }?>
</td>
</tr>
<?php }} else { ?>
<tr>
<td colspan="3" align="center" height="30">Ning&uacute;n registro encontrado.</td>
</tr>
<?php } ?>
</table>
</form>