// MENU MANAGEMENT // functions function delEntry( entry, search ) { var i for( i=2; i0 ) { winPC=window.open('index_pc.html','fenster3','left=0,top=0,width=1080,height=700,location=yes,resizable=yes') winPC.focus() } else alert("Yield data not yet available") } function visuPalm(f){ if( AnzahlWR>0 ) { winPALM=window.open('palm.html','fenster4','width=321,height=290,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no') winPALM.focus() } else alert("Yield data not yet available") } function visuDCF(f){ winDCF=window.open('dcf.html','fenster5','width=230,height=100,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no') winDCF.focus() } var pathTitle="" // menu structure var entryID = new Array() var entryName = new Array() var entryHtml = new Array() entryID[0] = "1" entryName[0] = "Lan" entryHtml[0] = "lan.html" entryID[19] = "20" entryName[19] = "WiFi" entryHtml[19] = "wlan.html" entryID[1] = "2" entryName[1] = "Groups" entryHtml[1] = "group.html" entryID[14] = "15" entryName[14] = "Inverter order" entryHtml[14] = "sort.html" entryID[17] = "18" entryName[17] = "Inverter exchange" entryHtml[17] = "tausch.html" entryID[2] = "3" entryName[2] = "Inverter" entryHtml[2] = "inverter.html" entryID[3] = "4" entryName[3] = "Forecast" entryHtml[3] = "basic.html" entryID[4] = "5" entryName[4] = "Graphics" entryHtml[4] = "visual.html" entryID[5] = "6" entryName[5] = "Internet" entryHtml[5] = "homepage.html" entryID[6] = "7" entryName[6] = "E-mail" entryHtml[6] = "email.html" entryID[7] = "8" entryName[7] = "SMS" entryHtml[7] = "sms.html" entryID[8] = "9" entryName[8] = "WEB-Export" entryHtml[8] = "export.html" entryID[9] = "10" entryName[9] = "Malfunction" entryHtml[9] = "stoerung.html" entryID[16] = "17" entryName[16] = "SCB" entryHtml[16] = "scb.html" entryID[15] = "16" entryName[15] = "Power Managmt." entryHtml[15] = "pm.html" entryID[10] = "11" entryName[10] = "Backup" entryHtml[10] = "backup.html" entryID[11] = "12" entryName[11] = "System" entryHtml[11] = "system.html" entryID[12] = "13" entryName[12] = "Update" entryHtml[12] = "firmware.html" entryID[13] = "14" entryName[13] = "Start config." entryHtml[13] = "begin.html" entryID[20] = "21" entryName[20] = "Visualization PC" entryHtml[20] = "javascript:visuPC()" entryID[21] = "22" entryName[21] = "PDA / PocketPC" entryHtml[21] = "javascript:visuPalm()" entryID[22] = "23" entryName[22] = "Event records" entryHtml[22] = "events.html" entryID[23] = "24" entryName[23] = "Degradation" entryHtml[23] = "degradation.html" entryID[24] = "25" entryName[24] = "SCB Monitor" entryHtml[24] = "javascript:visuSCB()" entryID[25] = "26" entryName[25] = "Event records" entryHtml[25] = "events_scb.html" entryID[26] = "27" entryName[26] = "Passwortschutz!!!" entryHtml[26] = "system.html" entryID[27] = "28" entryName[27] = " " entryHtml[27] = "index.html" entryID[28] = "29" entryName[28] = "Direct marketing" entryHtml[28] = "directmarketing.html" var activeHeader; var headerEntryCnt; var headerEntry; var menuEntryCnt; var menuEntry; // Aufbau der MenüStruktur // Beispiel headerEntry[2]=new Array("Configuration","lan.html",mBasic,mExpert,mInternal) // Es werden soviel headerEntry angelegt, wie Reiter im Menü erscheinen sollen. // 1.Eintrag: Reiter-Text, 2. Eintrag: Start-Seite, danach: MenüEintrag1, MenüEintrag2, Menüeintrag3 .... (entspricht den Indices des MenüEinträge) // MenüEinträge: // Beispiel menuEntry[0] = new Array( "1","Basic", "lan.html", "1", "20", "2", "15","18", "3", "4", "5" ) // Für jeden HeaderEntry muss mindestens ein MenüEntry angelegt sein // 1. Eintrag: 0=kein Untermenü, 1 = Untermenüs vorhanden, 2.Eintrag: MenüText, 3.Eintrag: Startseite, danach: Entry-Einträge für Haupt oder SubMenüs. // Für jedes MenüEntry muss mindestens ein entry angelegt sein. // z.Bsp. entryID[12]="13" : das ist die Nummer die im MenüEntry verwendet wird // entryName[12]= "Update" : Text der für das Menü/Submenü angezeigt wird // entryHtml[12] = "firmware.html" : HTML-Seite, die geladen wird //if (OEMTyp != 5) //SolarWorld hat eigene Menüstruktur if (OEMTyp != 22) // wieder auf 5 setzen, wenn SolarWorld neue Menüstruktur benötigit { var mBasic=0, mExpert=1, mInternal=2,mVisu=3,mPDA=4,mEvent=5,mDegradation=6 // diese MenuEntrys sind bei allen Typen vorhanden var mStart=0, mVisuScb=0,mEventScb=0 // diese MenuEntrys sind variabel ( mStart bei WR-Auswahl über WEB, mVisuSCB für SCB-Visualisierung, mEventsSCB bei SIEL) menuEntryCnt = 7 menuEntry=new Array(menuEntryCnt) menuEntry[0] = new Array( "1","Basic", "lan.html", "1", "20", "2", "15","18", "3", "4", "5" ) if( OEMTyp==0 || OEMTyp==1 || OEMTyp==6 ) { menuEntry[1] = new Array( "1","Extended", "homepage.html", "6", "9", "7", "8", "10", "17", "16", "29" ) } else { // alte Darstellung fuer OEMs menuEntry[1] = new Array( "1","Extended", "homepage.html", "6", "7", "8", "9", "10", "17", "16" ) } menuEntry[2] = new Array( "1","Internal", "backup.html", "11", "12", "13" ) menuEntry[3]= new Array ("0","Visualization PC", "javascript:visuPC()","21" ) menuEntry[4]= new Array ("0","PDA / PocketPC", "javascript:visuPalm()","22" ) menuEntry[5]= new Array ("0","Event records", "events.html","23" ) menuEntry[6]= new Array ("0","Degradation", "degradation.html","24" ) if( SCB==true ) { menuEntryCnt++ mVisuScb=menuEntryCnt-1; menuEntry.push( new Array( "0","SCB Monitor", "javascript:visuSCB()", "25" ) ) if (SCBIF1 == 2) { menuEntryCnt++ mEventScb=menuEntryCnt-1; menuEntry.push( new Array( "0","Event records SCB", "events_scb.html", "26" ) ) } } // SolarLog500 und vergleichbare: Anlagengruppen entfernen if( SLTyp==800 || SLTyp==1000 ) { } else { delEntry(menuEntry[mBasic],"2") } // SolarLog200 und vergleichbare: WR-Reihenfolge entfernen if( SLTyp==200 && OEMTyp!=5 ) { delEntry(menuEntry[mBasic],"15") } // SolarLog200 (neues Design) if( (OEMTyp==0 || OEMTyp==8)&& SLBV==22 && SLTyp==200 ) { menuEntryCnt++ mStart=menuEntryCnt-1; menuEntry.push( new Array( "1","Start", "begin.html", "14" ) ) } if( (SLHW&8192)==0) // WLAN? { delEntry(menuEntry[mBasic],"20") } if( !(OEMTyp==0 || OEMTyp==1 || OEMTyp==6 || OEMTyp==5) ) { // Kein PowerReducing-PiggyBack? Menuepunkt entfernen if( (SLHW&1024)==0 ) { delEntry(menuEntry[mExpert],"16") } } if( OEMTyp!=0 ) // WR-Tausch nur für SDS { delEntry(menuEntry[mBasic],"18") } // SCB Dialoge? if( SCB==false ) { // Nein, iSCB entfernen delEntry(menuEntry[mExpert],"17") } // Direktvermarktung Dialog? Nur bei Nicht-OEM und wenn Lizenzschlüssel gesetzt wurde if ( DirectMarketing == false || OEMTyp!=0) { delEntry(menuEntry[mExpert],"29") } headerEntryCnt = 3 headerEntry= new Array(headerEntryCnt) if (SCB==true) headerEntry[0]=new Array("Yield data","index.html",mVisu,mPDA,mVisuScb) else headerEntry[0]=new Array("Yield data","index.html",mVisu,mPDA) if (SCBIF1 == 2) headerEntry[1]=new Array("Diagnosis","events.html",mEvent,mDegradation,mEventScb) else headerEntry[1]=new Array("Diagnosis","events.html",mEvent,mDegradation) if (mStart == 0) headerEntry[2]=new Array("Configuration","lan.html",mBasic,mExpert,mInternal) else headerEntry[2]=new Array("Configuration","begin.html",mStart,mBasic,mExpert,mInternal) } else // SolarWorld { var mEvents=0, mVisu=0, mPDA=0, mLan=0,mDataExport=0,mGroups=0,mConfiguration=0,mPrognose=0,mHomepage=0,mEMail=0,mMeasurement=0,mSystemDate=0,mFirmware=0,mBlank=0 var mStart=0; if(SLBV==1 && (SLTyp==200 || SLTyp==400) ) { // SW ohne Display? mStart=1; } if (webMenuFull) // Anzeige des kompletten Menüs mit lokaler Visualisierung { menuEntryCnt = 13; if (mStart) menuEntryCnt++; menuEntry=new Array(menuEntryCnt) mEvents=0; menuEntry[0]= new Array ("0","Event records", "events.html","23" ) mVisu=1; menuEntry[1]= new Array ("0","Visualization PC", "javascript:visuPC()","21" ) mPDA=2; menuEntry[2]= new Array ("0","Visualization PDA/Pocket PC", "javascript:visuPalm()","22" ) mLan=3; menuEntry[3]= new Array ("0","Lan", "lan.html","1" ) mDataExport=4; menuEntry[4]= new Array ("0","Data export", "export.html","9" ) mGroups=5; menuEntry[5]= new Array ("0","Groups", "group.html","2" ) mConfiguration=6; menuEntry[6]= new Array ("1","Configuration", "inverter.html","3","5","10","16" ) mPrognose=7; menuEntry[7]= new Array ("0","Forecast", "basic.html","4" ) mHomepage=8; menuEntry[8]= new Array ("0","Homepage", "homepage.html","6" ) mMeasurement=9; menuEntry[9]= new Array ("0","Measured Data", "backup.html","11" ) mSystemDate=10; menuEntry[10]= new Array ("0","System Data", "system.html","12" ) mFirmware=11; menuEntry[11]= new Array ("0","Firmware", "firmware.html","13" ) mBlank=12; menuEntry[12]= new Array ("0","", "index.html","28" ); if (mStart) { mStart=13; menuEntry[13] = new Array(0, "Start config.", "begin.html", "14" ); } headerEntryCnt = 5 headerEntry= new Array(headerEntryCnt) headerEntry[0]=new Array("Home","index.html",mBlank) headerEntry[1]=new Array("Status PV","events.html",mEvents,mVisu,mPDA); if (mStart) headerEntry[2]=new Array("Suntrol-Portal","lan.html",mStart,mLan,mDataExport); else headerEntry[2]=new Array("Suntrol-Portal","lan.html",mLan,mDataExport); headerEntry[3]=new Array("Local visualization","group.html",mGroups,mConfiguration,mPrognose,mHomepage,mEmail) headerEntry[4]=new Array("Data backup","backup.html",mMeasurement,mSystemDate,mFirmware) // !!!!!Kein PowerReducing-PiggyBack? Menuepunkt entfernen if( (SLHW&1024)==0 ) { delEntry(menuEntry[mConfiguration],"16") } } else // Anzeige eines reduzierten Menüs ohne lokale Visualisierung { menuEntryCnt = 6 if (mStart) menuEntryCnt++; menuEntry=new Array(menuEntryCnt) mLan=0; menuEntry[0]= new Array ("0","Lan", "lan.html","1" ) mDataExport=1; menuEntry[1]= new Array ("0","Data export", "export.html","9" ) mMeasurement=2; menuEntry[2]= new Array ("0","Measured Data", "backup.html","11" ) mSystemDate=3; menuEntry[3]= new Array ("0","System Data", "system.html","12" ) mFirmware=4; menuEntry[4]= new Array ("0","Firmware", "firmware.html","13" ) mBlank=5; menuEntry[5]= new Array ("0","", "index.html","28" ) if (mStart) { mStart=6; menuEntry[6] = new Array(0, "Start config.", "begin.html", "14" ) } headerEntryCnt = 3 headerEntry= new Array(headerEntryCnt) headerEntry[0]=new Array("Home","index.html",mBlank) if (mStart) headerEntry[1]=new Array("Suntrol-Portal","lan.html",mStart,mLan,mDataExport) else headerEntry[1]=new Array("Suntrol-Portal","lan.html",mLan,mDataExport) headerEntry[2]=new Array("Data backup","backup.html",mMeasurement,mSystemDate,mFirmware) } }