Primer commit del sistema avantika sin cambios
This commit is contained in:
174
templates/forms/editar-producto.tpl
Executable file
174
templates/forms/editar-producto.tpl
Executable file
@@ -0,0 +1,174 @@
|
||||
<div id="divForm">
|
||||
<form id="frmEditarProducto" name="frmEditarProducto" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="type" name="type" value="saveEditProducto" />
|
||||
<input type="hidden" id="productoId" name="productoId" value="{$info.productoId}" />
|
||||
<input type="hidden" id="k" name="k" value="" />
|
||||
<input type="hidden" id="tmpImg" name="tmpImg" value="" />
|
||||
<input type="hidden" name="conTallaId" id="conTallaId" value="1" />
|
||||
<fieldset>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td width="130" height="40">* Proveedor:</td>
|
||||
<td>
|
||||
<input name="proveedor" id="proveedor" type="text" class="largeInput" style="width:290px" onkeyup="SuggestProveedor()" value="{$info.proveedor}"/>
|
||||
<input type="hidden" name="proveedorId" id="proveedorId" value="{$info.proveedorId}" />
|
||||
<div style="position:relative">
|
||||
<div class="suggestGral" style="display:none;" id="sugProvDiv"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="130">* Departamento:</td>
|
||||
<td>{include file="{$DOC_ROOT}/templates/lists/enumProdCat.tpl"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">* Línea:</td>
|
||||
<td><div id="enumSubcats">{include file="{$DOC_ROOT}/templates/lists/enumProdSubcat.tpl"}</div></td>
|
||||
<td width="10"></td>
|
||||
<td>* Modelo:</td>
|
||||
<td><input name="modelo" id="modelo" type="text" class="largeInput" style="width:290px" value="{$info.modelo}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>* Código de Barra</td>
|
||||
<td><input name="codigoBarra" id="codigoBarra" type="text" class="largeInput" style="width:290px" onblur="LoadBarCodes()" value="{$info.codigoBarra}"/></td>
|
||||
<td width="10"></td>
|
||||
<td height="40">{* * Conjunto de Tallas: *}</td>
|
||||
<td>{* include file="{$DOC_ROOT}/templates/lists/enumConTallas.tpl" *}</td>
|
||||
</tr>
|
||||
{*}
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="50"><b>.:: ATRIBUTOS ::.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="left">
|
||||
<div class="formLine">
|
||||
<div style="width:150px;float:left">* Tallas:</div>
|
||||
<div id="listTallas">
|
||||
{foreach from=$tallas item=item key=key}
|
||||
<div style="width:150px;float:left">
|
||||
<input type="checkbox" name="tallas[]" id="talla_{$item.tallaId}" onclick="LoadBarCodes()" value="{$item.tallaId}" {if $item.checked}checked{/if} />{$item.nombre}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:150px;float:left">* Colores:</div>
|
||||
{foreach from=$colores item=item key=key}
|
||||
<div style="width:150px;float:left">
|
||||
<input type="checkbox" name="colores[]" id="color_{$item.atribValId}" value="{$item.atribValId}" onclick="LoadBarCodes()" {if $item.exist == "1"}checked{/if} />{$item.nombre}
|
||||
</div>
|
||||
{/foreach}
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div id="enumAtributos">
|
||||
{include file="{$DOC_ROOT}/templates/lists/enumAtributos.tpl"}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{*}
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="50"><b>.:: COMPOSICION ::.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<div class="formLine" id="materiales">
|
||||
{include file="{$DOC_ROOT}/templates/lists/productos-materiales.tpl"}
|
||||
</div>
|
||||
|
||||
<div align="right" style="margin-right:20px">
|
||||
<a href="javascript:void(0)" onclick="AddMaterial()">
|
||||
+ Agregar Material
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="20"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Caract. Especiales:</td>
|
||||
<td><input name="descripcion" id="descripcion" type="text" class="largeInput" style="width:290px" value="{$info.descripcion}"/></td>
|
||||
<td width="10"></td>
|
||||
<td>* Temporada:</td>
|
||||
<td>{include file="{$DOC_ROOT}/templates/lists/enumTemporadas.tpl"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">* Costo sin IVA:</td>
|
||||
<td><input name="costo" id="costo" type="text" class="largeInput" style="width:290px" value="{$info.costo}" onblur="CalcUtilidad()"/></td>
|
||||
<td width="10"></td>
|
||||
<td>* Precio Vta. con IVA:</td>
|
||||
<td><input name="precioVentaIva" id="precioVentaIva" type="text" class="largeInput" style="width:290px" value="{$info.precioVentaIva}" onblur="CalcPrecioSinIva()"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">% Utilidad:</td>
|
||||
<td><div id="porcUtilidad" class="txtFrm">{$info.porcUtilidad}</div>
|
||||
<input type="hidden" name="utilidad" id="utilidad" value="{$info.utilidad}" />
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td>Precio Vta. sin IVA:</td>
|
||||
<td>
|
||||
<div id="txtPrecioVenta" class="txtFrm">{$info.precioVenta}</div>
|
||||
<input type="hidden" id="precioVenta" name="precioVenta" value="{$info.precioVenta}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="50"><b>.:: IMAGEN ::.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
{if $info.imagen != ""}
|
||||
<a href="{$WEB_ROOT}/images/productos/{$info.imagen}" rel="clearbox">
|
||||
<img src="{$WEB_ROOT}/images/productos/{$info.imagen}" width="100" height="100" border="0" />
|
||||
</a>
|
||||
<br />
|
||||
<input type="checkbox" name="delImage" id="delImage" value="1" />Eliminar imagen
|
||||
<br />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center"><input type="file" name="imagen" id="imagen" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="50"><b>.:: CODIGOS DE BARRA ::.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<div id="codigos">
|
||||
{include file="{$DOC_ROOT}/templates/lists/productos-codigos.tpl"}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="formLine">
|
||||
<hr />
|
||||
* Campos requeridos
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div align="center" style="display:none" id="loader">
|
||||
<img src="{$WEB_ROOT}/images/loading.gif">
|
||||
<br>
|
||||
Guardando Información...
|
||||
<br />Este proceso puede tardar unos segundos.
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<div style="margin-left:415px">
|
||||
<a class="button" name="btnSave" onclick="EditProducto()"><span>Guardar</span></a>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<br /><br />
|
||||
<div style="margin-left:410px"><a href="{$WEB_ROOT}/productos"><< Regresar</a></div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user