Vorlage:BV-BgPreisIndex
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
Zeile 5: | Zeile 5: | ||
BVBgPreise = []; | BVBgPreise = []; | ||
BVBgLoadCount = 0; | BVBgLoadCount = 0; | ||
- | function OnBgListLoad(BgList) | + | function OnBgListLoad(BgList,Param) |
{ | { | ||
console.log('[OnBgListLoad]'); | console.log('[OnBgListLoad]'); | ||
BVBgList = BgList; | BVBgList = BgList; | ||
for (var b = 0; b < BVBgList.length; b++) | for (var b = 0; b < BVBgList.length; b++) | ||
- | BVGetBogen( | + | BVGetBogen(Param.WikiUser,Param.Gebiet,Param.Gebiet1,Param.KatNr,BVBgList[b].BogenNr,OnBgLoad); |
} | } | ||
- | function OnBgLoad(Bogen) | + | function OnBgLoad(Bogen,Param) |
{ | { | ||
console.log('[OnBgLoad] Bogen.BogenNr='+Bogen.BogenNr); | console.log('[OnBgLoad] Bogen.BogenNr='+Bogen.BogenNr); | ||
Zeile 23: | Zeile 23: | ||
} | } | ||
if (BVBgLoadCount == BVBgList.length) { | if (BVBgLoadCount == BVBgList.length) { | ||
- | var | + | var eBgList = document.getElementById('BVBgList.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr); |
- | var sTabHTML = '<table id=" | + | var sTabHTML = '<table id="BVBgList.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr+'.Tab" style="background:silver" cellpadding=4 cellspacing=1>'+ |
' <tr style="background:#E0E0E0" valign=top>'+ | ' <tr style="background:#E0E0E0" valign=top>'+ | ||
' <td rowspan=2><b>BogenNr.</b><br>'+BVBgList.length+'</td>'+ | ' <td rowspan=2><b>BogenNr.</b><br>'+BVBgList.length+'</td>'+ | ||
Zeile 81: | Zeile 81: | ||
} | } | ||
sTabHTML += '</table>'; | sTabHTML += '</table>'; | ||
- | if ( | + | if (eBgList) eBgList.innerHTML = sTabHTML; |
- | var | + | var eBgPreise = document.getElementById('BVBgPreise.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr); |
- | sTabHTML = '<table id=" | + | sTabHTML = '<table id="'BVBgPreise.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr+'.Tab" style="background:silver" cellpadding=4 cellspacing=1>'+ |
' <tr style="background:#E0E0E0" valign=top>'+ | ' <tr style="background:#E0E0E0" valign=top>'+ | ||
' <td><b>DKZ</b></td>'+ | ' <td><b>DKZ</b></td>'+ | ||
Zeile 103: | Zeile 103: | ||
' </tr>'; | ' </tr>'; | ||
sTabHTML += '</table>'; | sTabHTML += '</table>'; | ||
- | + | eBgPreise.innerHTML = sTabHTML; | |
} | } | ||
} | } | ||
Zeile 116: | Zeile 116: | ||
} | } | ||
</script></html> | </script></html> | ||
- | |Index=<html><script>BVGetBogenList('all',' | + | |Index=<html><script>BVGetBogenList('all','</html>{{{Gebiet}}}<html>','</html>{{{Gebiet1}}}<html>','</html>{{{KatNr}}}<html>',OnBgListLoad);</script></html> |
|#default=<span style="color:red"><b>Template BV_BgPreisIndex: Invalid value for parameter Cmd ("{{{Cmd|''empty''}}}")!!!</b></span> | |#default=<span style="color:red"><b>Template BV_BgPreisIndex: Invalid value for parameter Cmd ("{{{Cmd|''empty''}}}")!!!</b></span> | ||
}} | }} |
Version vom 10:39, 24. Sep. 2023
Template BV_BgPreisIndex: Invalid value for parameter Cmd ("empty")!!!