Files
ventas_php/ajax/templates_c/02a0cf44febe9dba5e23f8b330712dc78deaa79f.file.filtro-tempo.tpl.php

112 lines
5.1 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-26 13:06:55
compiled from "/var/www/html/templates/forms/filtro-tempo.tpl" */ ?>
<?php /*%%SmartyHeaderCode:936133865425ab3f4690a4-35349858%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'02a0cf44febe9dba5e23f8b330712dc78deaa79f' =>
array (
0 => '/var/www/html/templates/forms/filtro-tempo.tpl',
1 => 1410130451,
),
),
'nocache_hash' => '936133865425ab3f4690a4-35349858',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="formTempo" id="formTempo" method="post" action="export/exportarexcel.php">
<input type="hidden" name="type" id="type" value="tipoTempo"/>
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th align="center" colspan="1" width="50%"><div align="center">Temporada</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">A&ntilde;o</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div style="text-align:center">
<select name="temporada" id="temporada" 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('resTemp')->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['temporadaId'];?>
"> <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</div>
</td>
<td>
<div style="text-align:center">
<?php if ($_smarty_tpl->getVariable('tipo')->value=="admin"){?>
<select name="sucursal" id="sucursal" 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('resSuc')->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>
<?php }elseif($_smarty_tpl->getVariable('tipo')->value=="gerente"||$_smarty_tpl->getVariable('tipo')->value=="vendedor"){?>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('resSuc')->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;
?>
<input type="text" disabled="disabled" style="text-align:center" class="smallInput" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
"/>
<input type="hidden" name="sucursal" id="sucursal" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
"/>
<?php }} ?>
<?php }?>
</div>
</td>
<td>
<div style="text-align:center">
<select name="anio" id="anio" class="largeInput">
<option selected="selected" value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('anio')->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;?>
"> <?php echo $_smarty_tpl->getVariable('item')->value;?>
</option>
<?php }} ?>
</select>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="7">
<input type="button" name="btnReporteTempo" id="btnReporteTempo" value="Generar" class="btnSearch" onclick="ReporteTempo()"/>
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportTempo(); return false;"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/excel.png" title="Exportar Reporte"/></a></div>
</td>
</tr>
</tbody>
</table>
</form>