Persönliche Werkzeuge

Vorlage:BV-BgPreisIndex

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
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('all','Bund','','178',BVBgList[b].BogenNr,OnBgLoad);
+
     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 eBgList178 = document.getElementById('BgList178');
+
     var eBgList = document.getElementById('BVBgList.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr);
-
     var sTabHTML = '<table id="BgList178Tab" style="background:silver" cellpadding=4 cellspacing=1>'+
+
     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 (eBgList178) eBgList178.innerHTML = sTabHTML;
+
     if (eBgList) eBgList.innerHTML = sTabHTML;
-
     var eBgPreise178 = document.getElementById('BgPreise178');
+
     var eBgPreise = document.getElementById('BVBgPreise.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr);
-
     sTabHTML = '<table id="BgPreise178Tab" style="background:silver" cellpadding=4 cellspacing=1>'+
+
     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>';
-
     eBgPreise178.innerHTML = sTabHTML;
+
     eBgPreise.innerHTML = sTabHTML;
   }
   }
}
}
Zeile 116: Zeile 116:
}
}
</script></html>
</script></html>
-
|Index=<html><script>BVGetBogenList('all','Bund','','178',OnBgListLoad);</script></html>
+
|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")!!!