AuthUser(); if(!$usuario->AllowPage($page, $_SESSION['loginKey'])){ header('Location: '.WEB_ROOT); exit; } $resSuc = $sucursal->GetSucursalesByEmpresaId(); $resSuc2 = $util->DecodeUrlResult($resSuc); $sucursales = $util->DecodeResult($resSuc2); $fecha = $util->Today(); $smarty->assign('sucursales', $sucursales); $smarty->assign('fecha', $fecha); ?>