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

259 lines
9.9 KiB

<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
/* Init Sidebar_1 */
$("#side1").accordion({
autoHeight: false,
clearStyle: true,
header: "h3"
});
$("#side1").accordion("activate", 1);
$("#yfolder").treeview({
url: "/api/bookmarks/get_folders.json?bmtype=href",
unique: false,
toggle: function() {
var $this = $(this);
if ($this.hasClass("expandable")) {
var select = "li:has(ul li[id="+$this.attr("id")+"])";
qtag = $(select).attr("id");
if (!qtag) qtag = "/";
$this.addClass("hasChildren");
$this.find("ul").empty();
if ($tabs.tabs.index == bmk_tab) {
reloadBM();
}
} else if ($this.hasClass("collapsable")) {
qtag = $this.attr("id");
if ($tabs.tabs.index == bmk_tab) {
reloadBM();
}
}
}
});
/* Menu .click(function() */
$("#searchtext").click(function () {
$("#side2").accordion("activate", 0);
$("#searchtext").focus();
});
/* Load Search Result into new Tab */
$('#searchbox').submit(function() {
if ($("select[name='resource']").getValue() == "ymarks") {
qtag = $("input[name='search']").getValue();
if (tabid == "#Bookmarks") {
reloadBM();
} else {
$tabs.tabs('select',2);
}
} 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><a href="#">YaCy P2P Websearch</a></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.json?resource=global&verify=true" selected="selected">freeworld</option>
<option value="/yacysearch.json?resource=local&verify=true" >local peer</option>
<option value="ymarks" >bookmarks</option>
<option value="/api/ynetSearch.json?login=&url=http://sciencenet.fzk.de:8080/yacysearch.json?resource=global&verify=true" >sciencenet-ynetSearch</option>
<option value="http://sciencenet.fzk.de:8080/yacysearch.json?callback=?&resource=global&verify=true" >sciencenet-JsonP</option>
<option value="http://yacy.kicks-ass.net:8080/yacysearch.json?callback=?&resource=global&verify=true" >apfelmaennchen-JsonP</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><a href="#">Bookmark Folders</a></h3><!-- 1 -->
<div>
<ul id="yfolder" class="filetree"></ul>
</div>