General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
WebSearch
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
Search
Wiki source code of
Search
Last modified by
Administrator
on 2007/07/15 02:39
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
1 $msg.get("search") #if(!$request.space) #set($space = "All") #else #set($space = $request.space) #end #set($spacesText = {}) #set($spaces = $xwiki.spaces) #set($ok = $spacesText.put("All","All")) #foreach($space in $spaces) #set($ok = $spacesText.put($space,$space)) #end #macro(spaceoption $space $selectspace $spacesText) <option value="$spacesText.get($space)" #if($selectspace == $spacesText.get($space))selected="selected"#end>$space</option> #end #macro(spaceselect $selectspace $spaces $spacesText) <select name="space"> #spaceoption("All" $selectspace $spacesText) #foreach($space in $spaces) #spaceoption($space $selectspace $spacesText) #end </select> #end ## ## #set($text = "$!request.getParameter('text')") #set($utext = $util.encodeURI($text)) #if($space == "All") #set($url = $xwiki.getURL("Main.WebSearchRss", "view", "xpage=rdf&text=${utext}" )) #else #set($url = $xwiki.getURL("Main.WebSearchRss", "view", "xpage=rdf&space=$space&text=${utext}")) #end <div style="float: right;"> <a href="$url"><img src="$xwiki.getSkinFile("icons/black-rss.png")" style="border:0px" alt="$msg.get('xe.rss.icon')" /></a> </div> <form action=""> {pre} <div class="centered"> $msg.get("xe.search.query") <input type="text" name="text" value="$xwiki.getFormEncoded($!text)" size="20"/> $msg.get("xe.search.in.space") #spaceselect($space $spaces $spacesText) <input type="submit" value="$msg.get("xe.search.go")"/> </div> {/pre} </form> #includeInContext("XWiki.WebSearchCode") #includeInContext("XWiki.Results") #set($luceneSearch = "[$msg.get('xe.search.lucene')>Main.LuceneSearch?text=$!utext]") #info($msg.get("xe.search.lucene.try", [$luceneSearch]))
Search
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox
Recently Modified
XWiki Scheduler Job Class
|
XWiki Preferences
|
XWikiAllGroup