yacy_search_server/htroot/yacy/ui/result.html
apfelmaennchen 54cb097ea4 added .trigger("update") after paging
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4574 6c8d7289-2bf4-0310-a012-ef5d649a1542
2008-03-16 22:05:50 +00:00

85 lines
2.7 KiB
HTML

#(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);
$('#pagination').trigger("update");
}
</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)#