23 lines
695 B
PHP
Executable File
23 lines
695 B
PHP
Executable File
<?php
|
|
|
|
$empresa->AuthUser();
|
|
|
|
if($Usr['type'] != 'admin' && $Usr['type'] != 'centralizador' && $Usr['type'] != 'compras' && $Usr['type'] != 'direccion' && $Usr['type'] != 'supervisor'){
|
|
header('Location: '.WEB_ROOT);
|
|
exit;
|
|
}
|
|
|
|
$reportes->setIdSuc($Usr['sucursalId']);
|
|
$resSuc = $reportes->EnumSucursales($Usr['type'],$Usr['usuarioId']);
|
|
$resSuc = $util->DecodeUrlResult($resSuc);
|
|
|
|
$departamentos = $prodCat->EnumerateAll();
|
|
$proveedores = $reportes->proveedores();
|
|
|
|
$smarty->assign('tipo', $Usr['type']);
|
|
$smarty->assign('resSuc',$resSuc);
|
|
$smarty->assign('productos',$data);
|
|
$smarty->assign('departamentos', $departamentos);
|
|
$smarty->assign('proveedores',$proveedores);
|
|
|
|
?>
|