Files
ventas_php/ajax/templates_c/5fe0c2d80b527b1378c5b296093a985d531c8c4a.file.filtro-proMasVend.tpl.php

105 lines
4.8 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-11 11:28:41
compiled from "/var/www/html/templates/forms/filtro-proMasVend.tpl" */ ?>
<?php /*%%SmartyHeaderCode:18894942305411cdb9cfaf13-50368927%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5fe0c2d80b527b1378c5b296093a985d531c8c4a' =>
array (
0 => '/var/www/html/templates/forms/filtro-proMasVend.tpl',
1 => 1410360648,
),
),
'nocache_hash' => '18894942305411cdb9cfaf13-50368927',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="formMasVend" id="formMasVend" method="post" action="export/exportarexcel.php">
<input type="hidden" name="type" id="type" value="tipoProMasVend" />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th width="450" align="center" colspan="2"><div align="center">Periodo</div></th>
<th width="150" align="center"><div align="center">Orden</div></th>
<th width="260" 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="<?php echo $_smarty_tpl->getVariable('dateNow')->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">
Final: <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('dateNow')->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 align="center">
<select name="orden" id="orden" class="largeInput">
<option value="mayor" selected="selected">M&aacute;s Vendido</option>
<option value="menor">Menos Vendido</option>
</select>
</td>
<?php if ($_smarty_tpl->getVariable('tipo')->value=="admin"){?>
<td align="center">
<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>
</td>
<?php }elseif($_smarty_tpl->getVariable('tipo')->value=="gerente"){?>
<td align="center">
<?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 }} ?>
</td>
<?php }?>
</tr>
<tr>
<td align="center" colspan="7">
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="ReporteProMasVend();"/>
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportProdVend(); 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>