80 lines
3.2 KiB
Smarty
Executable File
80 lines
3.2 KiB
Smarty
Executable File
<form name="formInven" id="formInven" method="post" action="export/reporte-inventario.php">
|
|
<input type="hidden" name="type" value="rInventario" />
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
<thead>
|
|
<tr>
|
|
<th align="center" width="200"><div align="center">Sucursal</div></th>
|
|
<th align="center" width="250"><div align="center">Proveedor</div></th>
|
|
<th align="center" width="200"><div align="center">Departamento</div></th>
|
|
<th align="center" width="200"><div align="center">Línea</div></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td align="center">
|
|
<div style="text-align:center">
|
|
{if $tipo == "admin" || $tipo == "centralizador" || $tipo == "compras" || $tipo == "direccion" || $tipo == "supervisor"}
|
|
<select name="sucursal" id="sucursal" class="largeInput" style="width:200px">
|
|
<option selected="selected" value=""> Todas</option>
|
|
{foreach from=$resSuc item=item key=key}
|
|
<option value="{$item.sucursalId}"> {$item.nombre|utf8_decode}</option>
|
|
{/foreach}
|
|
</select>
|
|
{elseif $tipo eq "gerente"}
|
|
{foreach from=$resSuc item=item key=key}
|
|
<input type="text" disabled="disabled" style="text-align:center" class="smallInput" value="{$item.nombre}"/>
|
|
<input type="hidden" name="sucursal" id="sucursal" value="{$item.sucursalId}"/>
|
|
{/foreach}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
<td align="center">
|
|
<select name="proveedorId" id="proveedorId" class="largeInput" style="width:250px;">
|
|
<option value="">Todos</option>
|
|
{foreach from=$proveedores item=item key=key}
|
|
<option value="{$item.proveedorId}">{$item.nombre|truncate:50:"..."}</option>
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<td align="center">
|
|
<select name="prodCatId" id="prodCatId" class="largeInput" style="width:200px;" onchange="LoadSubcats()">
|
|
<option value="">Todos</option>
|
|
{foreach from=$departamentos item=item key=key}
|
|
<option value="{$item.prodCatId}">{$item.nombre|truncate:50:"..."}</option>
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<td align="center">
|
|
<div id="enumSubcats">
|
|
<select name="prodSubcatId" id="prodSubcatId" class="largeInput" style="width:200px;">
|
|
<option value="">Todos</option>
|
|
{foreach from=$lineas item=item key=key}
|
|
<option value="{$item.prodSubcatId}">{$item.nombre|truncate:50:"..."}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td align="center" colspan="2">
|
|
<input type="button" name="btnSearch" value="Generar" class="btnSearch" onclick="Rinventario()" />
|
|
</td>
|
|
<td align="center" colspan="1">
|
|
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportInv(); return false;"><img src="{$WEB_ROOT}/images/icons/excel.png" title="Exportar Reporte"/></a></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5">
|
|
<div align="center">
|
|
<div id="loadBusqueda" style="display:none">
|
|
<br />
|
|
<img src="http://www.facturase.com/images/loading.gif" width="16" height="16" />
|
|
<br />Cargando...
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form> |