summaryrefslogtreecommitdiff
path: root/torrus/templates/globalsearch.html
blob: c01c3d4ed74e4baa589a4782ebb4a5d90e2474a6 (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
38
39
40
41
42
43
[% PROCESS 'html-incblocks.txt' %]
[% global.SearchString = variables.SEARCH; clearVar('SEARCH') %]
[% INCLUDE htmlstart
     title='Global Search results: ' _ global.SearchString
     contentClass="SingleColumnContent"
     noTopMenu=1 %]

<DIV CLASS="TopMenu">
[% INCLUDE shortcut url=url() text="Top"
                    title="Choose from the list of trees"%]
</DIV>
                    
<H1>Global Search results: [% global.SearchString %]</H1>
<DIV CLASS="Listing">
[% results = searchResults( global.SearchString );
   counter = 0;

   FOREACH entry = results;

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

%]
  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
    <SPAN CLASS="NodeName">[%entry.0%]:
    <A HREF="[%persistentUrl(entry.0, entry.1)%]">
    [% entry.1 %]</A>
    </SPAN>
  </DIV>
[% END %]
</DIV>


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

[% INCLUDE htmlend %]