Files
ventas_php/templates/forms/filtro-tempo.tpl

61 lines
2.3 KiB
Smarty
Executable File

<form name="formTempo" id="formTempo" method="post" action="export/exportarexcel.php">
<input type="hidden" name="type" id="type" value="tipoTempo"/>
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th align="center" colspan="1" width="50%"><div align="center">Temporada</div></th>
<th align="center" colspan="1" width="25%"><div align="center">Sucursal</div></th>
<th align="center" colspan="1" width="25%"><div align="center">A&ntilde;o</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div style="text-align:center">
<select name="temporada" id="temporada" class="largeInput">
<option selected="selected" value=""> Todas</option>
{foreach from=$resTemp item=item key=key}
<option value="{$item.temporadaId}"> {$item.nombre}</option>
{/foreach}
</select>
</div>
</td>
<td>
<div style="text-align:center">
{if $tipo eq "admin"}
<select name="sucursal" id="sucursal" class="largeInput">
<option selected="selected" value="">Todas</option>
{foreach from=$resSuc item=item key=key}
<option value="{$item.sucursalId}"> {$item.nombre}</option>
{/foreach}
</select>
{elseif $tipo eq "gerente" || $tipo eq "vendedor"}
{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>
<div style="text-align:center">
<select name="anio" id="anio" class="largeInput">
<option selected="selected" value="">Seleccione</option>
{foreach from=$anio item=item key=key}
<option value="{$item}"> {$item}</option>
{/foreach}
</select>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="7">
<input type="button" name="btnReporteTempo" id="btnReporteTempo" value="Generar" class="btnSearch" onclick="ReporteTempo()"/>
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportTempo(); return false;"><img src="{$WEB_ROOT}/images/icons/excel.png" title="Exportar Reporte"/></a></div>
</td>
</tr>
</tbody>
</table>
</form>