64 lines
2.7 KiB
Smarty
Executable File
64 lines
2.7 KiB
Smarty
Executable File
<form name="frmVend" id="frmVend" method="post" action="export/exportarexcel.php">
|
|
<input type="hidden" name="type" id="type" value="tipoVend" />
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
<thead>
|
|
<tr>
|
|
<th align="center" colspan="2" width="50%"><div align="center">Periodo</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">Vendedor</div></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<div style="float:left">
|
|
Inicial:<input style="text-align:center" type="text" name="fechaI" id="fechaI" class="smallInput" style="width:120px" maxlength="10" readonly="readonly" value="{$dateNow}" />
|
|
</div>
|
|
<div style="float:left; padding-left:10px; 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 style="text-align:center" type="text" name="fechaF" id="fechaF" class="smallInput" style="width:120px" maxlength="10" readonly="readonly" value="{$dateNow}"/>
|
|
</div>
|
|
<div style="float:left; padding-left:10px; padding-top:5px">
|
|
<a href="javascript:void(0)" onclick="NewCal('fechaF','ddmmyyyy')">
|
|
<img src="{$WEB_ROOT}/images/icons/calendar.gif" /></a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
{if $tipo eq "admin"}
|
|
|
|
<select name="sucursalId2" id="sucursalId2" class="largeInput" onchange="LoadVendedores()" style="width:200px">
|
|
<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}
|
|
<div style="text-align:center">
|
|
<input type="text" disabled="disabled" style="text-align:center" class="smallInput" value="{$item.nombre}"/>
|
|
<input type="hidden" name="sucursalId2" id="sucursalId2" value="{$item.sucursalId}"/>
|
|
</div>
|
|
{/foreach}
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
<div id="selectVend">{include file="{$DOC_ROOT}/templates/forms/select-vend.tpl"}</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="7">
|
|
<input type="button" name="btnReporteVend" id="btnReporteVend" value="Generar" class="btnSearch" onclick="ReporteVend()"/>
|
|
<div style="float:right; padding-right:50px"><a href="javascript:void(0)" onclick="ExportVend()"><img src="{$WEB_ROOT}/images/icons/excel.png" title="Exportar Reporte"/></a></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|