home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
cgi-bin
/
discus4_00
/
source
/
srchres1.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
4KB
|
118 lines
# FILE: srchres1.tmpl
# DESCRIPTION: Search Engine Results, keyword searching
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<html>
<head>
<title>$L{SEARCH_ENGINE_TITLE}</title>
<style>
<!--
body { font-family: $color->{face}; line-spacing: 0 }
td.nb { font: 10pt $color->{face} }
td.b { font: 10pt $color->{face}; font-weight: bold; }
-->
</style>
<#define $pagetitle = "$L{SEARCH_ENGINE_TITLE}"#>
<#insert part () "dynamic_top"#>
<#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
<#if $general->{matches} == 0#>
<#if $general->{too_general} == 1#>
$L{SEARCH_ENGINE_TOO_GENERAL}
<#else#>
$L{SEARCH_ENGINE_0_HITS}
<#endif#>
<#insert part () "dynamic_bottom"#>
<#exit#>
<#endif#>
<#if $general->{matches} == 1#>
$L{SEARCH_ENGINE_1_HIT}
<#else#>
<#define $l = "$L{SEARCH_ENGINE_MATCHES}"#>
<#replace "%lower" with "$general->{lower}" in $l#>
<#replace "%upper" with "$general->{upper}" in $l#>
<#replace "%total" with "$general->{matches}" in $l#>
$l
<#endif#>
<#foreach $result (@array)#>
<#if $result->{url} ne ""#>
<#define $baseurl = "$result->{url}"#>
<#else#>
<#if $result->{secure}#>
<#define $baseurl = "$DCONF->{authorize_reader}?file=/$result->{topic}/$result->{page}.$ext"#>
<#else#>
<#define $baseurl = "$DCONF->{message_url}/$result->{topic}/$result->{page}.$ext"#>
<#endif#>
<#endif#>
<p>
<b>$result->{number}.
<#reference array @parents from $result->{parents}#>
<#if $result->{target} ne ""#>
<a href="$baseurl" target="$result->{target}">\
<#else#>
<a href="$baseurl">\
<#endif#>
<#foreach $qpq (@parents)#>
$qpq->{name}\
<#if $qpq->{_is_last_element} == 0#>: <#endif#>\
<#endloop#>
</a></b><br>
<font size="1">
<#reference array @matches from $result->{matches}#>
<#foreach $match (@matches)#>
<#if $match->{_iteration} > 5#>
<#last#>
<#endif#>
<#repeated 5 " "#> \
<#define $l = "$match->{text}"#>
<#replace "%open" with "<a href="$baseurl#POST$match->{postindex}"><b>" in $l#>
<#replace "%close" with "</b></a>" in $l#>
$l<br>
<#endloop#>
<#repeated 5 " "#>\
<#if $result->{matchnum} > 0#>
$L{SEARCH_ENGINE_MATCHING_POSTS} $result->{matchnum},
<#endif#>
<#if $result->{lastmod} > 0#>
$L{SEARCH_ENGINE_POSTS_THIS_PAGE} $result->{post_count}<br>
<#repeated 5 " "#>\
$L{SEARCH_ENGINE_LAST_MODIFIED} <#date $result->{lastmod} format "%day-%mon.-%year %24hour:%minute"#>,
<#endif#>
$L{SEARCH_ENGINE_SCORE} $result->{score}%
</font>
</p>
<#endloop#>
<#if $general->{matches} > $general->{perpage}#>
<#define $j = "0"#>
<#define $url = "$script_url/search.$cgi_extension?cache=$general->{cache}&rpp=$general->{perpage}"#>
<#if $general->{prev} < $general->{start}#>
<a href="$url&start=$general->{prev}">$L{KEYWORD_RESULTS_PREV}</a>
<#else#>
$L{KEYWORD_RESULTS_PREV}
<#endif#>
<#for $i = 1 to $general->{matches} step $general->{perpage}#>
<#math: $j += 1#>
<#if $i == $general->{start}#>
<b>$j</b>
<#else#>
<a href="$url&start=$i">$j</a>
<#endif#>
<#if $GLOBAL_OPTIONS{search_link_limit} == 1 && $j >= $GLOBAL_OPTIONS{search_link_limit_value}#>
<#last#>
<#endif#>
<#endfor#>
<#if $general->{next} <= $general->{matches}#>
<a href="$url&start=$general->{next}">$L{KEYWORD_RESULTS_NEXT}</a>
<#else#>
$L{KEYWORD_RESULTS_NEXT}
<#endif#>
<#endif#>
<#insert part () "dynamic_bottom"#>
<!--END-->