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/sidebar/sidebar_1.html

271 lines
11 KiB

<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
/* Init Sidebar_1 */
$("#side1").accordion({
autoHeight: false,
header: "h3"
});
$("#side1").accordion("activate", 2);
/* Menu .click(function() */
$("#login").click(function() {
$.ajax({
url: "/api/bookmarks/xbel/xbel.xml?login=true",
method : "GET",
dataType: "xml",
success: function(xml) {
// ToDo: /api/util/login.xml
// alert("Login");
}
});
});
$("#shutdown").click(function() {
if ( confirm("Shutdown YaCy-Peer?") ) {
$("body").load("../../Steering.html?shutdown=");
}
});
$("#admin").click(function() {
$tabs.tabs('select',1);
});
$("#searchtext").click(function () {
$("#side2").accordion("activate", 0);
});
/* Load Search Result into new Tab */
$('#searchbox').submit(function() {
if ($("select[@name='resource']").getValue() == "ymarks") {
qtag = $("input[@name='search']").getValue();
if (tabid == "#Bookmarks") {
$tabs.tabs("load", 3);
} else {
$tabs.tabs('select',3);
}
} else {
var tabnr = $tabs.tabs('length');
var tabname = $("input[@name='search']").getValue();
$tabs.tabs('add', "yacyui-search.html", '*' + HTMLenc(tabname));
$tabs.tabs('select',tabnr);
}
return false;
});
});
//]]>
</script>
<h3>YaCy P2P Websearch</h3><!-- 0 -->
<div class="yform">
<form id="searchbox" class="small" method="get" accept-charset="UTF-8" action="">
<p>
<label for="search">Search term:</label>
<br />
<input id="searchtext" name="search" class="filter" type="text" size="20" maxlength="80" value=""/>
<img src="img-2/question_blue.png" class="help" alt="help" title="help" />
<br />
<div class="ys">
<label for="resource">Resource/Network:</label>
<br />
<select name="resource" class="selector">
<option value="/yacysearch.rss?resource=global&verify=true" selected="selected">freeworld</option>
<option value="/yacysearch.rss?resource=local&verify=true" >local peer</option>
<option value="ymarks" >bookmarks</option>
<option value="/api/util/ynetSearch.xml?login=&url=http://sciencenet.fzk.de:8080/yacysearch.rss?resource=global&verify=true" >sciencenet</option>
</select>
<br />
<label for="resource">Language:</label>
<br />
<select class="selector" id="language" name="language">
<option value="" selected="selected">any language</option>
<option value="aa" >aa-Afar</option>
<option value="ab" >ab-Abkhazian</option>
<option value="af" >af-Afrikaans</option>
<option value="am" >am-Amharic</option>
<option value="ar" >ar-Arabic</option>
<option value="as" >as-Assamese</option>
<option value="ay" >ay-Aymara</option>
<option value="az" >az-Azerbaijani</option>
<option value="ba" >ba-Bashkir</option>
<option value="be" >be-Byelorussian</option>
<option value="bg" >bg-Bulgarian</option>
<option value="bh" >bh-Bihari</option>
<option value="bi" >bi-Bislama</option>
<option value="bn" >bn-Bengali;-Bangla</option>
<option value="bo" >bo-Tibetan</option>
<option value="br" >br-Breton</option>
<option value="ca" >ca-Catalan</option>
<option value="co" >co-Corsican</option>
<option value="cs" >cs-Czech</option>
<option value="cy" >cy-Welsh</option>
<option value="da" >da-Danish</option>
<option value="de" >de-German</option>
<option value="dz" >dz-Bhutani</option>
<option value="el" >el-Greek</option>
<option value="en" >en-English</option>
<option value="eo" >eo-Esperanto</option>
<option value="es" >es-Spanish</option>
<option value="et" >et-Estonian</option>
<option value="eu" >eu-Basque</option>
<option value="fa" >fa-Persian</option>
<option value="fi" >fi-Finnish</option>
<option value="fj" >fj-Fiji</option>
<option value="fo" >fo-Faeroese</option>
<option value="fr" >fr-French</option>
<option value="fy" >fy-Frisian</option>
<option value="ga" >ga-Irish</option>
<option value="gd" >gd-Scots-Gaelic</option>
<option value="gl" >gl-Galician</option>
<option value="gn" >gn-Guarani</option>
<option value="gu" >gu-Gujarati</option>
<option value="ha" >ha-Hausa</option>
<option value="hi" >hi-Hindi</option>
<option value="hr" >hr-Croatian</option>
<option value="hu" >hu-Hungarian</option>
<option value="hy" >hy-Armenian</option>
<option value="ia" >ia-Interlingua</option>
<option value="ie" >ie-Interlingue</option>
<option value="ik" >ik-Inupiak</option>
<option value="in" >in-Indonesian</option>
<option value="is" >is-Icelandic</option>
<option value="it" >it-Italian</option>
<option value="iw" >iw-Hebrew</option>
<option value="ja" >ja-Japanese</option>
<option value="ji" >ji-Yiddish</option>
<option value="jw" >jw-Javanese</option>
<option value="ka" >ka-Georgian</option>
<option value="kk" >kk-Kazakh</option>
<option value="kl" >kl-Greenlandic</option>
<option value="km" >km-Cambodian</option>
<option value="kn" >kn-Kannada</option>
<option value="ko" >ko-Korean</option>
<option value="ks" >ks-Kashmiri</option>
<option value="ku" >ku-Kurdish</option>
<option value="ky" >ky-Kirghiz</option>
<option value="la" >la-Latin</option>
<option value="ln" >ln-Lingala</option>
<option value="lo" >lo-Laothian</option>
<option value="lt" >lt-Lithuanian</option>
<option value="lv" >lv-Latvian,-Lettish</option>
<option value="mg" >mg-Malagasy</option>
<option value="mi" >mi-Maori</option>
<option value="mk" >mk-Macedonian</option>
<option value="ml" >ml-Malayalam</option>
<option value="mn" >mn-Mongolian</option>
<option value="mo" >mo-Moldavian</option>
<option value="mr" >mr-Marathi</option>
<option value="ms" >ms-Malay</option>
<option value="mt" >mt-Maltese</option>
<option value="my" >my-Burmese</option>
<option value="na" >na-Nauru</option>
<option value="ne" >ne-Nepali</option>
<option value="nl" >nl-Dutch</option>
<option value="no" >no-Norwegian</option>
<option value="oc" >oc-Occitan</option>
<option value="om" >om-(Afan)-Oromo</option>
<option value="or" >or-Oriya</option>
<option value="pa" >pa-Punjabi</option>
<option value="pl" >pl-Polish</option>
<option value="ps" >ps-Pashto,-Pushto</option>
<option value="pt" >pt-Portuguese</option>
<option value="qu" >qu-Quechua</option>
<option value="rm" >rm-Rhaeto-Romance</option>
<option value="rn" >rn-Kirundi</option>
<option value="ro" >ro-Romanian</option>
<option value="ru" >ru-Russian</option>
<option value="rw" >rw-Kinyarwanda</option>
<option value="sa" >sa-Sanskrit</option>
<option value="sd" >sd-Sindhi</option>
<option value="sg" >sg-Sangro</option>
<option value="sh" >sh-Serbo-Croatian</option>
<option value="si" >si-Singhalese</option>
<option value="sk" >sk-Slovak</option>
<option value="sl" >sl-Slovenian</option>
<option value="sm" >sm-Samoan</option>
<option value="sn" >sn-Shona</option>
<option value="so" >so-Somali</option>
<option value="sq" >sq-Albanian</option>
<option value="sr" >sr-Serbian</option>
<option value="ss" >ss-Siswati</option>
<option value="st" >st-Sesotho</option>
<option value="su" >su-Sundanese</option>
<option value="sv" >sv-Swedish</option>
<option value="sw" >sw-Swahili</option>
<option value="ta" >ta-Tamil</option>
<option value="te" >te-Tegulu</option>
<option value="tg" >tg-Tajik</option>
<option value="th" >th-Thai</option>
<option value="ti" >ti-Tigrinya</option>
<option value="tk" >tk-Turkmen</option>
<option value="tl" >tl-Tagalog</option>
<option value="tn" >tn-Setswana</option>
<option value="to" >to-Tonga</option>
<option value="tr" >tr-Turkish</option>
<option value="ts" >ts-Tsonga</option>
<option value="tt" >tt-Tatar</option>
<option value="tw" >tw-Twi</option>
<option value="uk" >uk-Ukrainian</option>
<option value="ur" >ur-Urdu</option>
<option value="uz" >uz-Uzbek</option>
<option value="vi" >vi-Vietnamese</option>
<option value="vo" >vo-Volapuk</option>
<option value="wo" >wo-Wolof</option>
<option value="xh" >xh-Xhosa</option>
<option value="yo" >yo-Yoruba</option>
<option value="zh" >zh-Chinese</option>
<option value="zu" >zu-Zulu</option>
</select>
</div>
<input id="searchbutton" type="submit" name="Enter" value="Search" />
<br />
<table class="contentdom">
<tr>
<td width="20%"><input type="radio" id="text" name="contentdom" value="text" checked="checked" /></td>
<td width="20%"><input disabled type="radio" id="images" name="contentdom" value="image" /></td>
<td width="20%"><input disabled type="radio" id="audio" name="contentdom" value="audio" /></td>
<td width="20%"><input disabled type="radio" id="video" name="contentdom" value="video" /></td>
<td width="20%"><input disabled type="radio" id="appl" name="contentdom" value="app" /></td>
</tr>
<tr>
<td><label for="text">Text</label></td>
<td><label for="images">Images</label></td>
<td><label for="audio">Audio</label></td>
<td><label for="video">Video</label></td>
<td><label for="appl">Applications</label></td>
</tr>
</table>
</p>
</form>
</div>
<h3>YaCy Project</h3><!-- 1 -->
<div class="menu">
<img alt="YaCy Project Home" title="YaCy Project Home" src="img-1/home.png" />
<a href="http://www.yacy.net" >YaCy Home</a><br />
<img alt="YaCy Statistics" title="YaCy Statistics" src="img-2/bar_graph.png" />
<a href="http://www.yacystats.de" >YaCy Statistics</a><br />
<img alt="YaCy Forum" title="YaCy Forum" src="img-1/Discussion.png" />
<a href="http://forum.yacy-websuche.de/" >YaCy Forum</a><br />
<img alt="Help" title="YaCy Wiki" src="img-1/Help%20Blue%20Button.png" />
<a href="http://yacy-websuche.de/wiki/index.php/Hauptseite" >YaCy Wiki</a><br />
</div>
<h3>YaCy Peer Admin</h3><!-- 2 -->
<div class="menu">
<img alt="Login" title="Login" src="img-1/User.png" />
<a id="login" href="#Login">Login</a><br />
<img alt="Admin Console" title="Admin Console" src="img-1/Gear.png" />
<a id="admin" href="#AdminConsole">Admin Console</a><br />
<img alt="Re-Start" title="Re-Start" src="img-1/Backup%20Green%20Button.png" />
<a href="../../Steering.html?restart=">Re-Start</a><br />
<img alt="Shutdown" title="Shutdown" src="img-1/Stop%20Red%20Button.png" />
<a id="shutdown" href="#Shutdown">Shutdown</a><br />
</div>