Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,277 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-10-02 12:27:14
|
||||
compiled from "/var/www/html/templates/forms/editar-promocion.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1440760789542d8af2937482-95916378%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd6708463b7d3b709a601c93b6476c85ab936d0f8' =>
|
||||
array (
|
||||
0 => '/var/www/html/templates/forms/editar-promocion.tpl',
|
||||
1 => 1410130451,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1440760789542d8af2937482-95916378',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div id="divForm">
|
||||
<form name="frmPromocion" id="frmPromocion" method="post" action="">
|
||||
<input type="hidden" name="type" id="type" value="saveEditPromocion" />
|
||||
<input type="hidden" name="promocionId" id="promocionId" value="<?php echo $_smarty_tpl->getVariable('info')->value['promocionId'];?>
|
||||
" />
|
||||
<fieldset>
|
||||
|
||||
<div class="a">
|
||||
<div class="l">* Nombre:</div>
|
||||
<div class="r"><input type="text" name="name" id="name" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
|
||||
"></div>
|
||||
</div>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
* Vigencia
|
||||
<br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumVigenciaPromo.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);?>
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
<div id="txtFechaIni" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
|
||||
* Fecha Inicial:
|
||||
<br />
|
||||
<input type="text" class="largeInput" style="width:100px" name="fechaIni" id="fechaIni" maxlength="10" value="<?php echo $_smarty_tpl->getVariable('info')->value['fechaIni'];?>
|
||||
" />
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaIni','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" border="0" />
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
<td align="left">
|
||||
<div id="txtFechaFin" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
|
||||
* Fecha Final:
|
||||
<br />
|
||||
<input type="text" class="largeInput" style="width:100px" name="fechaFin" id="fechaFin" maxlength="10" value="<?php echo $_smarty_tpl->getVariable('info')->value['fechaFin'];?>
|
||||
" />
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaFin','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" border="0" />
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" colspan="3">
|
||||
* Aplicar Promoción a TODOS los productos?
|
||||
<br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumPromoAplicar.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);?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="a">
|
||||
<div style="float:left">* Sucursal:</div>
|
||||
<div style="float:right; padding-right:20px">
|
||||
<input type="checkbox" name="checkSuc" id="checkSuc" value="1" onclick="CheckAllSuc()" />Marcar Todos
|
||||
</div>
|
||||
<div class="r listChks" style="clear:both">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumSucPromo.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>
|
||||
</div>
|
||||
|
||||
<div id="listProducts" <?php if ($_smarty_tpl->getVariable('info')->value['aplicaTodos']){?>style="display:none"<?php }?>>
|
||||
|
||||
<div class="a">
|
||||
<div style="float:left">* Departamento:</div>
|
||||
<div style="float:right; padding-right:20px">
|
||||
<input type="checkbox" name="checkDepto" id="checkDepto" value="1" onclick="CheckAllDepto()" />Marcar Todos
|
||||
</div>
|
||||
<div class="r listChks" style="clear:both">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProdCatPromo.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>
|
||||
</div>
|
||||
|
||||
<div class="a">
|
||||
<div style="float:left">* Línea:</div>
|
||||
<div style="float:right; padding-right:20px">
|
||||
<input type="checkbox" name="checkLinea" id="checkLinea" value="1" onclick="CheckAllLinea()" />Marcar Todos
|
||||
</div>
|
||||
<div class="r listChks" id="enumSubcats" style="clear:both">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProdSubcatPromo.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>
|
||||
<div align="right">
|
||||
<input type="button" value="Actualizar Líneas" style="padding:6px; margin-right:15px" onclick="LoadSubcats()" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="a">
|
||||
<div style="float:left">* Proveedor:</div>
|
||||
<div style="float:right; padding-right:20px">
|
||||
<input type="checkbox" name="checkProv" id="checkProv" value="1" onclick="CheckAllProv()" />Marcar Todos
|
||||
</div>
|
||||
<div class="r listChks" style="clear:both">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProvPromo.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>
|
||||
</div>
|
||||
|
||||
<div class="a">
|
||||
<div style="float:left">* Producto:</div>
|
||||
<div style="float:right; padding-right:20px">
|
||||
<input type="checkbox" name="checkProd" id="checkProd" value="1" onclick="CheckAllProd()" />Marcar Todos
|
||||
</div>
|
||||
<div class="r listChks" id="enumProds" style="clear:both">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProdPromo.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>
|
||||
</div>
|
||||
<div id="cantProds" style="float:left"></div>
|
||||
<div align="right">
|
||||
<input type="button" value="Actualizar Productos" style="padding:6px; margin-right:15px" onclick="LoadProductos()" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="left">* Tipo de Promoción:</td>
|
||||
<td align="left" colspan="2">* Aplica en:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="230">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumTiposPromo.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);?>
|
||||
|
||||
</td>
|
||||
<td align="left" colspan="2">
|
||||
<div id="enumAplica">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumAplicarPromo.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>
|
||||
<tr id="rowXY" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="XxY"){?>style="display:none"<?php }?>>
|
||||
<td align="left"></td>
|
||||
<td align="left">
|
||||
* Valor de X: <br />
|
||||
<input type="text" class="largeInput" name="valorX" id="valorX" value="<?php echo $_smarty_tpl->getVariable('info')->value['valorX'];?>
|
||||
" />
|
||||
</td>
|
||||
<td align="left">
|
||||
* Valor Y: <br />
|
||||
<input type="text" class="largeInput" name="valorY" id="valorY" value="<?php echo $_smarty_tpl->getVariable('info')->value['valorY'];?>
|
||||
" />
|
||||
</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">
|
||||
* Tipo de Descuento: <br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumDesctosPromo.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);?>
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
* Valor del Descuento: <br />
|
||||
<input type="text" class="largeInput" name="valorDesc" id="valorDesc" value="<?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
|
||||
" />
|
||||
</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 }?>>
|
||||
* Total de la Compra: <br />
|
||||
<input type="text" class="largeInput" name="totalCompra" id="totalCompra" value="<?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
||||
" />
|
||||
</div>
|
||||
<div id="txtValorN" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="N1Desc"){?>style="display:none"<?php }?>>
|
||||
* Valor N: <br />
|
||||
<input type="text" class="largeInput" name="valorN" id="valorN" value="<?php echo $_smarty_tpl->getVariable('info')->value['valorN'];?>
|
||||
" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="rowTotalVentaB" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraX"){?>style="display:none"<?php }?>>
|
||||
<td align="left">
|
||||
* Total de la Compra: <br />
|
||||
<input type="text" class="largeInput" name="totalCompra2" id="totalCompra2" value="<?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
||||
" />
|
||||
</td>
|
||||
<td align="left">
|
||||
* Cant. de Art. a Regalar: <br />
|
||||
<div id="inputValorDesc">
|
||||
<input type="text" class="largeInput" name="cantArtRegalo" id="cantArtRegalo" value="<?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">
|
||||
* Código Producto a Regalar: <br />
|
||||
<input type="text" class="largeInput" name="codigoProd" id="codigoProd" onblur="LoadInfoProd()" value="<?php echo $_smarty_tpl->getVariable('info')->value['codigoBarra'];?>
|
||||
" />
|
||||
<div id="infoProd"><?php echo $_smarty_tpl->getVariable('info')->value['nomProd'];?>
|
||||
</div>
|
||||
<input type="hidden" name="prodId" id="prodId" value="<?php echo $_smarty_tpl->getVariable('info')->value['productoId'];?>
|
||||
" />
|
||||
</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 />
|
||||
<input type="text" class="largeInput" name="totalCompraM" id="totalCompraM" value="<?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
||||
" />
|
||||
</td>
|
||||
<td align="left">
|
||||
* Porcentaje Abonar: <br />
|
||||
<input type="text" class="largeInput" name="porcentajeM" id="porcentajeM" value="<?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
|
||||
" />
|
||||
</td>
|
||||
<td align="left"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
* Status: <br />
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumStatusPromo.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);?>
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
Aplica en Productos Rebajados
|
||||
<br />
|
||||
<input type="checkbox" name="rebajado" id="rebajado" value="1" <?php if ($_smarty_tpl->getVariable('info')->value['rebajado']){?>checked<?php }?> />
|
||||
</td>
|
||||
<td align="left"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<hr />
|
||||
* Campos requeridos
|
||||
|
||||
<div align="center" id="loader" style="display:none">
|
||||
Este proceso puede tardar unos minutos.
|
||||
<br />Por favor, espere.
|
||||
<br /><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/loading.gif" />
|
||||
</div>
|
||||
|
||||
<div class="formLine" style="text-align:center; padding-left:310px">
|
||||
<a class="button" id="btnEdit"><span>Actualizar</span></a>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user