You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
172 lines
8.4 KiB
172 lines
8.4 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>YaCy '#[clientname]#': Search Page</title>
|
|
#%env/templates/metas.template%#
|
|
<link rel="alternate" type="application/rss+xml" title="Search for #[former]#" href="yacysearch.rss?query=#[former]#" />
|
|
<link rel="search" type="application/opensearchdescription+xml" title="YaCy Search on '#[clientname]#'" href="opensearchdescription.xml" />
|
|
<script type="text/javascript" src="js/html.js"></script>
|
|
<script src="/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"></script>
|
|
<link media="screen" type="text/css" href="/yacy/ui/css/autocomplete.css" rel="stylesheet" />
|
|
</head>
|
|
<body id="index" onload="document.getElementById('search').focus()">
|
|
|
|
<script type="text/javascript" src="/yacy/ui/js/jquery.autocomplete.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#search').autocomplete('/suggest.json', {parse: opensearch, delay: 0, selectFirst: false, scroll: false, max: 20});
|
|
function opensearch(data) {
|
|
var parsed = [];
|
|
data = eval('({"suggest":' + data + '})');
|
|
for (var i = 0; i < data.suggest[1].length; i++) {
|
|
var row = data.suggest[1][i];
|
|
if (row) {
|
|
parsed[parsed.length] = {
|
|
data: [row],
|
|
value: row,
|
|
result: row
|
|
};
|
|
};
|
|
};
|
|
return parsed;
|
|
};
|
|
});
|
|
</script>
|
|
|
|
#(display)#
|
|
#%env/templates/simpleheader.template%#
|
|
<div id="kiosk">
|
|
<a href="index.html?display=2"><img src="env/grafics/close.gif" width="16" height="16" alt="close" /></a>
|
|
<span>kiosk mode</span>
|
|
</div>
|
|
::
|
|
#%env/templates/header.template%#
|
|
::
|
|
#%env/templates/embeddedheader.template%#
|
|
#(/display)#
|
|
|
|
<h2 class="yacy">
|
|
<a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.largeImage]#" alt="yacy" style="margin: auto;"/></a><br /><br />
|
|
#[promoteSearchPageGreeting]#
|
|
</h2>
|
|
|
|
<form class="search" action="yacysearch.html" method="get" id="searchform" accept-charset="UTF-8">
|
|
<fieldset class="maininput">
|
|
<input type="hidden" name="display" value="#[display]#" />
|
|
<input name="query" id="search" type="text" size="52" maxlength="80" value="#[former]#" />
|
|
<input type="submit" name="Enter" value="Search" />
|
|
<input type="hidden" name="verify" value="true" />
|
|
#(searchdomswitches)#::
|
|
<div class="yacysearch">
|
|
#(searchtext)#::<input type="radio" id="text" name="contentdom" value="text" #(check)#::checked="checked"#(/check)# /><label for="text">Text</label> #(/searchtext)#
|
|
#(searchimage)#::<input type="radio" id="image" name="contentdom" value="image" #(check)#::checked="checked"#(/check)# /><label for="image">Images</label> #(/searchimage)#
|
|
#(searchaudio)#::<input type="radio" id="audio" name="contentdom" value="audio" #(check)#::checked="checked"#(/check)# /><label for="audio">Audio</label> #(/searchaudio)#
|
|
#(searchvideo)#::<input type="radio" id="video" name="contentdom" value="video" #(check)#::checked="checked"#(/check)# /><label for="video">Video</label> #(/searchvideo)#
|
|
#(searchapp)#::<input type="radio" id="app" name="contentdom" value="app" #(check)#::checked="checked"#(/check)# /><label for="app">Applications</label>#(/searchapp)#
|
|
</div>
|
|
#(/searchdomswitches)#
|
|
<input type="hidden" name="nav" value="all" />
|
|
#(searchoptions)#
|
|
<input type="hidden" name="maximumRecords" value="#[maximumRecords]#" />
|
|
<input type="hidden" name="startRecord" value="0" />
|
|
<input type="hidden" name="resource" value="global" />
|
|
<input type="hidden" name="urlmaskfilter" value=".*" />
|
|
<input type="hidden" name="prefermaskfilter" value="" />
|
|
<input type="hidden" name="indexof" value="off" />
|
|
<input type="hidden" name="meanCount" value="5" />
|
|
</fieldset>
|
|
<p><a href="/index.html?searchoptions=1&display=#[display]#" onclick="this.href='/index.html?searchoptions=1&display=#[display]#&former='+document.getElementById('searchform').search.value+'&contentdom='+radioValue(document.getElementById('searchform').contentdom)">more options...</a></p>
|
|
<p><a href="http://www.yacy-websuche.de/wiki/index.php/En:SearchParameters">advanced parameters</a></p>
|
|
::
|
|
</fieldset>
|
|
|
|
<table>
|
|
<tr>
|
|
<td><label for="count">Max. number of results</label>:</td>
|
|
<td>
|
|
<select id="count" name="count">
|
|
<option #(count-10)#::selected="selected"#(/count-10)#>10</option>
|
|
<option #(count-50)#::selected="selected"#(/count-50)#>50</option>
|
|
<option #(count-100)#::selected="selected"#(/count-100)#>100</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="resource">Resource</label>:</td>
|
|
<td>
|
|
<select id="resource" name="resource">
|
|
<option value="global" #(resource-global)#::selected="selected"#(/resource-global)#
|
|
#(resource-global-disabled)#::disabled="disabled"#(/resource-global-disabled)#>global</option>
|
|
<option value="local" #(resource-local)#::selected="selected"#(/resource-local)#>local</option>
|
|
</select>
|
|
#(resource-global-disabled)#::
|
|
Global search is disabled because<br />#(reason)#
|
|
<a class="lock" href="ConfigNetwork_p.html">DHT Distribution</a> is::
|
|
<a class="lock" href="ConfigNetwork_p.html">Index Receive</a> is::
|
|
<a class="lock" href="ConfigNetwork_p.html">DHT Distribution and Index Receive</a> are#(/reason)#
|
|
disabled.#(/resource-global-disabled)#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="urlmaskfilter">URL mask</label>:</td>
|
|
<td>#(urlmaskoptions)#
|
|
<input id="urlmaskfilter" name="urlmaskfilter" type="text" size="12" maxlength="80" value="#[urlmaskfilter]#" />
|
|
::
|
|
<input type="radio" name="urlmask" value="yes" checked /> restrict on <input name="urlmaskfilter" type="text" size="12" maxlength="80" value="#[urlmaskfilter]#" />
|
|
<input type="radio" name="urlmask" value="no" /> show all
|
|
#(/urlmaskoptions)#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="prefermaskfilter">Prefer mask</label>:
|
|
</td>
|
|
<td>
|
|
#(prefermaskoptions)#
|
|
<input id="prefermaskfilter" name="prefermaskfilter" type="text" size="12" maxlength="80" value="#[prefermaskfilter]#" />
|
|
::
|
|
<input type="radio" name="prefermask" value="yes" checked="checked" /> restrict on <input name="prefermaskfilter" type="text" size="12" maxlength="80" value="#[prefermaskfilter]#" />
|
|
<input type="radio" name="prefermask" value="no" /> show all
|
|
#(/prefermaskoptions)#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Constraints:
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" id="indexof" name="indexof" #[indexofChecked]# /> <label for="indexof">only index pages</label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
#(/searchoptions)#
|
|
</form>
|
|
#(searchoptions)#::
|
|
<form action="index.html" method="get" class="search">
|
|
<p>
|
|
#(publicSearchpage)#
|
|
<button type="submit" name="publicPage" value="0">
|
|
<img src="/env/grafics/lock.gif" alt="authentication required" />
|
|
Disable search function for users without authorization
|
|
</button>
|
|
::
|
|
<button type="submit" name="publicPage" value="1">
|
|
<img src="/env/grafics/lock.gif" alt="authentication required" />
|
|
Enable web search to everyone
|
|
</button>
|
|
#(/publicSearchpage)#
|
|
</p>
|
|
</form>
|
|
#(/searchoptions)#
|
|
#(display)#
|
|
#%env/templates/simplefooter.template%#
|
|
::
|
|
#%env/templates/footer.template%#
|
|
::
|
|
#%env/templates/embeddedfooter.template%#
|
|
#(/display)#
|
|
<p>
|
|
<img src="cytag.png?icon=invisible&nick=yacyh_#[clientid]#&tag=search" alt=""/>
|
|
</p>
|
|
</body>
|
|
</html> |