• __section_tree__.msn

    509 510  
    60 60 </td>
    61 61 EOT
    62 62
    63 if ($viewmode)
    64 {
    63 if ($viewmode) {
    65 64 my $fhref = '/contenido/?set_context=filter-'.$sect->id();
    66 65 my $new_doc_class = $sect->default_document_class;
    67 66 $m->out(qq^\n<td align="center" nowrap>^);
     
    69 68 $m->out(qq^<a href="$fhref">фильтр</a>^);
    70 69 $m->out(qq^&nbsp;&nbsp;&nbsp;<a href="document.html?sect_id=$sect->{id}&class=$new_doc_class">доб.докум</a>^) if $section_access == 2 and $new_doc_class;
    71 70 $m->out("</td>");
    71 } else {
    72 $m->out(qq^\n<td align="center" nowrap>^);
    73 $m->out(qq^<a href="section.html?id=$sect->{id}" title="Редактировать параметры секции"><img src="/contenido/i/actions/edit.gif" width="15" height="17" align="absmiddle" border="0"></a>&nbsp;&nbsp;&nbsp;^);
    74 $m->out("</td>");
    72 75 }
    73 76
    74 77 $m->out('</tr>');
     
    98 101 @avail_classes = keys( %{ $request->{cCLASSES} } );
    99 102 }
    100 103 push @avail_classes, 'Contenido::Section' unless exists $request->{cCLASSES}{'Contenido::Section'};
    101 my $sect = $keeper->get_section_tree(root=>$root, class => \@avail_classes);
    104 my $sect = $keeper->get_section_tree(root=>$root, class => \@avail_classes, light => undef);
    102 105 return undef unless ref $sect && exists $sect->{$root};
    103 106
    104 107 $user->get_accesses();