${$line_ref} |
|
EOT
if ($viewmode)
{
my $fhref = '/contenido/?set_context=filter-'.$sect->id();
$m->out(qq^\nуст.фильтр^);
$m->out(qq^ доб.докум^) if $section_access == 2;
$m->out(" | ");
}
$m->out('');
}
my $childs = $sect->{childs} || [];
if( ref($childs) && @$childs && $offset < $count_offset )
{
$offset++;
foreach my $child (@$childs)
{
next if ( $child->class() ne 'users::Section' );
next if (! $request->{cCLASSES}->{$child->class()});
users_index_tree( $child, $offset, $line_ref, $count_offset, $viewmode, $profile, $width_limit, $root );
}
$offset--;
}
}
my $sect = $keeper->get_tree(light=>1, root=>$root);
return undef unless ref $sect;
$user->get_accesses();
my $line = 0;
$request->{cCLASSES} = {};
$request->{cCLASSES}->{'users::Section'} = 1;
if (ref($request->{tab}->{sections}))
{
map { $request->{cCLASSES}->{$_} = 1 } (@{ $request->{tab}->{sections} });
}
return undef if (scalar(keys(%{ $request->{cCLASSES} })) == 0);
%init>