$httpheader{Content-Type,text/html; charset=utf-8} $set{flag_spelling,$ne{$cgi{SPELL},0}} $set{thousand,$.}$set{decimal,.}$setmap{BN,,Any Country,uk,England,fr,France} ${ $def{PREV, $if{$ne{$topdoc,0},, } } $def{NEXT, $if{$ne{$last,$msize},, } } $def{P,} $def{PAGE,$if{$gt{$1,9},$if{$gt{$1,99},$P{$1,$div{$1,100}}}$P{$1,$mod{$div{$1,10},10}}}$P{$1,$mod{$1,10}}} $def{S,$1} $def{SPAGE,$if{$gt{$1,9},$if{$gt{$1,99},$S{$1,$div{$1,100}}}$S{$1,$mod{$div{$1,10},10}}}$S{$1,$mod{$1,10}}} } $def{PREV,$if{$ne{$topdoc,0},}} $def{PAGE,} $def{SPAGE,} $def{NEXT,$if{$ne{$last,$msize},}} $if{$query,Search results: $html{$query},Search results} $if{$opt{topterms},$include{inc/toptermsjs}}

$if{,$include{inc/anyalldropbox},$include{inc/anyallradio}} $if{$opt{topterms},
$map{$topterms,$html{$prettyterm{$_}} }
}
$if{$suggestion,Did you mean: $html{$suggestion}
} $or{$html{$error}, $if{$eq{$msize,0}, $if{$query,No documents match your query,
Searching $nice{$dbsize} documents }, $if{$not{$msizeexact}, $nice{$add{$topdoc,1}}-$nice{$last} of about $nice{$msize} matches, $if{$and{$eq{$last,$msize},$eq{$topdoc,0}}, All $nice{$msize} matches, $nice{$add{$topdoc,1}}$if{$ne{$add{$topdoc,1},$last},-$nice{$last}} of exactly $nice{$msize} matches} }
$list{$map{$queryterms,$list{$html{$uniq{$unstem{$_}}},,/,}: $nice{$freq{$_}}},Term frequencies: ,$. ,}
Search took $time seconds $hitlist{}
$html{$or{$field{caption},$field{title},$prettyurl{$field{url}},Untitled}}
$highlight{$field{sample},$terms}$if{$field{sample},...}
$html{$field{url}}
matching: $list{$map{$terms,$html{$prettyterm{$_}}},$. , and }${for lynx:}


${suppress next, prev, and page links if there's only one page} $if{$ne{$lastpage,1}, $set{a,$if{$opt{pagelink_height}, HEIGHT=$opt{pagelink_height}}$if{$opt{pagelink_width}, WIDTH=$opt{pagelink_width}}} ${1-W ... X-(this)-Y ...} $set{w,$min{3,$add{$thispage,-1}}} $set{x,$max{$add{$opt{w},1},$add{$thispage,-3}}} $set{y,$min{$lastpage,$add{$thispage,8}}} $PREV $map{$range{1,$opt{w}},$PAGE{$_}} $if{$ne{$add{$opt{w},1},$opt{x}},...} $map{$range{$opt{x},$add{$thispage,-1}},$PAGE{$_}} $SPAGE{$thispage} $map{$range{$add{$thispage,1},$opt{y}},$PAGE{$_}} $if{$ne{$opt{y},$lastpage},...} $NEXT } }}

$if{$dbname,} $if{$ne{$topdoc,0},} $if{$ne{$hitsperpage,10},} $if{$fmt,} $if{$cgi{COLLAPSE},} $if{$queryterms,} $list{$relevants,} $if{$cgi{THRESHOLD},} ${Preserve any B filters used - this needs modifying if you modify this template to have B on radio buttons, SELECT, etc} $map{$cgilist{B},}
$log{cp-query.log}