130 lines
6.1 KiB
PHP
Executable File
130 lines
6.1 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-10-07 13:49:02
|
|
compiled from "./templates/inventario.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:18745163485434359ed4f6a4-68591481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'd90c2f33b0a08ee1c1c97c72b57503425874b480' =>
|
|
array (
|
|
0 => './templates/inventario.tpl',
|
|
1 => 1410130446,
|
|
),
|
|
),
|
|
'nocache_hash' => '18745163485434359ed4f6a4-68591481',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<div class="grid_16" id="content">
|
|
|
|
<div class="grid_9">
|
|
<h1 class="catalogos">Productos</h1>
|
|
</div>
|
|
|
|
<div class="grid_6" id="eventbox"></div>
|
|
<div class="clear"></div>
|
|
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
|
|
<?php $_template = new Smarty_Internal_Template("forms/search-inventario-sucursal.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);?>
|
|
|
|
<?php }else{ ?>
|
|
<?php if ($_smarty_tpl->getVariable('infR')->value['repInvParcialId']==''){?>
|
|
<?php $_template = new Smarty_Internal_Template("forms/search-inventario.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);?>
|
|
|
|
<?php }?>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->getVariable('msg')->value!=''){?>
|
|
<div align="center" style="color:#009900; font-size:14px; padding-top:15px">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/ok2.png" /><br /><b>
|
|
<?php if ($_smarty_tpl->getVariable('msg')->value=="Saved"){?>
|
|
El producto fue agregado correctamente.
|
|
<?php }elseif($_smarty_tpl->getVariable('msg')->value=="Updated"){?>
|
|
El producto fue actualizado correctamente
|
|
<?php }?>
|
|
</b></div>
|
|
<?php }?>
|
|
|
|
<div class="grid_15" id="contenido">
|
|
|
|
<?php if ($_smarty_tpl->getVariable('infR')->value['repInvParcialId']==''){?>
|
|
<?php $_template = new Smarty_Internal_Template("lists/inventario.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);?>
|
|
|
|
<?php }elseif($_smarty_tpl->getVariable('Usr')->value['type']=='gerente'){?>
|
|
<?php if ($_smarty_tpl->getVariable('msgReport')->value=='success'){?>
|
|
|
|
<div align="center">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/ok2.png">
|
|
<h2>El reporte fue enviado correctamente.</h2>
|
|
</div>
|
|
|
|
<div align="center"><a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario"> << Regresar</a></div>
|
|
|
|
<?php }elseif($_smarty_tpl->getVariable('msgReport')->value=='typeFail'){?>
|
|
|
|
<div align="center">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/cancel.png">
|
|
<h2>El formato del archivo es incorrecto. Debe ser *.txt</h2>
|
|
</div>
|
|
|
|
<div align="center"><a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/inventario"> << Regresar</a></div>
|
|
|
|
<?php }elseif($_smarty_tpl->getVariable('infR')->value['tipo']=="Parcial"){?>
|
|
<div align="center">
|
|
<h2>Solicitud de Reporte de Inventario Parcial</h2>
|
|
Por favor, indique la cantidad de prendas que tiene en estos momentos de los siguientes productos:
|
|
</div>
|
|
|
|
<?php $_template = new Smarty_Internal_Template("lists/inventario-reporte.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 id="loader" style="padding-bottom:15px"></div>
|
|
|
|
<div class="formLine" style="text-align:center; padding-left:430px" id="btnSendR">
|
|
<a class="button" id="btnSave" onclick="SaveReportParcial()"><span>Guardar</span></a>
|
|
</div>
|
|
|
|
<?php }else{ ?>
|
|
<div align="center">
|
|
<h2>Solicitud de Reporte de Inventario Total</h2>
|
|
Por favor, seleccione el archivo de texto (.txt) que contiene los datos de inventario:
|
|
</div>
|
|
<br />
|
|
<div align="center">
|
|
<form name="frmReporte" id="frmReporte" enctype="multipart/form-data" method="post">
|
|
<input type="hidden" name="type" id="type" value="sendReport" />
|
|
<input type="hidden" name="repInvParcialId" id="repInvParcialId" value="<?php echo $_smarty_tpl->getVariable('infR')->value['repInvParcialId'];?>
|
|
" />
|
|
<input type="file" name="fileReport" id="fileReport" />
|
|
</form>
|
|
</div>
|
|
|
|
<div id="loader" style="padding:10px"></div>
|
|
|
|
<div class="formLine" style="text-align:center; padding-left:430px" id="btnSendR">
|
|
<a class="button" id="btnSave" onclick="SaveReportTotal()"><span>Guardar</span></a>
|
|
</div>
|
|
|
|
<?php }?>
|
|
|
|
|
|
|
|
<?php }else{ ?>
|
|
<div align="center">
|
|
<h2>Inventario no disponible por el momento. <br /> Se ha solicitado reporte para esta sucursal.</h2>
|
|
</div>
|
|
<?php }?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|