From 7cf216beae091135df497929a2178e41dc47e6e5 Mon Sep 17 00:00:00 2001 From: pudge Date: Fri, 16 Jul 2004 19:13:44 +0000 Subject: [PATCH] Partial search page revision --- .../templates/searchform;search;default | 80 ++++++++++++++++--- 1 file changed, 69 insertions(+), 11 deletions(-) diff --git a/plugins/Search/templates/searchform;search;default b/plugins/Search/templates/searchform;search;default index 21691d78d..a79c3410d 100644 --- a/plugins/Search/templates/searchform;search;default +++ b/plugins/Search/templates/searchform;search;default @@ -13,7 +13,7 @@ en_US __name__ searchform __template__ -[% USE Slash %] +
[% IF tref.image %]
+ [% IF authors %] + [% Slash.createSelect("author", authors, form.author, 1, 0, 1) %] + [% END %] + [% Slash.createSelect("sort", sort, form.sort, 1) %] +
Stories @@ -48,10 +53,6 @@ __template__ Users with Journals [% END %] - [% IF authors %] - [% Slash.createSelect("author", authors, form.author, 1, 0, 1) %] - [% END %] - [% IF submission_notes %] [% Slash.createSelect("note", submission_notes, form.note, 1, 0, 1) %] [% END %] @@ -61,27 +62,84 @@ __template__ [% END %] - [% IF topics && !constants.multitopics_display; + [%# IF topics && !constants.multitopics_display; Slash.createSelect("tid", topics, form.tid, 1, 0, 1); END %] - [% IF sections; + [%# IF sections; Slash.createSelect("section", sections, form.section, 1, 0, 1); END %] - [% IF subsections; + [%# IF subsections; Slash.createSelect("subsection", subsections, form.subsection, 1, 0, 1); END %] - [% Slash.createSelect("sort", sort, form.sort, 1) %] - - [% IF constants.multitopics_display; + [%# IF constants.multitopics_display; "

\n"; INCLUDE topicsearch; END %]

+

+[% + skins = Slash.db.getSkins; + this_skin = 0; + IF form.tid; + this_skin = Slash.db.getSkidFromNexus(form.tid) || 0; + END; + + listnames = {}; + IF this_skin; + topics = Slash.db.getTopicTree(); + topic_children = Slash.db.getAllChildrenTids(form.tid); + FOREACH t = topic_children; + listnames.${topics.$t.textname} = t; + END; + + ELSE; + FOREACH s = skins.keys; + skinname = skins.$s.name; + NEXT IF s == constants.mainpage_skid || skinname == "tacohell" || skinname == "radio" || skinname == "features" || skinname == "awards" || skinname == "polls" || skinname == "search"; + listnames.${skins.$s.title} = skins.$s.nexus; + END; + END; + + listcount = listnames.size / 3; + listex = listnames.size mod 3; + i = 0; +%] +[% constants.sitename %] +[% IF this_skin %] +:: [% skins.${this_skin}.title %] +[% END; IF listnames.size %] +Topics +[% END %] +
+ +[% IF listnames.size %] + + + +
+ +
    +[% FOREACH s = listnames.keys.sort -%] +
  • [% s %]
  • +[%- i = i + 1; + IF i == listcount.int || i == 0; + IF i == listcount.int && listex; + listext = listex = 1; + i = -1; + NEXT; + END; +%]
+ +
    [% END; END %] +
+[% END %] + + __seclev__ 100 __version__