Files
ventas_php/ajax/templates_c/e378a8e4fba1a7419b77fcefe17fdafb9cbcfe3e.file.filtro-reporte-prod-prov2.tpl.php

141 lines
6.4 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-10 09:51:47
compiled from "/var/www/html/templates/forms/filtro-reporte-prod-prov2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1321247667541065836dda75-34731468%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'e378a8e4fba1a7419b77fcefe17fdafb9cbcfe3e' =>
array (
0 => '/var/www/html/templates/forms/filtro-reporte-prod-prov2.tpl',
1 => 1410360649,
),
),
'nocache_hash' => '1321247667541065836dda75-34731468',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form name="formProdProv" id="formProdProv" method="post" action="export/prod-prov2.php">
<input type="hidden" name="type" id="type" value="tipoProdProv" />
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th align="center" width="200"><div align="center">Fecha Inicial</div></th>
<th align="center" width="200"><div align="center">Fecha Final</div></th>
<th align="center" width="220"><div align="center">Tipo</div></th>
<th align="center" width=""><div align="center">Sucursal</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div style="float:left; padding-left:45px">
<input type="text" name="fechaI" id="fechaI" class="smallInput" style="width:70px" maxlength="10" 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; padding-left:45px">
<input type="text" name="fechaF" id="fechaF" class="smallInput" style="width:70px" maxlength="10" 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="orden" id="orden" class="smallInput">
<option value="mayor">M&aacute;s Vendidos</option>
<option value="menor">Menos Vendidos</option>
</select>
</td>
<td align="center">
<select name="idSucursal" id="idSucursal" class="smallInput" style="width:200px">
<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>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
<thead>
<tr>
<th align="center" width="180"><div align="center">C&oacute;digo Barra</div></th>
<th align="center" width="220"><div align="center">Departamento</div></th>
<th align="center" width="220"><div align="center">L&iacute;nea</div></th>
<th align="center"><div align="center">Proveedor</div></th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">
<input type="text" class="smallInput" name="codigoBarra" id="codigoBarra" />
</td>
<td>
<select name="prodCatId" id="prodCatId" class="smallInput" style="width:200px" onchange="LoadProdSubcats()">
<option value="">Todos</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('categorias')->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['prodCatId'];?>
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
<td align="center"><div id="enumSubcats"><?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProdSubcat3.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
</div></td>
<td align="center">
<select name="idProveedor" id="idProveedor" class="smallInput" 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 str_pad($_smarty_tpl->getVariable('item')->value['proveedorId'],3,"0",@STR_PAD_LEFT);?>
<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="ReporteProdProv2()"/>
<div style="float:right; padding-right:50px">
<a href="javascript:void(0)" onclick="ExportProdProv2()" 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>