Files
ventas_php/ajax/templates_c/049eb01278a8b0c71c28bbf1a76cab0cf2f545cd.file.detalles-promocion.tpl.php

274 lines
14 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:35:47
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/detalles-promocion.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2130424323538f6703448ce8-56941482%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'049eb01278a8b0c71c28bbf1a76cab0cf2f545cd' =>
array (
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/detalles-promocion.tpl',
1 => 1401906251,
),
),
'nocache_hash' => '2130424323538f6703448ce8-56941482',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div id="divForm">
<fieldset>
<div class="a">
<div class="l"><b>* Nombre:</b></div>
<div class="r">
<div class="txtFrm" style="width:680px"><?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
</div>
</div>
</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<b>* Vigencia</b>
<br />
<div class="txtFrm" style="width:150px">
<?php if ($_smarty_tpl->getVariable('info')->value['vigencia']=="Periodo"){?>Por Periodo<?php }else{ ?>Permanente<?php }?>
</div>
</td>
<td align="left">
<div id="txtFechaIni" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
<b>* Fecha Inicial:</b>
<br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['fechaIni'];?>
</div>
</div>
</td>
<td align="left">
<div id="txtFechaFin" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
<b>* Fecha Final:</b>
<br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFin'];?>
</div>
</div>
</td>
</tr>
<tr>
<td align="left" colspan="3">
* Aplicar Promoci&oacute;n a TODOS los productos?
<br />
<div class="txtFrm" style="width:150px">
<?php if ($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="1"){?>S&iacute;<?php }elseif($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="0"){?>No<?php }?>&nbsp;
</div>
</td>
</tr>
</table>
<div class="a">
<div class="l"><b>* Sucursal:</b></div>
<div class="r listChksV">
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->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 echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
<br />
<?php }} ?>
</div>
</div>
<div id="listProducts" <?php if ($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="1"){?>style="display:none"<?php }?>>
<div class="a">
<div class="l"><b>* Departamento:</b></div>
<div class="r listChksV">
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('categorias')->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 echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
<br />
<?php }} ?>
</div>
</div>
<div class="a">
<div class="l"><b>* L&iacute;nea:</b></div>
<div class="r listChksV">
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('subcategorias')->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 echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
<br />
<?php }} ?>
</div>
</div>
<div class="a">
<div class="l"><b>* Proveedor:</b></div>
<div class="r listChksV">
<?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 echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
<br />
<?php }} ?>
</div>
</div>
<div class="a">
<div class="l"><b>* Producto:</b></div>
<div class="r listChksV">
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('productos')->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 echo $_smarty_tpl->getVariable('item')->value['descripcion'];?>
<br />
<?php }} ?>
</div>
<?php echo count($_smarty_tpl->getVariable('productos')->value);?>
</div>
</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left"><b>* Tipo de Promoci&oacute;n:</b></td>
<td align="left" colspan="2"><b>* Aplica en:</b></td>
</tr>
<tr>
<td align="left" width="230">
<div class="txtFrm" style="width:150px">
<?php if ($_smarty_tpl->getVariable('info')->value['tipo']=="AxB"){?> A x B
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="TotalVentaB"){?> Total Venta x B
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="CompraX"){?> Compra $x
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="BuenFin"){?> Buen Fin
<?php }?>
</div>
</td>
<td align="left" colspan="2">
<div class="txtFrm" style="width:440px">
<?php if ($_smarty_tpl->getVariable('info')->value['aplica']=="XxY"){?> Compra X Prods. al Precio de Y por Producto
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="N1Desc"){?> Compra N Prods. y N+1 aplica un Descuento
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="CompraX"){?> Compra $x y Regala B
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="CompraXabonoM"){?> Compra $x y Abona % a Monedero
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="DescCuenta"){?> Descuento por toda la Cuenta
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="ArtConDesc"){?> Art&iacute;culos despu&eacute;s de $x con Descuento
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="3x2"){?> 3 x 2
<?php }?>
</div>
</td>
</tr>
<tr id="rowXY" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="XxY"){?>style="display:none"<?php }?>>
<td align="left"></td>
<td align="left">
<b>* Valor de X:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorX'];?>
</div>
</td>
<td align="left">
<b>* Valor Y:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorY'];?>
</div>
</td>
</tr>
<tr id="rowTipoDesc" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="N1Desc"&&$_smarty_tpl->getVariable('info')->value['aplica']!="DescCuenta"&&$_smarty_tpl->getVariable('info')->value['aplica']!="ArtConDesc"){?>style="display:none"<?php }?>>
<td align="left">
<b>* Tipo de Descuento:</b> <br />
<div class="txtFrm" style="width:150px">
<?php if ($_smarty_tpl->getVariable('info')->value['tipoDesc']=="Cantidad"){?>Cantidad Fija<?php }else{ ?>Porcentaje<?php }?>
</div>
</td>
<td align="left">
<b>* Valor del Descuento:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
</div>
</td>
<td align="left">
<div id="txtTotalCompra" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="DescCuenta"&&$_smarty_tpl->getVariable('info')->value['aplica']!="ArtConDesc"){?>style="display:none"<?php }?>>
<b>* Total de la Compra:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
</div>
</div>
<div id="txtValorN" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="N1Desc"){?>style="display:none"<?php }?>>
<b>* Valor N:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorN'];?>
</div>
</div>
</td>
</tr>
<tr id="rowTotalVentaB" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraX"){?>style="display:none"<?php }?>>
<td align="left">
<b>* Total de la Compra:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
</div>
</td>
<td align="left">
<b>* Cant. de Art. a Regalar:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['cantArtRegalo'];?>
</div>
</td>
<td align="left"></td>
</tr>
<tr id="rowProdVentaB" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraX"){?>style="display:none"<?php }?>>
<td align="left" colspan="3">
<b>* Producto a Regalar:</b> <br />
<div class="txtFrm" style="width:380px"><?php echo $_smarty_tpl->getVariable('info')->value['producto'];?>
</div>
</td>
</tr>
<tr id="rowTotalVentaM" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraXabonoM"){?>style="display:none"<?php }?>>
<td align="left">
* Total de la Compra: <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
</div>
</td>
<td align="left">
* Porcentaje Abonar: <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
</div>
</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">
<b>* Status:</b> <br />
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['status'];?>
</div>
</td>
<td align="left"></td>
<td align="left"></td>
</tr>
</table>
<div style="clear:both"></div>
<hr />
* Campos requeridos
<div class="formLine" style="text-align:center; padding-left:300px">
<a class="button" id="btnClose"><span>Cerrar</span></a>
</div>
</fieldset>
</div>