AuthUser(); if(!$usuario->AllowPage($page, $_SESSION['loginKey'])){ header('Location: '.WEB_ROOT); exit; } $inventario->setPage($_GET['p']); $resReportes = $inventario->EnumAjustes(); $items = array(); foreach($resReportes['items'] as $res){ $sucursal->setSucursalId($res['sucursalId']); $res['sucursal'] = urldecode($sucursal->GetNameById()); $usuario->setUsuarioId($res['usuarioId']); $res['usuario'] = urldecode($usuario->GetNameById()); $producto->setProductoId($res['productoId']); $infP = $producto->Info(); $res['codigoBarra'] = $infP['codigoBarra']; $items[] = $res; } $resReportes['items'] = $items; $smarty->assign('resReportes',$resReportes); ?>