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.
yacy_search_server/htroot/yacy/ui/result.html

84 lines
2.6 KiB

#(input)#
::
<script type="text/javascript">
$(function() {
$("input[@name='search']").setValue("#[former]#");
$("input[@name='contentdom']").setValue("#[contentdom]#");
$("input[@name='former']").setValue("#[former]#");
$("input[@name='count']").setValue("#[count]#");
$("input[@name='offset']").setValue("#[offset]#");
$("input[@name='resource']").setValue("#[resource]#");
$("input[@name='urlmaskfilter']").setValue("#[urlmaskfilter]#");
$("input[@name='prefermaskfilter']").setValue("#[prefermaskfilter]#");
$("input[@name='depth']").setValue("#[depth]#");
$("input[@name='cat']").setValue("#[cat]#");
$("input[@name='type']").setValue("#[type]#");
$("input[@name='display']").setValue("#[display]#");
$("input[@name='input']").setValue("#[input]#");
$("input[@name='constraint']").setValue("#[constraint]#");
});
</script>
::
#(/input)#
<!-- type the number of results -->
#(num-results)#
::
<p>No Results.</p>
::
<p>No Results. (length of search words must be at least 3 characters)</p>
::
<script type="text/javascript">
$(function() {
var totalcount = #[totalcount]#;
var size = $("input[@name='count']").getValue();
var offset = $("input[@name='offset']").getValue();
if (offset != 0) {
var page = ((offset-1)/size);
} else {
var page = 0;
}
$("#pagination").pagination(totalcount, {
current_page:page,
items_per_page:size,
num_edge_entries:2,
num_display_entries:10,
callback: loadContents
});
});
function loadContents(page_id, jq) {
var count = $("input[@name='count']").getValue();
var offset = ((page_id*count)+1);
$("input[@name='offset']").setValue(offset);
var result = "result.html?" + $('#searchbox').formSerialize();
var selected = $('#container ul').data('selected.ui-tabs');
$('#container ul').tabs('url', selected, result);
$('#container ul').tabs('load', selected);
}
</script>
::
#(/num-results)#
<div id="#[ID]#"></div>
<div id="pagination" class="pagination">[Pagination]</div>
<!-- linklist begin -->
#(resultTable)#::<table width="100%"><tr class="TableHeader"><td width="30%">Media</td><td width="70%">URL</tr>#(/resultTable)#
#{results}#
<script type="text/javascript">
$(function() {
var id = "#"+"#[ID]#";
$.get("/yacy/ui/ritem.html?rss=false&item=#[item]#&eventID=#[eventID]#", function(html) {
$(id).append(html);
$(id).trigger("update");
});
return false;
});
</script>
#{/results}#
#(resultTable)#::</table>#(/resultTable)#