Vorlage:BD-Satz-Kopf
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 44: | Zeile 44: | ||
</noinclude><includeonly><nowiki | </noinclude><includeonly><nowiki | ||
/><html><script type="text/javascript"> | /><html><script type="text/javascript"> | ||
| + | Gebiet = '</html>{{{Gebiet}}}<html>'; | ||
| + | Gebiet1 = '</html>{{{Gebiet1|}}}<html>'; | ||
BogenListe = []; | BogenListe = []; | ||
bvSessionID = ''+Math.round(Math.random()*Math.pow(2,32)); | bvSessionID = ''+Math.round(Math.random()*Math.pow(2,32)); | ||
| + | bvStatus = 0; // 0 = BV deaktiviert; 1 = BV aktiv und angezeigt; 2 = BV aktiv aber ausgeblendet | ||
| + | for (var g = 0; g < wgUserGroups.length; g++) | ||
| + | if (wgUserGroups[g] == 'GBV') bvStatus = 1; | ||
| + | if (bvStatus > 0) { | ||
| + | if (localStorage.getItem('BVConfig_EinAus') == 'AUS') | ||
| + | bvStatus = 2; | ||
| + | } | ||
function ZeigeBogen(sBg) | function ZeigeBogen(sBg) | ||
{ | { | ||
| Zeile 108: | Zeile 117: | ||
sessionStorage.setItem('GM_'+sGMKatNr+'_'+bvSessionID,sGM); | sessionStorage.setItem('GM_'+sGMKatNr+'_'+bvSessionID,sGM); | ||
} | } | ||
| + | } | ||
| + | function bvEinAusOnClick() | ||
| + | { | ||
| + | BVStatus = (BVStatus==1 ? 2 : 1); | ||
| + | var sLastKatNr = ''; | ||
| + | for (var b = 0; b < BogenListe.length; b++) { | ||
| + | if (BogenListe[b].KatNr != sLastKatNr) { | ||
| + | var ebvbfAddGM = document.getElementById('bvbfAddGMx'); | ||
| + | if (ebvbfAddGM) | ||
| + | ebvbfAddGM.style.display = (BVStatus==1 ? '' : 'none'); | ||
| + | var ebvbfTR = document.getElementById('BV_TR_'+Gebiet+'_'+Gebiet1+'_'+BogenListe[b].KatNr); | ||
| + | if (ebvbfTR) | ||
| + | ebvbfTR.style.display = (BVStatus==1 ? '' : 'none'); | ||
| + | } | ||
| + | } | ||
| + | var ebvEinAus = document.getElementById('bvEinAus'); | ||
| + | if (ebvEinAus) | ||
| + | ebvEinAus.innerHTML = '<b>[BV '+(BVStatus==1 ? 'aus' : 'ein')+']</b>'; | ||
} | } | ||
</script></html> | </script></html> | ||
| Zeile 115: | Zeile 142: | ||
{|style="background:transparent" cellpadding="0" cellspacing="0" width="100%" | {|style="background:transparent" cellpadding="0" cellspacing="0" width="100%" | ||
|<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}} KatNr. {{{MiNr}}}: {{{Anlass}}}</b></big> | |<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}} KatNr. {{{MiNr}}}: {{{Anlass}}}</b></big> | ||
| - | |align="right"|<span style="cursor:pointer;"> | + | |align="right"|<span id="bvEinAus" style="cursor:pointer;" onclick="bvEinAusOnClick();"><b>[BV aus]</b></span> |
| - | |}</includeonly> | + | |} |
| + | <html><script type="text/javascript"> | ||
| + | if (BVStatus > 0) { | ||
| + | var ebvEinAus = document.getElementById('bvEinAus'); | ||
| + | if (ebvEinAus) { | ||
| + | ebvEinAus.style.display = 'inline'; | ||
| + | ebvEinAus.innerHTML = '<b>[BV '+(BVStatus==1 ? 'aus' : 'ein')+']</b>'; | ||
| + | } | ||
| + | } | ||
| + | </script></html></includeonly> | ||
Version vom 19:51, 25. Sep. 2017
Beschreibung
| ||||||||||||||||
Beispiele
| ||||||||||||||||
| Zurück zur Referenzliste der Vorlagen |
