148 lines
10 KiB
PHP
Executable File
148 lines
10 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:33:30
|
|
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/filtro-reporte-prod-prov.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:1573412265536133ea98b233-82868657%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'd1a852732adcc1c46efa54e632a07328a04262f9' =>
|
|
array (
|
|
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/filtro-reporte-prod-prov.tpl',
|
|
1 => 1396485863,
|
|
),
|
|
),
|
|
'nocache_hash' => '1573412265536133ea98b233-82868657',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if (!is_callable('smarty_modifier_date_format')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.date_format.php';
|
|
?><form name="formProdProv" id="formProdProv" method="post" action="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/export/prod-prov.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="100"><div align="center">Fecha Inicial</div></th>
|
|
<th align="center" width="100"><div align="center">Fecha Final</div></th>
|
|
<th align="center"><div align="center">Proveedor</div></th>
|
|
<th align="center" width="140"><div align="center">Código Barra</div></th>
|
|
<th align="center" width="200"><div align="center">Sucursal</div></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<div style="float:left">
|
|
<select name="mesI" id="mesI" class="smallInput">
|
|
<option value="">Mes</option>
|
|
<?php $_smarty_tpl->assign("m",(smarty_modifier_date_format(time(),"m")),null,null);?>
|
|
<option value="01" <?php if ($_smarty_tpl->getVariable('m')->value=="01"){?>selected<?php }?>>Enero</option>
|
|
<option value="02" <?php if ($_smarty_tpl->getVariable('m')->value=="02"){?>selected<?php }?>>Febrero</option>
|
|
<option value="03" <?php if ($_smarty_tpl->getVariable('m')->value=="03"){?>selected<?php }?>>Marzo</option>
|
|
<option value="04" <?php if ($_smarty_tpl->getVariable('m')->value=="04"){?>selected<?php }?>>Abril</option>
|
|
<option value="05" <?php if ($_smarty_tpl->getVariable('m')->value=="05"){?>selected<?php }?>>Mayo</option>
|
|
<option value="06" <?php if ($_smarty_tpl->getVariable('m')->value=="06"){?>selected<?php }?>>Junio</option>
|
|
<option value="07" <?php if ($_smarty_tpl->getVariable('m')->value=="07"){?>selected<?php }?>>Julio</option>
|
|
<option value="08" <?php if ($_smarty_tpl->getVariable('m')->value=="08"){?>selected<?php }?>>Agosto</option>
|
|
<option value="09" <?php if ($_smarty_tpl->getVariable('m')->value=="09"){?>selected<?php }?>>Septiembre</option>
|
|
<option value="10" <?php if ($_smarty_tpl->getVariable('m')->value=="10"){?>selected<?php }?>>Octubre</option>
|
|
<option value="11" <?php if ($_smarty_tpl->getVariable('m')->value=="11"){?>selected<?php }?>>Noviembre</option>
|
|
<option value="12" <?php if ($_smarty_tpl->getVariable('m')->value=="12"){?>selected<?php }?>>Diciembre</option>
|
|
</select>
|
|
</div>
|
|
<div style="float:left; padding-left:15px;">
|
|
<select class="smallInput" name="anioI" id="anioI" />
|
|
<option value="">Año</option>
|
|
<?php $_smarty_tpl->assign("anioF",(smarty_modifier_date_format(time(),"Y")),null,null);?>
|
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = ($_smarty_tpl->getVariable('anioF')->value - (2013) < 0) ? -1 : 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->getVariable('anioF')->value+1 - 2013 : 2013-($_smarty_tpl->getVariable('anioF')->value)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|
for ($_smarty_tpl->tpl_vars['i']->value = 2013, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|
<option value="<?php echo $_smarty_tpl->getVariable('i')->value;?>
|
|
" <?php if ($_smarty_tpl->getVariable('i')->value==$_smarty_tpl->getVariable('anioF')->value){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('i')->value;?>
|
|
</option>
|
|
<?php }} ?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div style="float:left">
|
|
<select name="mesF" id="mesF" class="smallInput">
|
|
<option value="">Mes</option>
|
|
<?php $_smarty_tpl->assign("m",(smarty_modifier_date_format(time(),"m")),null,null);?>
|
|
<option value="01" <?php if ($_smarty_tpl->getVariable('m')->value=="01"){?>selected<?php }?>>Enero</option>
|
|
<option value="02" <?php if ($_smarty_tpl->getVariable('m')->value=="02"){?>selected<?php }?>>Febrero</option>
|
|
<option value="03" <?php if ($_smarty_tpl->getVariable('m')->value=="03"){?>selected<?php }?>>Marzo</option>
|
|
<option value="04" <?php if ($_smarty_tpl->getVariable('m')->value=="04"){?>selected<?php }?>>Abril</option>
|
|
<option value="05" <?php if ($_smarty_tpl->getVariable('m')->value=="05"){?>selected<?php }?>>Mayo</option>
|
|
<option value="06" <?php if ($_smarty_tpl->getVariable('m')->value=="06"){?>selected<?php }?>>Junio</option>
|
|
<option value="07" <?php if ($_smarty_tpl->getVariable('m')->value=="07"){?>selected<?php }?>>Julio</option>
|
|
<option value="08" <?php if ($_smarty_tpl->getVariable('m')->value=="08"){?>selected<?php }?>>Agosto</option>
|
|
<option value="09" <?php if ($_smarty_tpl->getVariable('m')->value=="09"){?>selected<?php }?>>Septiembre</option>
|
|
<option value="10" <?php if ($_smarty_tpl->getVariable('m')->value=="10"){?>selected<?php }?>>Octubre</option>
|
|
<option value="11" <?php if ($_smarty_tpl->getVariable('m')->value=="11"){?>selected<?php }?>>Noviembre</option>
|
|
<option value="12" <?php if ($_smarty_tpl->getVariable('m')->value=="12"){?>selected<?php }?>>Diciembre</option>
|
|
</select>
|
|
</div>
|
|
<div style="float:left; padding-left:15px;">
|
|
<select class="smallInput" name="anioF" id="anioF" />
|
|
<option value="">Año</option>
|
|
<?php $_smarty_tpl->assign("anioF",(smarty_modifier_date_format(time(),"Y")),null,null);?>
|
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = ($_smarty_tpl->getVariable('anioF')->value - (2013) < 0) ? -1 : 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->getVariable('anioF')->value+1 - 2013 : 2013-($_smarty_tpl->getVariable('anioF')->value)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|
for ($_smarty_tpl->tpl_vars['i']->value = 2013, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|
<option value="<?php echo $_smarty_tpl->getVariable('i')->value;?>
|
|
" <?php if ($_smarty_tpl->getVariable('i')->value==$_smarty_tpl->getVariable('anioF')->value){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('i')->value;?>
|
|
</option>
|
|
<?php }} ?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
<td align="center">
|
|
<select name="idProveedor" id="idProveedor" class="smallInput" style="width:200px !important">
|
|
<option value="">Seleccione</option>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('resProveedor')->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>
|
|
<td align="center">
|
|
<input type="text" class="smallInput" name="codigoBarra" id="codigoBarra" />
|
|
</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('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>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="5">
|
|
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="ReporteProdProv()"/>
|
|
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportProdProv(); 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>
|