[%# This template can be passed the following variables: session_info => { username, session_id, superuser, fullname, etc } editor => 1, or 0 or undefined descriptions => { issues => { A1 => blah, A2 => ... }, constit => { A2 => blah } } filters => [ { issues => [ A1, A2, A2 ] } ] categories => [ { description => "blah", code => "A1", cnt => 4 }] total_count => 4023 browsetype => "issues" or "constit" (only one term) page => 'remove' or 'reject' pagenum => 1, 2, 3, 4, 5 %] [% username = session_info.username %] [% index = 1 %] CALF | Searching for: "[% searchtext %]" [% INCLUDE groupshead %] [% INCLUDE groupsmenu %] [% INCLUDE groupsearch %] [% INCLUDE editorsmenu IF editor == 1 %] You are searching within the following categories: [% FOREACH type = filters.keys; codes = filters.$type; FOREACH code = codes; descriptions.$type.$code; ", " IF loop.size > loop.count; END; ", " IF loop.size > loop.count; END %] ([% total_count %])
[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]
Your query returned [% hit_count %] results.

[% IF hit_count < 1 %] Here are some tips for creating a more effective search.

[% ELSIF hit_count > 40 %] Your search returned too many results. Please try a more specific search term.

[% ELSE %] [% FOREACH list = lists %] [% END %]
Result
Number
Name Description Camps Constituencies
[% index; index = index + 1; %] [% list.name %] [% list.description %] [% FOREACH camp = list.camp %][% descriptions.camp.$camp %]
[% END %]
[% FOREACH constit = list.constit %][% descriptions.constit.$constit %]
[% END %]
[% END %]

[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE footer %]