function starteGenerierung(u_admin,u_reset,u_feld,u_all){ if (u_admin == null || typeof(u_admin) == undefined){ var ladmin = false; }else{ var ladmin = u_admin; } if (u_reset == null || typeof(u_reset) == undefined){ var lreset = 0; }else{ var lreset = u_reset; } if (u_feld == null || typeof(u_feld) == undefined){ var lfeld = 'null'; }else{ var lfeld = u_feld; } if (u_all == null || typeof(u_all) == undefined){ var lall = false; }else{ var lall = u_all; } var linfo = ''; var lhtml = ''; var lkey = ''; if (lall){ for (var i = 0; i < menue_key.length; i++){ if (menue_html[i] != ''){ lkey += menue_key[i]+':'; lhtml += menue_html[i]+':'; linfo += menue_info[i]+':'; } } lhtml = lhtml.slice(0,lhtml.length); linfo = linfo.slice(0,linfo.length); lkey = lkey.slice(0,lkey.length); }else{ lkey = getCookie(Cookie_letzteSeite); for (var i = 0; i < menue_key.length; i++){ if (lkey == menue_key[i]){ if (menue_html[i] != ''){ lhtml = menue_html[i]; } if (menue_info[i] != ''){ linfo = menue_info[i]; } break; } } } if (lhtml != '' || linfo != ''){ htmlKnoten.innerHTML = '

Generierung läuft ...

'; var lhref = 'aktion=generate'+ '&admin='+ladmin+ '&htmlverz='+Globals_VERZ_HTML+ '&infoverz='+Globals_VERZ_INFO+ '&imgverz='+Globals_VERZ_IMG+ '&imgbtn='+Globals_BUTTON_IMG+ '&imgerrbtn='+Globals_ERRBUTTON_IMG+ '&rtfverz='+Globals_VERZ_RTF+ '&rtfbtn='+Globals_BUTTON_RTF+ '&rtferrbtn='+Globals_ERRBUTTON_RTF+ '&xmlverz='+Globals_VERZ_XML+ '&xmlbtn='+Globals_BUTTON_XML+ '&xmlerrbtn='+Globals_ERRBUTTON_XML+ '&htmlfile='+lhtml+ '&infofile='+linfo+ '&imgdefault='+Globals_DEFAULT_IMG+ '&inclverz='+Globals_VERZ_INCL+ '&key='+lkey; sendRequest('adminindex.php','returnGenerierung' ,NOERRORSEITE,lreset,lfeld ,lhref); //Post - Request }else{ alert(htmltoalert(Globals_KEIN_FILE_ZUM_EDITIEREN)); } } function returnGenerierung(readDaten,u_return,u_feld){ switch (u_return){ case 0: // Für test auskommentiert // if (readDaten.slice(1,10) != ''){ // alert("Ergebnis der Generierung:\n"+readDaten); // } case 2: // Reset unbedingt notwendig // um Anker zu aktualisieren if (window.location.href.search(/#/) != -1){ document.location.href = window.location.href.slice(0,window.location.href.search(/#/)); }else{ document.location.href = window.location.href; } return; case 1: switch(u_feld){ case 'htmlKnoten-xml': case 'htmlKnoten-rtf': case 'htmlKnoten-img': if (htmlKnoten != null){ htmlKnoten.innerHTML = readDaten; document.location.href = '#'+IMG_Anker; var lnav = document.getElementById('Nav'); if (BROWSER == 'FF'){ lnav.style.top = window.pageYOffset; }else{ if (document.documentElement && document.documentElement.scrollTop){ lnav.style.top = document.documentElement.scrollTop; }else{ if (document.body){ lnav.style.top = document.body.scrollTop; } } } } return; default: alert('Unbekannter Knoten: '+u_feld); if (window.location.href.search(/#/) != -1){ document.location.href = window.location.href.slice(0,window.location.href.search(/#/)); }else{ document.location.href = window.location.href; } return; } default: alert('Unbekannter Returncode: '+u_return); if (window.location.href.search(/#/) != -1){ document.location.href = window.location.href.slice(0,window.location.href.search(/#/)); }else{ document.location.href = window.location.href; } return; } }