Persönliche Werkzeuge

Vorlage:BV-BgPreisIndex

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 106: Zeile 106:
         var aGroupValues = BVBgPreise[p].GroupValue.split('::');
         var aGroupValues = BVBgPreise[p].GroupValue.split('::');
         sTabHTML += '  <tr style="background:#FCFCFC" valign=top>';
         sTabHTML += '  <tr style="background:#FCFCFC" valign=top>';
-
         for (v = 0; v < aGroupValues.length-1; v++)
+
         for (v = 0; v < aGroupValues.length-1; v++) {
-
           sTabHTML += '    <td><div style="'+sCellPadding+'">'+aGroupValues[v]+'</div></td>';
+
          var sGroupByValueText = aGroupValues[v];
 +
          if (aGroupByParts[v] == 'Erhaltung') {
 +
            switch (aGroupValues[v]) {
 +
              case 'Pf': sGroupByValueText = '<img src="/bogenwiki/images/Symbol_Pfr1T.png" width="27" height="14" alt="**" title="postfrisch">'; break;
 +
              case 'Gs': sGroupByValueText = '<img src="/bogenwiki/images/Symbol_GesT1.png" width="27" height="14" alt="**" title="postfrisch">'; break;
 +
              case 'Ug': sGroupByValueText = '<img src="/bogenwiki/images/Symbol_UgsT1.png" width="27" height="14" alt="**" title="postfrisch">'; break;
 +
              case 'Bt': sGroupByValueText = '<span title="Bogentasche">BT</span>'; break;
 +
            }
 +
          }
 +
           sTabHTML += '    <td><div style="'+sCellPadding+'">'+sGroupByValueText+'</div></td>';
 +
        }
         sTabHTML += '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Avg.toFixed(2).replace(/\./,',')+'€</div></td>'+
         sTabHTML += '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Avg.toFixed(2).replace(/\./,',')+'€</div></td>'+
                     '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Median.toFixed(2).replace(/\./,',')+'€</div></td>'+
                     '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Median.toFixed(2).replace(/\./,',')+'€</div></td>'+

Version vom 07:12, 21. Okt. 2023

Template BV_BgPreisIndex: Invalid value for parameter Cmd ("empty")!!!