Revision 510

Date:
2015/09/02 12:15:58
Author:
ahitrov
Revision Log:
Section browse interface lifting

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/comps/contenido/components/__section_tree__.msn

     
    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();
  • utf8/core/comps/contenido/components/subsection.msn

     
    5 5 <tr bgcolor="#efefef">
    6 6 <th align="center" width="1%">N</th>
    7 7 <th>Название</th>
    8 <th align="center" width="1%">...</th>
    8 9
    9 <& "/contenido/components/__section_tree__.msn", root=>$section->id, level=>3, mode=>0, width_limit => 30 &>
    10 <& "/contenido/components/__section_tree__.msn", root=>$section->id, level=>3, mode=>0, width_limit => 40 &>
    10 11
    11 12 </table>
    12 13 % if ($section_access == 2)