Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 11:29:42
|
||||
compiled from "./templates/forms/filtro-reporte-inventario.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1551088126540a16217354e5-32385621%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'06cd491f79c6e7fdb203e3ec24ab2c071c52d0b3' =>
|
||||
array (
|
||||
0 => './templates/forms/filtro-reporte-inventario.tpl',
|
||||
1 => 1410130451,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1551088126540a16217354e5-32385621',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php if (!is_callable('smarty_modifier_truncate')) include '/var/www/html/libs/plugins/modifier.truncate.php';
|
||||
?><form name="formInven" id="formInven" method="post" action="export/reporte-inventario.php">
|
||||
<input type="hidden" name="type" value="rInventario" />
|
||||
<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">Sucursal</div></th>
|
||||
<th align="center" width="250"><div align="center">Proveedor</div></th>
|
||||
<th align="center" width="200"><div align="center">Departamento</div></th>
|
||||
<th align="center" width="200"><div align="center">Línea</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<div style="text-align:center">
|
||||
<?php if ($_smarty_tpl->getVariable('tipo')->value=="admin"||$_smarty_tpl->getVariable('tipo')->value=="centralizador"||$_smarty_tpl->getVariable('tipo')->value=="compras"||$_smarty_tpl->getVariable('tipo')->value=="direccion"||$_smarty_tpl->getVariable('tipo')->value=="supervisor"){?>
|
||||
<select name="sucursal" id="sucursal" class="largeInput" 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 utf8_decode($_smarty_tpl->getVariable('item')->value['nombre']);?>
|
||||
</option>
|
||||
<?php }} ?>
|
||||
</select>
|
||||
<?php }elseif($_smarty_tpl->getVariable('tipo')->value=="gerente"){?>
|
||||
<?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 align="center">
|
||||
<select name="proveedorId" id="proveedorId" class="largeInput" style="width:250px;">
|
||||
<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('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){
|
||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['proveedorId'];?>
|
||||
"><?php echo smarty_modifier_truncate($_smarty_tpl->getVariable('item')->value['nombre'],50,"...");?>
|
||||
</option>
|
||||
<?php }} ?>
|
||||
</select>
|
||||
</td>
|
||||
<td align="center">
|
||||
<select name="prodCatId" id="prodCatId" class="largeInput" style="width:200px;" onchange="LoadSubcats()">
|
||||
<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('departamentos')->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_modifier_truncate($_smarty_tpl->getVariable('item')->value['nombre'],50,"...");?>
|
||||
</option>
|
||||
<?php }} ?>
|
||||
</select>
|
||||
</td>
|
||||
<td align="center">
|
||||
<div id="enumSubcats">
|
||||
<select name="prodSubcatId" id="prodSubcatId" class="largeInput" style="width:200px;">
|
||||
<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('lineas')->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['prodSubcatId'];?>
|
||||
"><?php echo smarty_modifier_truncate($_smarty_tpl->getVariable('item')->value['nombre'],50,"...");?>
|
||||
</option>
|
||||
<?php }} ?>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td align="center" colspan="2">
|
||||
<input type="button" name="btnSearch" value="Generar" class="btnSearch" onclick="Rinventario()" />
|
||||
</td>
|
||||
<td align="center" colspan="1">
|
||||
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportInv(); return false;"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/excel.png" title="Exportar Reporte"/></a></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<div align="center">
|
||||
<div id="loadBusqueda" style="display:none">
|
||||
<br />
|
||||
<img src="http://www.facturase.com/images/loading.gif" width="16" height="16" />
|
||||
<br />Cargando...
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
Reference in New Issue
Block a user