|
|
|
<!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>
|
|
|
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
|
<META HTTP-EQUIV="Expires" CONTENT="-1">
|
|
|
|
|
|
|
|
<title>YaCy - Peer-to-Peer Search Network</title>
|
|
|
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta name="Content-Language" content="English, Englisch" />
|
|
|
|
|
|
|
|
<link media="screen" type="text/css" href="css/base.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/jquery.tabs.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/jquery.accordion.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/jquery.pagination.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/jquery.flexigrid.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/jquery.dialog.css" rel="stylesheet" />
|
|
|
|
|
|
|
|
<script src="js/jquery-1.2.6.min.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.ui.all.min.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script src="js/jquery.dimensions.min.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.metadata.min.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script src="js/jquery.form.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.field.min.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script src="js/jquery.pagination.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery-faviconize-1.0.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script src="js/jquery-flexigrid.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
//<![CDATA[
|
|
|
|
HTMLenc = function(s) {
|
|
|
|
return $('<div/>').text(s).html();
|
|
|
|
}
|
|
|
|
$(function() {
|
|
|
|
qtag = "";
|
|
|
|
tabid = "Welcome";
|
|
|
|
/* Initialize Tabs and set up close function */
|
|
|
|
$tabs = $('#container ul').tabs({
|
|
|
|
add: function(e, ui) {
|
|
|
|
var li = $(ui.tab).parents('li:eq(0)')[0];
|
|
|
|
$('<img class="close" alt="close" src="/yacy/ui/img/cancel.png" border="0"/>')
|
|
|
|
.appendTo(li)
|
|
|
|
.bind('click', function() {
|
|
|
|
$tabs.tabs('remove', $('li', $tabs).index(li));
|
|
|
|
});
|
|
|
|
/* save search options from form to tab attributes*/
|
|
|
|
var search = $("input[@name='search']").getValue();
|
|
|
|
var contentdom = $("select[@name='contentdom']").getValue();
|
|
|
|
var count = $("select[@name='itemsPerPage']").getValue();
|
|
|
|
var offset = 0;
|
|
|
|
var resource = $("select[@name='resource']").getValue();
|
|
|
|
var constraint= $("select[@name='constraint']").getValue();
|
|
|
|
var prefermaskfilter = $("input[@name='prefermaskfilter']").getValue();
|
|
|
|
var urlmaskfilter = $("input[@name='urlmaskfilter']").getValue();
|
|
|
|
|
|
|
|
$('#' + ui.panel.id).attr('search', search);
|
|
|
|
$('#' + ui.panel.id).attr('contentdom', contentdom);
|
|
|
|
$('#' + ui.panel.id).attr('count', count);
|
|
|
|
$('#' + ui.panel.id).attr('offset', offset);
|
|
|
|
$('#' + ui.panel.id).attr('resource', resource);
|
|
|
|
$('#' + ui.panel.id).attr('constraint', constraint);
|
|
|
|
$('#' + ui.panel.id).attr('prefermaskfilter', prefermaskfilter);
|
|
|
|
$('#' + ui.panel.id).attr('urlmaskfilter', urlmaskfilter);
|
|
|
|
},
|
|
|
|
select: function(e, ui) {
|
|
|
|
/* set global variable tabid */
|
|
|
|
tabid = '#' + ui.panel.id;
|
|
|
|
if (tabid == "#Bookmarks") {
|
|
|
|
$("select[@name='resource']").setValue('ymarks');
|
|
|
|
$("input[@name='search']").setValue(qtag);
|
|
|
|
} else {
|
|
|
|
/* set query string */
|
|
|
|
var search = $(tabid).attr('search');
|
|
|
|
var contentdom = $(tabid).attr('contentdom');
|
|
|
|
var count = $(tabid).attr('count');
|
|
|
|
var offset = $(tabid).attr('offset');
|
|
|
|
var resource = $(tabid).attr('resource');
|
|
|
|
var constraint= $(tabid).attr('constraint');
|
|
|
|
var prefermaskfilter = $(tabid).attr('prefermaskfilter');
|
|
|
|
var urlmaskfilter = $(tabid).attr('urlmaskfilter');
|
|
|
|
|
|
|
|
query = $(tabid).attr('resource')
|
|
|
|
+"&search="+search
|
|
|
|
+"&contentdom="+contentdom
|
|
|
|
+"&count="+count
|
|
|
|
+"&offset="+offset
|
|
|
|
+"&constraint="+constraint
|
|
|
|
+"&prefermaskfilter="+prefermaskfilter
|
|
|
|
+"&urlmaskfilter="+urlmaskfilter;
|
|
|
|
$("input[@name='search']").setValue(search);
|
|
|
|
$("select[@name='itemsPerPage']").setValue(count);
|
|
|
|
$("select[@name='contentdom']").setValue(contentdom);
|
|
|
|
$("select[@name='constraint']").setValue(constraint);
|
|
|
|
$("input[@name='prefermaskfilter']").setValue(prefermaskfilter);
|
|
|
|
$("input[@name='urlmaskfilter']").setValue(urlmaskfilter);
|
|
|
|
$('#yoptions').trigger('update');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
/* Load Sidebar */
|
|
|
|
$("#side1").load("sidebar/sidebar_1.html");
|
|
|
|
$("#side2").load("sidebar/sidebar_2.html");
|
|
|
|
});
|
|
|
|
//]]>
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="sidebar" class="sidebar">
|
|
|
|
<div class="basic" id="side0">
|
|
|
|
<img alt="YaCy Logo" title="YaCy Logo" class="logo" src="img/kaskelix.png" />
|
|
|
|
</div>
|
|
|
|
<div class="basic" id="side1"></div>
|
|
|
|
<div class="basic" id="side2"></div>
|
|
|
|
</div>
|
|
|
|
<div id="container" class="main">
|
|
|
|
<ul>
|
|
|
|
<!-- initial tabs only, dynamic tabs are loaded via jQuery -->
|
|
|
|
<li><a href="yacyui-welcome.html" title="Welcome"><span>Welcome</span></a></li>
|
|
|
|
<li><a href="yacyui-admin.html" title="Admin Console"><span>Admin Console</span></a></li>
|
|
|
|
<li><a href="yacyui-classic.html" title="Classic Search"><span>Classic Search</span></a></li>
|
|
|
|
<li><a href="yacyui-bookmarks.html" title="Bookmarks"><span>Bookmarks</span></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|