'$show_filter' "; $refresh = ' '; $nav_org_filter = ' var http_request = false; var http_request2 = false; function toggleindicator(status){ //Diese Variable definiert wie lange der Indicator mindestens da sein soll. var timetowait = 2100; if(status=='off') { var vergangen = new Date().getTime() - time if( vergangen >=timetowait) { document.getElementById(\"loading-indicator\").style.display='none'; } else { setTimeout(toggleindicator(\"off\"),timetowait - vergangen); } } else { document.getElementById(\"loading-indicator\").style.display=''; document.getElementById(\"loading-indicator\").style.position='absolute'; document.getElementById(\"loading-indicator\").style.left='40%'; document.getElementById(\"loading-indicator\").style.top='100px'; time = new Date().getTime(); } } /// second Request function macheSecondaryRequest() { var url = 'get_other.php'; http_request2 = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request2 = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE try { http_request2 = new ActiveXObject(\"Msxml2.XMLHTTP\"); } catch (e) { try { http_request2 = new ActiveXObject(\"Microsoft.XMLHTTP\"); } catch (e) {} } } if (!http_request2) { alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); return false; } http_request2.open('GET', url, true); http_request2.onreadystatechange = alertSecondaryInhalt; http_request2.send(null); window.setTimeout(\"macheSecondaryRequest()\",60000); } function alertSecondaryInhalt() { if (http_request2.readyState == 4) { var answer = http_request2.responseText; if(document.getElementById(\"onlUsers\").innerHTML != answer){ document.getElementById(\"onlUsers\").innerHTML = answer; } else{ document.getElementById(\"onlUsers\").innerHTML = \"\"; } } } function macheRequest() { var url = 'get.php?".$_SERVER['QUERY_STRING']."'; http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject(\"Msxml2.XMLHTTP\"); } catch (e) { try { http_request = new ActiveXObject(\"Microsoft.XMLHTTP\"); } catch (e) {} } } if (!http_request) { alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); return false; } http_request.open('GET', url, true); http_request.onreadystatechange = alertInhalt; http_request.send(null); if (document.getElementById(\"filter\").options[5].selected == true) { window.setTimeout(\"macheRequest()\",10000); } } function alertInhalt() { if (http_request.readyState == 4) { var answer = http_request.responseText; if(document.getElementById(\"inhalt\").innerHTML != answer){ document.getElementById(\"inhalt\").innerHTML = answer; } else{ document.getElementById(\"inhalt\").innerHTML = \"\"; } if(document.getElementById(\"loading-indicator\").style.display=='') { toggleindicator(\"off\"); } } } "; eval ("dooutput(\"".gettemplate($template_dir."rahmen")."\");"); ?>