Vorlage:BV-Admin
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 8 dazwischenliegende Versionen mit ein.) | |||
Zeile 18: | Zeile 18: | ||
</noinclude><includeonly><nowiki | </noinclude><includeonly><nowiki | ||
/><html><script type="text/javascript"> | /><html><script type="text/javascript"> | ||
+ | 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 bvCfgEinAusInit() | function bvCfgEinAusInit() | ||
{ | { | ||
Zeile 24: | Zeile 31: | ||
if (bvStatus > 0) { | if (bvStatus > 0) { | ||
ebvcfgBVEinAus.disabled = false; | ebvcfgBVEinAus.disabled = false; | ||
- | ebvcfgBVEinAus.checked = (localStorage.getItem('BVConfig_EinAus')==' | + | ebvcfgBVEinAus.checked = (localStorage.getItem('BVConfig_EinAus')=='AUS' ? false : true); |
} else { | } else { | ||
ebvcfgBVEinAus.disabled = true; | ebvcfgBVEinAus.disabled = true; | ||
Zeile 31: | Zeile 38: | ||
} | } | ||
} | } | ||
- | function | + | function bvConfigOnClick(eConfig) |
{ | { | ||
- | + | alert('bvCfgEinAusOnClick('+eConfig.id+')'); | |
- | + | switch (eConfig.id) { | |
- | localStorage.setItem('BVConfig_EinAus',( | + | case 'bvcfgBVEinAus': |
- | alert(' | + | localStorage.setItem('BVConfig_EinAus',(eConfig.checked ? 'EIN' : 'AUS')); |
+ | alert('bvcfgBVEinAus.checked='+eConfig.checked); | ||
+ | break; | ||
} | } | ||
} | } | ||
- | |||
</script></html> | </script></html> | ||
{|style="background:#C0C0C0" cellpadding="6" cellspacing="1" width="100%" | {|style="background:#C0C0C0" cellpadding="6" cellspacing="1" width="100%" | ||
Zeile 45: | Zeile 53: | ||
|<big><b>Bestandsverwaltung - Konfiguration</b></big> | |<big><b>Bestandsverwaltung - Konfiguration</b></big> | ||
|-valign="top" style="background:#FCFCFC" | |-valign="top" style="background:#FCFCFC" | ||
- | |<html><label><input type="checkbox" name="BVEinAus" id="bvcfgBVEinAus" | + | |<html><label><input type="checkbox" name="BVEinAus" id="bvcfgBVEinAus" onchange="bvConfigOnClick(this);">Bestandsverwaltung auf allen Seiten anzeigen</label></html> |
+ | Spalten in der Bogenseite: | ||
+ | {|style="background:transparent" cellpadding="0" cellspacing="0" | ||
+ | |<html> | ||
+ | <select name="top5" size="10"> | ||
+ | <option>WikiUser</option> | ||
+ | <option>Gebiet</option> | ||
+ | <option>Gebiet1</option> | ||
+ | <option>KatNr</option> | ||
+ | <option>BogenNr</option> | ||
+ | <option>Erhaltung</option> | ||
+ | <option>Zustand</option> | ||
+ | <option>Status</option> | ||
+ | <option>BogenWiki</option> | ||
+ | <option>Scan</option> | ||
+ | <option>Album</option> | ||
+ | <option>Zugang</option> | ||
+ | <option>Abgang</option> | ||
+ | <option>BRS</option> | ||
+ | <option>Merkmale</option> | ||
+ | <option>Abweichungen</option> | ||
+ | </select> | ||
+ | </html> | ||
+ | | | ||
+ | |<html> | ||
+ | <select name="top5" size="10"> | ||
+ | <option>WikiUser</option> | ||
+ | </select> | ||
+ | </html> | ||
|} | |} | ||
- | </includeonly> | + | |} |
+ | <html><script type="text/javascript"> | ||
+ | bvCfgEinAusInit(); | ||
+ | </script></html></includeonly> |
Aktuelle Version vom 09:06, 12. Nov. 2018
Beschreibung
| |||||||
Beispiele
| |||||||
Zurück zur Referenzliste der Vorlagen |