90 lines
3.5 KiB
PHP
Executable File
90 lines
3.5 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:32:25
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/aplicar-promo-venta-popup.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:12444975585360fb69427739-10193678%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'0b489822468666ca13af16c8622be5973f7b47cd' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/aplicar-promo-venta-popup.tpl',
|
|
1 => 1375965211,
|
|
),
|
|
),
|
|
'nocache_hash' => '12444975585360fb69427739-10193678',
|
|
'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ó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 />
|
|
Ninguna promocion encontrada.
|
|
<br /><br />
|
|
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
|
|
</div>
|
|
<?php }?>
|
|
|
|
<?php }?>
|