summaryrefslogtreecommitdiff
path: root/torrus/templates/default-chooser.html
blob: f49b7899ff94fdd903c8cc61ff82d7f8007c6fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[% PROCESS 'html-incblocks.txt' %]
[% INCLUDE htmlstart
     title="Torrus Top: " _ companyName
     contentClass="SingleColumnContent"
     noTopMenu=1 %]

<P>Choose the datasource tree</P>

<DIV CLASS="Listing">
[%   counter = 0;
     evenRow = 0;

     FOREACH tree = treeNames();

     IF not userAuth or mayDisplayTree(tree);
         counter = counter + 1;

         IF counter % 2 == 0;
           evenRow = 1;
         ELSE;
           evenRow = 0;
         END;
%]

  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
    <SPAN CLASS="NodeName"><A HREF="[%url(tree)%]">[% tree %]</A></SPAN>
    <SPAN CLASS="NodeDescr">[% xmlnorm(treeDescr(tree)) %]</SPAN>
  </DIV>
  [% END %]
[% END %]
</DIV>

</DIV><!-- Content -->[% global.contentFinished = 1 %]
<DIV CLASS="BottomMenu">
[% INCLUDE globalsearchdialog %]
</DIV>
[% INCLUDE htmlend %]