Line # Revision Author
1 8 ahitrov@rambler.ru <fieldset>
2 <legend>Отбор по классам</legend>
3
4 <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tlistdocs">
5 <tr bgcolor="#efefef">
6 <th align="center" width="1%">N</th>
7 <th colspan=2>Название</th>
8 452 ahitrov </tr>
9 8 ahitrov@rambler.ru % my $serial=0;
10 % foreach my $local_class (sort {$a->class_name cmp $b->class_name} @{ $user->get_available_classes }) {
11 % $serial++;
12 % my $document = new $local_class ($keeper);
13 % next unless (ref($document));
14 % if ($local_class eq $class) {
15 <tr bgcolor="green">\
16 % } else {
17 <tr>\
18 % }
19 <td><% $serial %></td>\
20 117 ahitrov <td nowrap><% $document->class_name() %></td>\
21 <td nowrap align="right"><a href="sections.html?class=<% $document->class() %>&id=<% $id %>&use_section=1">С учетом</a>/<a href="sections.html?class=<% $document->class() %>&id=<% $id %>">Без учета</a>&nbsp;секции</td>\
22 8 ahitrov@rambler.ru </tr>
23 % }
24 </table>
25 </fieldset>
26
27 <%ONCE>
28 use locale;
29 </%ONCE>
30 <%ARGS>
31 $section => undef
32 $class => undef
33 </%ARGS>
34 <%INIT>
35 # return undef if (! ref($section));
36 my $id=ref($section) ? $section->id() : '';
37 </%INIT>