File: search.html

package info (click to toggle)
torrus 3.00-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 4,548 kB
  • sloc: perl: 34,614; xml: 20,934; sh: 3,650; makefile: 713
file content (42 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (3)
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
[% PROCESS 'html-incblocks.txt' %]
[% global.SearchString = variables.SEARCH; clearVar('SEARCH') %]
[% INCLUDE htmlstart
     title='Search results: ' _ global.SearchString
     contentClass="SingleColumnContent" %]

<H1>Search results: [% global.SearchString %]</H1>
[% INCLUDE treename %]
<DIV CLASS="Listing">
[% results = searchResults(global.SearchString);
   counter = 0;

   FOREACH entry IN results;

    counter = counter + 1;
    IF counter % 2 == 0;
      evenRow = 1;
    ELSE;
      evenRow = 0;
    END;
%]
  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
    <SPAN CLASS="NodeName"><A HREF="[%url(entry.token)%]">
        [% entry.path %]</A></SPAN>
    [% FOREACH param IN entry.match.keys %]
      <SPAN CLASS="NodeDescr">
        [% param _ ': ' _ xmlnorm(entry.match.$param) %]
      </SPAN>
    [% END %]
  </DIV>
[% END %]
</DIV>


</DIV><!-- Content -->[% global.contentFinished = 1 %]
<DIV CLASS="BottomMenu">
[% INCLUDE shortcut url=url(pathToken('/')) text="Datasources tree"
                    title="Back to the datasources tree" %]
[% INCLUDE searchdialog %]
</DIV>

[% INCLUDE htmlend %]