add missing Option in rangliste_doppel_teilwertung

This commit is contained in:
Niels Nübel
2022-12-07 10:37:25 +01:00
parent 89ae0e3177
commit ac6a0085be
@@ -10901,8 +10901,23 @@ class HTML_sportsmanager_admin
<option value="1"><?php echo JText::_('COM_SPORTSMANAGER_FULL_RATING'); ?></option> <option value="1"><?php echo JText::_('COM_SPORTSMANAGER_FULL_RATING'); ?></option>
<option value="0"<?php if (!empty($row) && $i < $n && $rangliste_doppel_teilwertung == 0) echo " selected"; ?>><?php echo JText::_('COM_SPORTSMANAGER_NO_RATING'); ?></option> <option value="0"<?php if (!empty($row) && $i < $n && $rangliste_doppel_teilwertung == 0) echo " selected"; ?>><?php echo JText::_('COM_SPORTSMANAGER_NO_RATING'); ?></option>
<?php <?php
for ($j = -1.25; $j >= -10; $j -= 0.25) for ($j = -1.25; $j >= -10; $j -= 0.25)
echo "<option value=\"" . $j . "\" " . (!empty($row) && $i < $n && $rangliste_doppel_teilwertung == $j ? "selected" : "") . ">" . htmlentities_utf8("1/" . abs($j) . "-fach") . "</option>"; $wertungen[] = $j;
}
$wertungen[] = 0.7;
$wertungen[] = 1.3;
$wertungen[] = 1.7;
$wertungen[] = -0.7;
$wertungen[] = -1.3;
$wertungen[] = -1.7;
asort($wertungen);
foreach ($wertungen as $wertung) {
echo "<option value=\"" . $wertung . "\" " . (!empty($row) && $i < $n && $rangliste_doppel_teilwertung == $wertung ? "selected" : "") . ">" . htmlentities_utf8("1/" . abs($wertung) . "-fach") . "</option>";
}
?> ?>
</select> </select>
</td> </td>