62 lines
2.6 KiB
Smarty
Executable File
62 lines
2.6 KiB
Smarty
Executable File
<form name="formV" id="formV" method="post" action="export/general-dias.php">
|
|
<input type="hidden" name="type" id="type" value="tipoGralDias" />
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
<thead>
|
|
<tr>
|
|
<th width="500" align="center" colspan="2"><div align="center">Periodo</div></th>
|
|
<th width="400" 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>
|
|
{if $tipo eq "admin"}
|
|
<td align="center">
|
|
<select name="sucursalId" id="sucursalId" 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" || $tipo eq "vendedor"}
|
|
<td align="center">
|
|
{foreach from=$resSuc item=item key=key}
|
|
<input type="text" disabled="disabled" style="text-align:center" name="nomSucursal" id="nomSucursal" class="smallInput" value="{$item.nombre}"/>
|
|
<input type="hidden" name="sucursalId" id="sucursalId" 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="ExportGral()"/>
|
|
<div style="float:right; padding-right:50px">
|
|
<a href="javascript:void(0)" onclick="ExportGral()">
|
|
<img src="{$WEB_ROOT}/images/icons/excel.png" title="Exportar Reporte" border="0"/>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form> |