66 lines
2.8 KiB
Smarty
Executable File
66 lines
2.8 KiB
Smarty
Executable File
<form name="formMasVend" id="formMasVend" method="post" action="export/exportarexcel.php">
|
|
<input type="hidden" name="type" id="type" value="tipoProMasVend" />
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
<thead>
|
|
<tr>
|
|
<th width="450" align="center" colspan="2"><div align="center">Periodo</div></th>
|
|
<th width="150" align="center"><div align="center">Orden</div></th>
|
|
<th width="260" align="center"><div align="center">Sucursal</div></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<div style="float:left">
|
|
Inicial:<input type="text" style="text-align:center" name="fechaI" id="fechaI" class="smallInput" style="width:140px" maxlength="10" readonly="readonly" value="{$dateNow}" align="middle"/>
|
|
</div>
|
|
<div style="float:left; padding-left:15px; padding-top:5px">
|
|
<a href="javascript:void(0)" onclick="NewCal('fechaI','ddmmyyyy')">
|
|
<img src="{$WEB_ROOT}/images/icons/calendar.gif" /></a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div style="float:left">
|
|
Final: <input type="text" style="text-align:center" name="fechaF" id="fechaF" class="smallInput" style="width:140px" maxlength="10" readonly="readonly" value="{$dateNow}" align="middle"/>
|
|
</div>
|
|
<div style="float:left; padding-left:15px; padding-top:5px">
|
|
<a href="javascript:void(0)" onclick="NewCal('fechaF','ddmmyyyy')">
|
|
<img src="{$WEB_ROOT}/images/icons/calendar.gif" /></a>
|
|
</div>
|
|
</td>
|
|
<td align="center">
|
|
<select name="orden" id="orden" class="largeInput">
|
|
<option value="mayor" selected="selected">Más Vendido</option>
|
|
<option value="menor">Menos Vendido</option>
|
|
</select>
|
|
|
|
</td>
|
|
{if $tipo eq "admin"}
|
|
<td align="center">
|
|
<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>
|
|
</td>
|
|
{elseif $tipo eq "gerente"}
|
|
<td align="center">
|
|
{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}
|
|
</td>
|
|
{/if}
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="7">
|
|
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="ReporteProMasVend();"/>
|
|
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportProdVend(); return false;"><img src="{$WEB_ROOT}/images/icons/excel.png" title="Exportar Reporte"/></a></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form> |