Vorlage:BV-BgPreisIndex
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 91: | Zeile 91: | ||
var aGroupBy = ''; | var aGroupBy = ''; | ||
for (o = 0; o < aOptions.length; o++) { | for (o = 0; o < aOptions.length; o++) { | ||
| - | if (aOptions[o].split(':')[0] == 'GroupBy') | + | if (aOptions[o].split(':')[0] == 'GroupBy') { |
aGroupBy = aOptions[o].split(':')[1].split('+'); | aGroupBy = aOptions[o].split(':')[1].split('+'); | ||
| + | } | ||
} | } | ||
sTabHTML = '<table id="BVBgPreise.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr+'.Tab" style="background:silver" cellpadding=1 cellspacing=1>'+ | sTabHTML = '<table id="BVBgPreise.'+Param.Gebiet+'.'+Param.Gebiet1+'.'+Param.KatNr+'.Tab" style="background:silver" cellpadding=1 cellspacing=1>'+ | ||
' <tr style="background:#E0E0E0" valign=top>'; | ' <tr style="background:#E0E0E0" valign=top>'; | ||
| - | for (g = 0; g < aGroupBy.length; g++) | + | for (g = 0; g < aGroupBy.length; g++) { |
| - | sTabHTML += ' <td><div style="'+sCellPadding+'"><b>'+ | + | var aGroupByParts = aGroupBy[g].split('.'); |
| + | var sGroupByText = aGroupByParts[0]; | ||
| + | if (aGroupByParts[0] == 'Eingang') sGroupByText = aGroupByParts[1]; | ||
| + | if (aGroupByParts[0] == 'Ausgang') sGroupByText = aGroupByParts[1]; | ||
| + | if (aGroupByParts[0] == 'BRS') sGroupByText = aGroupByParts[1]; | ||
| + | if (aGroupByParts[0] == 'PF') sGroupByText = aGroupByParts[1]; | ||
| + | if (aGroupByParts[0] == 'EM') sGroupByText = aGroupByParts[1]; | ||
| + | sTabHTML += ' <td><div style="'+sCellPadding+'"><b>'+sGroupByText+'</b></div></td>'; | ||
| + | } | ||
sTabHTML += ' <td><div style="'+sCellPadding+'"><b>Min</b></div></td>'+ | sTabHTML += ' <td><div style="'+sCellPadding+'"><b>Min</b></div></td>'+ | ||
' <td><div style="'+sCellPadding+'"><b>Avg.</b></div></td>'+ | ' <td><div style="'+sCellPadding+'"><b>Avg.</b></div></td>'+ | ||
Version vom 22:09, 24. Sep. 2023
Template BV_BgPreisIndex: Invalid value for parameter Cmd ("empty")!!!
