Files
ventas_php/ajax/templates_c/8d7cb6e7607a803e8058efcb98d0a18980b17359.file.aplicar-promo-venta-popup.tpl.php

90 lines
3.4 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-07 18:00:15
compiled from "/var/www/html/templates/boxes/aplicar-promo-venta-popup.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1902525564540ce37fdc06b9-75187341%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'8d7cb6e7607a803e8058efcb98d0a18980b17359' =>
array (
0 => '/var/www/html/templates/boxes/aplicar-promo-venta-popup.tpl',
1 => 1410130448,
),
),
'nocache_hash' => '1902525564540ce37fdc06b9-75187341',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('promoId')->value){?>
<div align="center" class="txtH1">PROMOCION APLICADA</div>
<div align="center">
<br />
<?php echo $_smarty_tpl->getVariable('nomPromo')->value;?>
<br /><br />
<table width="50%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center" height="50" width="50%">
<input type="button" style="padding:10px; width:100px" value="Eliminar" onclick="EliminarPromo(<?php echo $_smarty_tpl->getVariable('promoId')->value;?>
)" />
</td>
<td align="center" height="50" width="50%">
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
</td>
</tr>
</table>
</div>
<?php }else{ ?>
<div align="center" class="txtH1">APLICAR PROMOCION</div>
<?php if (count($_smarty_tpl->getVariable('promociones')->value)){?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center"><b>Seleccione la Promoci&oacute;n:</b></td>
</tr>
<tr>
<td align="center">
<select name="promocionId" id="promocionId" class="largeInput">
<option value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('promociones')->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;
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['promocionId'];?>
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
</tr>
</table>
<table width="50%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center" height="50" width="50%">
<input type="button" style="padding:10px; width:100px" value="Aplicar" onclick="AsignarPromo()" />
</td>
<td align="center" height="50" width="50%">
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
</td>
</tr>
</table>
<?php }else{ ?>
<div align="center">
<br />&nbsp;
Ninguna promocion encontrada.
<br /><br />
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
</div>
<?php }?>
<?php }?>