Anzeige naegative Satzpunkte in Ligatabelle

This commit is contained in:
Jürgen Meyer
2026-04-09 11:11:37 +02:00
parent ee4e817ad4
commit a44564a40e
3 changed files with 21 additions and 7 deletions
@@ -1844,6 +1844,7 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
$punkte_quotient = 0;
$buchholz1_wert = 0;
$buchholz2_wert = 0;
$$gesamtpunkte_verloren = 0;
$k = 0;
foreach ($teams as $team) {
?>
@@ -1874,6 +1875,12 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
$buchholz1_wert = $team->buchholz1;
$buchholz2_wert = $team->buchholz2;
}
if (in_array($veranstaltung->tabellenwertung, [7,8,9])){
$gesamtpunkte_verloren = $team->niederlagen;
}
if (in_array($veranstaltung->tabellenwertung, [1,2,3])){
$gesamtpunkte_verloren = $team->niederlagen * 2 + $team->unentschieden;
}
?>
<td>
<?php
@@ -1968,8 +1975,15 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
}
if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) {
?>
<td nowrap style="text-align: center"><?php echo $gesamtpunkte; ?></td>
<td nowrap style="text-align: center">
<?php
if (in_array($veranstaltung->tabellenwertung, [7,8,9,1,2,3]))
echo $gesamtpunkte . ":" . $gesamtpunkte_verloren;
else
echo $gesamtpunkte;
?>
</td>
<?PHP
}
?>
</tr>
@@ -170,9 +170,9 @@ COM_SPORTSMANAGER_GAME_POINTS="Spielpunkte"
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="SP"
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (eine Mannschaft)"
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (Mannschaften zusammen)"
COM_SPORTSMANAGER_DIFFERENCE="Differenz"
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Punktedifferenz"
COM_SPORTSMANAGER_POINTS_RATIO="Punkteverh&auml;ltnis"
COM_SPORTSMANAGER_DIFFERENCE="Differenz Tore"
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Differenz Spielpunkte"
COM_SPORTSMANAGER_POINTS_RATIO="Verh&auml;ltnis Spielpunkte"
COM_SPORTSMANAGER_SCHEDULE_DATE="Zeitpunkt"
COM_SPORTSMANAGER_TEAM_HOME="Heim"
COM_SPORTSMANAGER_TEAM_VISITOR="Gast"
@@ -170,9 +170,9 @@ COM_SPORTSMANAGER_GAME_POINTS="Game points"
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="GP"
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (one team)"
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (teams together)"
COM_SPORTSMANAGER_DIFFERENCE="Difference"
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Difference in points"
COM_SPORTSMANAGER_POINTS_RATIO="Points ratio"
COM_SPORTSMANAGER_DIFFERENCE="Goal difference"
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Difference in game points"
COM_SPORTSMANAGER_POINTS_RATIO="Game points ratio"
COM_SPORTSMANAGER_SCHEDULE_DATE="Appointment date"
COM_SPORTSMANAGER_TEAM_HOME="Home"
COM_SPORTSMANAGER_TEAM_VISITOR="Visitor"