Files
ventas_php/templates_c/d4cffdca04388aef0921a91d0eb5435f80c9c847.file.search-reportes-devcedis.tpl.php

93 lines
3.8 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:16:59
compiled from "./templates/forms/search-reportes-devcedis.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1419687506540a2037453b11-19391481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'd4cffdca04388aef0921a91d0eb5435f80c9c847' =>
array (
0 => './templates/forms/search-reportes-devcedis.tpl',
1 => 1410130452,
),
),
'nocache_hash' => '1419687506540a2037453b11-19391481',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="frmDevCedis" id="frmDevCedis" method="post" action="export/reporte-devcedis.php">
<input type="hidden" name="type" id="type" value="search" />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th width="100"></th>
<th align="center"><div align="center">Fecha Inicial</div></th>
<th align="center"><div align="center">Fecha Final</div></th>
<th align="center"><div align="center">Sucursal</div></th>
<th width="100"></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>
<div style="float:left; padding-left:20px;">
<input type="text" style="text-align:center" name="fechaI" id="fechaI" class="smallInput" style="width:140px" maxlength="10" readonly="readonly" value="<?php echo $_smarty_tpl->getVariable('fechaHoy')->value;?>
" align="middle"/>
</div>
<div style="float:left; padding-left:15px; padding-top:5px">
<a href="javascript:void(0)" onclick="NewCal('fechaI','ddmmyyyy')">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/calendar.gif" /></a>
</div>
</td>
<td>
<div style="float:left; padding-left:20px">
<input type="text" style="text-align:center" name="fechaF" id="fechaF" class="smallInput" style="width:140px" maxlength="10" readonly="readonly" value="<?php echo $_smarty_tpl->getVariable('fechaHoy')->value;?>
" align="middle"/>
</div>
<div style="float:left; padding-left:15px; padding-top:5px">
<a href="javascript:void(0)" onclick="NewCal('fechaF','ddmmyyyy')">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/calendar.gif" /></a>
</div>
</td>
<td>
<select name="sucursalId2" id="sucursalId2" class="smallInput" style="width:200px">
<option value="">Todas</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursals')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
" <?php if ($_smarty_tpl->getVariable('post')->value['sucursalId']==$_smarty_tpl->getVariable('item')->value['sucursalId']){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td align="center">
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="Generar()"/>
</td>
<td></td>
<td align="center">
<div style="float:right; padding-right:50px">
<a href="javascript:void(0)" onclick="ExportRep()" title="Exportar Reporte">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/excel.png" border="0"/>
</a>
</div>
</td>
</tr>
</tbody>
</table>
</form>