96 lines
3.4 KiB
HTML
96 lines
3.4 KiB
HTML
<!--#set var="title" value="Cerca pacchetti software" -->
|
|
<!--#set var="description" value="Cerca tra i pacchetti software di openmamba" -->
|
|
<!--#set var="keywords" value="openmamba,autodist,autospec,makedist,ftbfs,sviluppatori,patch" -->
|
|
<!--#include virtual="/header.html" -->
|
|
<script type="text/javascript" src="/scripts/webbuild/webbuild.js"></script>
|
|
|
|
<style type="text/css">
|
|
textarea {
|
|
font-size: 8pt;
|
|
overflow: scroll;
|
|
overflow-y: hidden;
|
|
overflow-x: scroll;
|
|
overflow: -moz-scrollbars-horizontal;
|
|
}
|
|
input { font-size: 8pt; }
|
|
</style>
|
|
<script type="text/javascript">
|
|
var lastupdate = 0;
|
|
var reloadtime = 0;
|
|
|
|
function distroquery_request(request) {
|
|
var url = "/cgi-bin/distroquery";
|
|
var statusupdated = false;
|
|
var xmlhttp;
|
|
|
|
document.getElementById("querystatus").innerHTML = "Ricerca in corso...";
|
|
|
|
if (window.XMLHttpRequest)
|
|
xmlhttp = new XMLHttpRequest();
|
|
else if (window.ActiveXObject)
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
else
|
|
return;
|
|
document.getElementById("noajax_msg").innerHTML = "";
|
|
xmlhttp.onreadystatechange = function() {
|
|
if (xmlhttp.readyState != 4) {
|
|
return;
|
|
}
|
|
var xmldoc = xmlhttp.responseXML.documentElement;
|
|
var xmlelement = xmldoc.getElementsByTagName("*");
|
|
for (var i=0, max=xmlelement.length; i < max; i++) {
|
|
if (xmlelement[i].nodeName == "title")
|
|
document.title = xmldoc.getElementsByTagName("title")[0].childNodes[0].nodeValue;
|
|
else if (document.getElementById(xmlelement[i].nodeName).innerHTML != null) {
|
|
document.getElementById(xmlelement[i].nodeName).innerHTML = xmlelement[i].childNodes[0].nodeValue;
|
|
if (xmlelement[i].nodeName == "querystatus") statusupdated = true;
|
|
}
|
|
}
|
|
lastupdate = (+new Date());
|
|
if (xmlhttp.readyState==4 && xmlhttp.status==200 && !statusupdated)
|
|
document.getElementById("querystatus").innerHTML = "";
|
|
}
|
|
if (request)
|
|
xmlhttp.open("GET", url + "?lang=it_IT.UTF-8&" + request, true);
|
|
else
|
|
xmlhttp.open("GET", url + "?lang=it_IT.UTF-8", true);
|
|
xmlhttp.send();
|
|
|
|
// xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
|
|
// xmlhttp.send(request);
|
|
}
|
|
</script>
|
|
<table width="100%"><tr><td>
|
|
<tr><td valign="middle">
|
|
<table align="center"><tr>
|
|
<td><img src="/images/packages_gr.png" alt="build automatici"></td>
|
|
<td class="toptitle">Cerca in openmamba (beta)</td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td>
|
|
<div id="noajax_msg"><p>Il supporto per AJAX non è abilitato nel tuo browser. L'aggiornamento live non sarà disponibile, premi Ricarica per aggiornare la pagina.</p></div>
|
|
<span id="queryform">Caricamento in corso, attendere prego...</span>
|
|
<br>
|
|
<a id="status"></a>
|
|
<span id="querystatus"></span>
|
|
<br>
|
|
<a id="reply"></a>
|
|
<span id="queryreply"> </span>
|
|
<script>
|
|
n=window.location.href.replace('://',"").split('/');
|
|
if (n[1] == "search") {
|
|
distroquery_request("query=" + n[2] + "&searchbox=1");
|
|
} else if (n[1] == "distribution") {
|
|
distroquery_request(window.location.href.replace(/.*\?/,""));
|
|
} else if (n.length == 2) {
|
|
distroquery_request("query=" + n[1] + "&searchbox=1");
|
|
} else if (n.length == 4) {
|
|
distroquery_request("repository=" + n[1] + "&query_arch=" + n[2] + "&package=" + n[3] + "&searchbox=1");
|
|
} else {
|
|
distroquery_request("repository=" + n[1] + "&package=" + n[2] + "&searchbox=1");
|
|
}
|
|
</script>
|
|
</td></tr>
|
|
</table>
|
|
<!--#include virtual="/footer.html" -->
|