218 lines
11 KiB
Smarty
Executable File
218 lines
11 KiB
Smarty
Executable File
<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="{$info.promocionId}" />
|
|
<fieldset>
|
|
|
|
<div class="a">
|
|
<div class="l">* Nombre:</div>
|
|
<div class="r"><input type="text" name="name" id="name" class="largeInput wide2" value="{$info.nombre}"></div>
|
|
</div>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td align="left">
|
|
* Vigencia
|
|
<br />
|
|
{include file="{$DOC_ROOT}/templates/lists/enumVigenciaPromo.tpl"}
|
|
</td>
|
|
<td align="left">
|
|
<div id="txtFechaIni" {if $info.vigencia != "Periodo"}style="display:none"{/if}>
|
|
* Fecha Inicial:
|
|
<br />
|
|
<input type="text" class="largeInput" style="width:100px" name="fechaIni" id="fechaIni" maxlength="10" value="{$info.fechaIni}" />
|
|
<a href="javascript:void(0)" onclick="NewCal('fechaIni','ddmmyyyy')">
|
|
<img src="{$WEB_ROOT}/images/icons/calendar.gif" border="0" />
|
|
</a>
|
|
</div>
|
|
</td>
|
|
<td align="left">
|
|
<div id="txtFechaFin" {if $info.vigencia != "Periodo"}style="display:none"{/if}>
|
|
* Fecha Final:
|
|
<br />
|
|
<input type="text" class="largeInput" style="width:100px" name="fechaFin" id="fechaFin" maxlength="10" value="{$info.fechaFin}" />
|
|
<a href="javascript:void(0)" onclick="NewCal('fechaFin','ddmmyyyy')">
|
|
<img src="{$WEB_ROOT}/images/icons/calendar.gif" border="0" />
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" colspan="3">
|
|
* Aplicar Promoción a TODOS los productos?
|
|
<br />
|
|
{include file="{$DOC_ROOT}/templates/lists/enumPromoAplicar.tpl"}
|
|
</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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumSucPromo.tpl"}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="listProducts" {if $info.aplicaTodos}style="display:none"{/if}>
|
|
|
|
<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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumProdCatPromo.tpl"}
|
|
</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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumProdSubcatPromo.tpl"}
|
|
</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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumProvPromo.tpl"}
|
|
</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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumProdPromo.tpl"}
|
|
</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">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumTiposPromo.tpl"}
|
|
</td>
|
|
<td align="left" colspan="2">
|
|
<div id="enumAplica">
|
|
{include file="{$DOC_ROOT}/templates/lists/enumAplicarPromo.tpl"}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="rowXY" {if $info.aplica != "XxY"}style="display:none"{/if}>
|
|
<td align="left"></td>
|
|
<td align="left">
|
|
* Valor de X: <br />
|
|
<input type="text" class="largeInput" name="valorX" id="valorX" value="{$info.valorX}" />
|
|
</td>
|
|
<td align="left">
|
|
* Valor Y: <br />
|
|
<input type="text" class="largeInput" name="valorY" id="valorY" value="{$info.valorY}" />
|
|
</td>
|
|
</tr>
|
|
<tr id="rowTipoDesc" {if $info.aplica != "N1Desc" && $info.aplica != "DescCuenta" && $info.aplica != "ArtConDesc"}style="display:none"{/if}>
|
|
<td align="left">
|
|
* Tipo de Descuento: <br />
|
|
{include file="{$DOC_ROOT}/templates/lists/enumDesctosPromo.tpl"}
|
|
</td>
|
|
<td align="left">
|
|
* Valor del Descuento: <br />
|
|
<input type="text" class="largeInput" name="valorDesc" id="valorDesc" value="{$info.valorDesc}" />
|
|
</td>
|
|
<td align="left">
|
|
<div id="txtTotalCompra" {if $info.aplica != "DescCuenta" && $info.aplica != "ArtConDesc"}style="display:none"{/if}>
|
|
* Total de la Compra: <br />
|
|
<input type="text" class="largeInput" name="totalCompra" id="totalCompra" value="{$info.totalCompra}" />
|
|
</div>
|
|
<div id="txtValorN" {if $info.aplica != "N1Desc"}style="display:none"{/if}>
|
|
* Valor N: <br />
|
|
<input type="text" class="largeInput" name="valorN" id="valorN" value="{$info.valorN}" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="rowTotalVentaB" {if $info.aplica != "CompraX"}style="display:none"{/if}>
|
|
<td align="left">
|
|
* Total de la Compra: <br />
|
|
<input type="text" class="largeInput" name="totalCompra2" id="totalCompra2" value="{$info.totalCompra}" />
|
|
</td>
|
|
<td align="left">
|
|
* Cant. de Art. a Regalar: <br />
|
|
<div id="inputValorDesc">
|
|
<input type="text" class="largeInput" name="cantArtRegalo" id="cantArtRegalo" value="{$info.cantArtRegalo}" />
|
|
</div>
|
|
</td>
|
|
<td align="left"></td>
|
|
</tr>
|
|
<tr id="rowProdVentaB" {if $info.aplica != "CompraX"}style="display:none"{/if}>
|
|
<td align="left" colspan="3">
|
|
* Código Producto a Regalar: <br />
|
|
<input type="text" class="largeInput" name="codigoProd" id="codigoProd" onblur="LoadInfoProd()" value="{$info.codigoBarra}" />
|
|
<div id="infoProd">{$info.nomProd}</div>
|
|
<input type="hidden" name="prodId" id="prodId" value="{$info.productoId}" />
|
|
</td>
|
|
</tr>
|
|
<tr id="rowTotalVentaM" {if $info.aplica != "CompraXabonoM"}style="display:none"{/if}>
|
|
<td align="left">
|
|
* Total de la Compra: <br />
|
|
<input type="text" class="largeInput" name="totalCompraM" id="totalCompraM" value="{$info.totalCompra}" />
|
|
</td>
|
|
<td align="left">
|
|
* Porcentaje Abonar: <br />
|
|
<input type="text" class="largeInput" name="porcentajeM" id="porcentajeM" value="{$info.valorDesc}" />
|
|
</td>
|
|
<td align="left"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">
|
|
* Status: <br />
|
|
{include file="{$DOC_ROOT}/templates/lists/enumStatusPromo.tpl"}
|
|
</td>
|
|
<td align="left">
|
|
Aplica en Productos Rebajados
|
|
<br />
|
|
<input type="checkbox" name="rebajado" id="rebajado" value="1" {if $info.rebajado}checked{/if} />
|
|
</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="{$WEB_ROOT}/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> |