Files
ventas_php/ajax/templates_c/77793556d16b9aec8f6f70b26c7645c8ff7eba28.file.filtro-buenfin-prov.tpl.php

99 lines
4.3 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-30 14:41:43
compiled from "/var/www/html/templates/forms/filtro-buenfin-prov.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1534920708542b0777bc48b3-50609141%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'77793556d16b9aec8f6f70b26c7645c8ff7eba28' =>
array (
0 => '/var/www/html/templates/forms/filtro-buenfin-prov.tpl',
1 => 1410130451,
),
),
'nocache_hash' => '1534920708542b0777bc48b3-50609141',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="frmBuenFinProv" id="frmBuenFinProv" method="post" action="export/buenfin-proveedor.php">
<input type="hidden" name="type" id="type" value="buenFinProv" />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th width="480" align="center" colspan="2"><div align="center">Periodo</div></th>
<th width="200" align="center"><div align="center">Proveedor</div></th>
<th width="200" 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; width:140px" name="fechaI" id="fechaI" class="smallInput" maxlength="10" readonly="readonly" value="<?php echo $_smarty_tpl->getVariable('fechaHoy')->value;?>
" />
</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">
Final: <input type="text" style="text-align:center; width:140px" name="fechaF" id="fechaF" class="smallInput" maxlength="10" readonly="readonly" value="<?php echo $_smarty_tpl->getVariable('fechaHoy')->value;?>
" />
</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 align="center">
<select name="idProveedor" id="idProveedor" class="largeInput" style="width:200px !important">
<option value="">Todos</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('proveedores')->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){
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['proveedorId'];?>
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
<td align="center">
<select name="idSucursal" id="idSucursal" class="largeInput">
<option selected="selected" value="">Todas</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->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 echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
</tr>
<tr>
<td align="center" colspan="7">
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="RepBuenFinProv()"/>
<div style="float:right; padding-right:50px">
<a href="javascript:void(0)" onclick="ExportBuenFinProv()">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/excel.png" title="Exportar Reporte"/>
</a>
</div>
</td>
</tr>
</tbody>
</table>
</form>