Mannschaftsbilder in Teamsport zu klein gefixt (issue #108)

This commit is contained in:
Jürgen Meyer
2025-07-02 08:19:44 +02:00
parent 77e2c6e910
commit f3c2040632
@@ -1085,46 +1085,29 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
?> ?>
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> <table style='width: 100%; border-collapse: collapse;' class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php if ($zeitpunkt_anzeigen) { ?> <?php if ($zeitpunkt_anzeigen) { ?>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_SCHEDULE_DATE'); ?></strong> <th nowrap style='text-align: left; width:20%;'><strong><?php echo Text::_('COM_SPORTSMANAGER_SCHEDULE_DATE'); ?></strong>
</th><?php } ?> </th><?php } ?>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_HOME'); ?></strong></th> <th nowrap style='text-align: left; width:25%;'><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_HOME'); ?></strong></th>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_VISITOR'); ?></strong></th> <th nowrap style='text-align: left; width:25%;'><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_VISITOR'); ?></strong></th>
<?php
/*
if ($veranstaltung == NULL) {
?>
<th nowrap><strong>Wettbewerb</strong></th>
<?php
}
*/
?>
<?php <?php
if ($veranstaltung != null && $modus->punktetyp == 0) { if ($veranstaltung != null && $modus->punktetyp == 0) {
?> ?>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_GOALS'); ?></strong></th> <th nowrap style='text-align: center; width:12%;'><strong><?php echo Text::_('COM_SPORTSMANAGER_GOALS'); ?></strong></th>
<?php <?php
} }
?> ?>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_RESULT'); ?></strong></th> <th nowrap style='text-align: center; width:12%;'><strong><?php echo Text::_('COM_SPORTSMANAGER_RESULT'); ?></strong></th>
</tr> </tr>
<?php <?php
/*
if ($zeitfenster != 0) {
?> <tr><td nowrap height="4"></td></tr><tr class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" style="text-align: center"><th nowrap><font size=-2><i>+/- <?php echo $zeitfenster; ?> Tage</i></font></th></tr> <?php
}
*/
$k = 0; $k = 0;
$monat = "..."; $monat = "...";
$spieltag = 0; $spieltag = 0;
$spielort_name = ""; $spielort_name = "";
foreach ($rows as $row) { foreach ($rows as $row) {
$ergebnis_vorhanden = $row->heim_punkte != null || $row->gast_punkte != null; $ergebnis_vorhanden = $row->heim_punkte != null || $row->gast_punkte != null;
// if ($monat == NULL)
// $monat = substr($row->zeitpunkt, 0, 7);
if ($zeitfenster == 0 && $veranstaltung != null) { if ($zeitfenster == 0 && $veranstaltung != null) {
if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) { if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) {
if ($spieltag != $row->spieltag || $spielort_name != $row->spielort_name) { if ($spieltag != $row->spieltag || $spielort_name != $row->spielort_name) {
@@ -1132,17 +1115,17 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
$spielort_name = $row->spielort_name; $spielort_name = $row->spielort_name;
?> ?>
<tr> <tr>
<td nowrap height="4"></td> <td nowrap height="10"></td>
</tr> </tr>
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>" <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"
style="text-align: center"> style="text-align: center">
<th nowrap><span style="font-size: 70%; "><i> <th nowrap style='text-align: left; font-size: 70%; font-style: italic;'>
<?php <?php
echo htmlentities_utf8(Rundenbezeichnung($spieltag, $veranstaltung->unterteilung == 0)); echo htmlentities_utf8(Rundenbezeichnung($spieltag, $veranstaltung->unterteilung == 0));
if (!empty($spielort_name)) if (!empty($spielort_name))
echo "<br />" . htmlentities_utf8($spielort_name); echo "<br />" . htmlentities_utf8($spielort_name);
?> ?>
</i></span></th> </th>
</tr> </tr>
<?php <?php
} }
@@ -1179,8 +1162,7 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
echo "<a href=\"" . SportsManagerURL('&task=begegnung_verlegen_form&veranstaltungid=' . $row->veranstaltung_id . '&id=' . $row->begegnung_id . ($aus_uebersicht ? "&amp;aus_uebersicht=1" : "")) . "\">" . ($row->verlegung_eingetragen != null ? ("bisher " . FormatiertesDatum($row->zeitpunkt)) : FormatiertesDatum($row->zeitpunkt)) . "</small></a>"; echo "<a href=\"" . SportsManagerURL('&task=begegnung_verlegen_form&veranstaltungid=' . $row->veranstaltung_id . '&id=' . $row->begegnung_id . ($aus_uebersicht ? "&amp;aus_uebersicht=1" : "")) . "\">" . ($row->verlegung_eingetragen != null ? ("bisher " . FormatiertesDatum($row->zeitpunkt)) : FormatiertesDatum($row->zeitpunkt)) . "</small></a>";
else else
echo $row->verlegung_eingetragen != null ? ("bisher " . FormatiertesDatum($row->zeitpunkt)) : FormatiertesDatum($row->zeitpunkt); echo $row->verlegung_eingetragen != null ? ("bisher " . FormatiertesDatum($row->zeitpunkt)) : FormatiertesDatum($row->zeitpunkt);
?>
<?php
if ($veranstaltung == null) { if ($veranstaltung == null) {
?> ?>
<br/> <br/>
@@ -1234,13 +1216,6 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
?> ?>
</td> </td>
<?php <?php
/*
if ($veranstaltung == NULL) {
?>
<td nowrap><?php echo htmlentities_utf8($row->bezeichnung); ?></td>
<?php
}
*/
if ($veranstaltung != null && $modus->punktetyp == 0) { if ($veranstaltung != null && $modus->punktetyp == 0) {
?> ?>
<td nowrap style="text-align: center"> <td nowrap style="text-align: center">
@@ -1565,327 +1540,319 @@ global $params;
} }
} }
/** /**
* @param $veranstaltung * @param $veranstaltung
* @param $modus * @param $modus
* @param $teams * @param $teams
* @param $spieltag * @param $spieltag
* @param $spieltage * @param $spieltage
* @param $alleine_angezeigt * @param $alleine_angezeigt
* @param int $praesentation * @param int $praesentation
* @since 1.0.0 * @since 1.0.0
*/ */
static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spieltage, $alleine_angezeigt, int $praesentation = 0): void static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spieltage, $alleine_angezeigt, int $praesentation = 0): void
{ {
global $params; global $params;
if (count($teams) > 0) { if (count($teams) > 0) {
if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) { if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) {
?> ?>
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="matchDayForm" id="matchDayForm"> <form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm">
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> <table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr> <tr>
<td nowrap> <td nowrap>
<select <select
aria-label="<?php echo Text::_('COM_SPORTSMANAGER_ARIA_LABEL_MATCHDAY_SELECT'); ?>" aria-label="<?php echo Text::_('COM_SPORTSMANAGER_ARIA_LABEL_MATCHDAY_SELECT'); ?>"
class="uk-select uk-form-width-medium" name="spieltag" size="1" class="uk-select uk-form-width-medium" name="spieltag" size="1"
onChange="document.matchDayForm.submit();"> onChange="document.adminForm.submit();">
<?php <?php
foreach ($spieltage as $s) { foreach ($spieltage as $s) {
echo "<option value=\"" . $s->spieltag . "\"" . ($s->spieltag == $spieltag ? " selected" : "") . ">" . htmlentities_utf8(Rundenbezeichnung($s->spieltag, $veranstaltung->unterteilung == 0)) . "</option>"; echo "<option value=\"" . $s->spieltag . "\"" . ($s->spieltag == $spieltag ? " selected" : "") . ">" . htmlentities_utf8(Rundenbezeichnung($s->spieltag, $veranstaltung->unterteilung == 0)) . "</option>";
} }
?> ?>
</select> </select>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<input type="hidden" name="task" value="veranstaltung"/> <input type="hidden" name="task" value="veranstaltung"/>
<input type="hidden" name="veranstaltungid" <input type="hidden" name="veranstaltungid"
value="<?php echo $veranstaltung->veranstaltung_id; ?>"/> value="<?php echo $veranstaltung->veranstaltung_id; ?>"/>
</form> </form>
<?php <?php
} }
$bilder_anzeigen = false; $bilder_anzeigen = false;
foreach ($teams as $team) { foreach ($teams as $team) {
if (bildHTML("mannschaften", $team->team_id, 28, 28) != null) { if (bildHTML("mannschaften", $team->team_id, 28, 28) != null) {
$bilder_anzeigen = true; $bilder_anzeigen = true;
break; break;
} else if (bildHTML("vereine", $team->verein_id, 28, 28) != null) { } else if (bildHTML("vereine", $team->verein_id, 28, 28) != null) {
$bilder_anzeigen = true; $bilder_anzeigen = true;
break; break;
} }
} }
$zusatzpunkte_anzeigen = false; $zusatzpunkte_anzeigen = false;
if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) { if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) {
foreach ($teams as $team) { foreach ($teams as $team) {
if ($team->zusatzpunkte != 0) { if ($team->zusatzpunkte != 0) {
$zusatzpunkte_anzeigen = true; $zusatzpunkte_anzeigen = true;
break; break;
} }
} }
} }
?> ?>
<!-- Gruppentabelle mit Ergebnissen --> <!-- Gruppentabelle mit Ergebnissen -->
<!-- dtfl-table-small css from yootheme--> <!-- dtfl-table-small css from yootheme-->
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table <table style='width: 100%; border-collapse: collapse;'
class="uk-table uk-table-hover uk-table-divider uk-table-middle dtfl-table-medium contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> class="uk-table-hover uk-table-divider uk-table-middle dtfl-table-medium contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th> <th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left"> <th style="text-align: left; width: 280px;">
<strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th>
<?php <th style="text-align: center; width: 70px;">
if ($praesentation == 0) { <strong></strong></th>
?> <?php
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_MATCHES'); ?>"> if ($praesentation == 0) {
<strong><?php echo Text::_('COM_SPORTSMANAGER_MATCHES_SHORTCUT'); ?></strong> ?>
</th> <th style="text-align: center; width: 30px;" nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_MATCHES'); ?>">
<?php <strong><?php echo Text::_('COM_SPORTSMANAGER_MATCHES_SHORTCUT'); ?></strong>
} </th>
?> <?php
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_VICTORIES'); ?>"> }
<strong><?php echo Text::_('COM_SPORTSMANAGER_VICTORIES_SHORTCUT'); ?></strong></th> ?>
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_DRAWS'); ?>"> <th style="text-align: center; width: 30px;" nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_VICTORIES'); ?>">
<strong><?php echo Text::_('COM_SPORTSMANAGER_DRAWS_SHORTCUT'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_VICTORIES_SHORTCUT'); ?></strong></th>
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_DEFEATS'); ?>"> <th style="text-align: center; width: 30px;" nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_DRAWS'); ?>">
<strong><?php echo Text::_('COM_SPORTSMANAGER_DEFEATS_SHORTCUT'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_DRAWS_SHORTCUT'); ?></strong></th>
<?php <th style="text-align: center; width: 30px;" nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_DEFEATS'); ?>">
if ($zusatzpunkte_anzeigen) { <strong><?php echo Text::_('COM_SPORTSMANAGER_DEFEATS_SHORTCUT'); ?></strong></th>
?> <?php
<th nowrap title="Strafpunkte"> if ($zusatzpunkte_anzeigen) {
<strong><?php echo Text::_('COM_SPORTSMANAGER_PENALTY'); ?></strong></th> ?>
<?php <th nowrap title="Strafpunkte">
} <strong><?php echo Text::_('COM_SPORTSMANAGER_PENALTY'); ?></strong></th>
if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29) { <?php
if ($alleine_angezeigt && $praesentation == 0) { }
?> if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29) {
<th nowrap> if ($alleine_angezeigt && $praesentation == 0) {
<strong><?php echo $modus->punktetyp == 0 ? Text::_('COM_SPORTSMANAGER_GOALS') : Text::_('COM_SPORTSMANAGER_SETS'); ?></strong><br/> ?>
<small><?php echo Text::_('COM_SPORTSMANAGER_STAT_TOTAL'); ?></small> <th nowrap>
</th> <strong><?php echo $modus->punktetyp == 0 ? Text::_('COM_SPORTSMANAGER_GOALS') : Text::_('COM_SPORTSMANAGER_SETS'); ?></strong><br/>
<?php <small><?php echo Text::_('COM_SPORTSMANAGER_STAT_TOTAL'); ?></small>
} </th>
?> <?php
<th nowrap }
title="<?php echo $veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27 ? Text::_('COM_SPORTSMANAGER_DIFFERENCE') : Text::_('COM_SPORTSMANAGER_RATIO'); ?>"> ?>
<strong><?php echo $modus->punktetyp == 0 ? Text::_('COM_SPORTSMANAGER_GOALS') : Text::_('COM_SPORTSMANAGER_SETS'); ?></strong> <th nowrap
</th> title="<?php echo $veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27 ? Text::_('COM_SPORTSMANAGER_DIFFERENCE') : Text::_('COM_SPORTSMANAGER_RATIO'); ?>">
<?php <strong><?php echo $modus->punktetyp == 0 ? Text::_('COM_SPORTSMANAGER_GOALS') : Text::_('COM_SPORTSMANAGER_SETS'); ?></strong>
} </th>
if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) { <?php
if ($alleine_angezeigt && $praesentation == 0 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) { }
?> if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) {
<th nowrap> if ($alleine_angezeigt && $praesentation == 0 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) {
<strong><?php echo Text::_('COM_SPORTSMANAGER_GAME_POINTS'); ?></strong><br/> ?>
<small><?php echo Text::_('COM_SPORTSMANAGER_STAT_TOTAL'); ?></small> <th nowrap>
</th> <strong><?php echo Text::_('COM_SPORTSMANAGER_GAME_POINTS'); ?></strong><br/>
<?php <small><?php echo Text::_('COM_SPORTSMANAGER_STAT_TOTAL'); ?></small>
} </th>
?> <?php
<th nowrap }
title="<?php echo $veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27 ? Text::_('COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS') : Text::_('COM_SPORTSMANAGER_POINTS_RATIO'); ?>"> ?>
<strong><?php echo Text::_('COM_SPORTSMANAGER_GAMES'); ?></strong></th> <th nowrap
<?php title="<?php echo $veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27 ? Text::_('COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS') : Text::_('COM_SPORTSMANAGER_POINTS_RATIO'); ?>">
} <strong><?php echo Text::_('COM_SPORTSMANAGER_GAMES'); ?></strong></th>
if ($veranstaltung->tabellenwertung >= 21) { <?php
?> }
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ2'); ?>"> if ($veranstaltung->tabellenwertung >= 21) {
<strong><?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ2_SHORTCUT'); ?></strong> ?>
</th> <th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ2'); ?>">
<th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ1'); ?>"> <strong><?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ2_SHORTCUT'); ?></strong>
<strong><?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ1_SHORTCUT'); ?></strong> </th>
</th> <th nowrap title="<?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ1'); ?>">
<?php <strong><?php echo Text::_('COM_SPORTSMANAGER_BUCHHOLZ1_SHORTCUT'); ?></strong>
} </th>
if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) { <?php
?> }
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_POINTS'); ?></strong></th> if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) {
<?php ?>
} <th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_POINTS'); ?></strong></th>
?> <?php
</tr> }
<?php ?>
</tr>
<?php
$platz = 1; $platz = 1;
$tatsaechlicher_platz = 1; $tatsaechlicher_platz = 1;
$gesamtpunkte = 0; $gesamtpunkte = 0;
$spielpunkte_differenz = 0; $spielpunkte_differenz = 0;
$spielpunkte_quotient = 0; $spielpunkte_quotient = 0;
$punkte_differenz = 0; $punkte_differenz = 0;
$punkte_quotient = 0; $punkte_quotient = 0;
$buchholz1_wert = 0; $buchholz1_wert = 0;
$buchholz2_wert = 0; $buchholz2_wert = 0;
$k = 0; $k = 0;
foreach ($teams as $team) { foreach ($teams as $team) {
?> ?>
<tr class="sectiontableentry<?php echo $k + 1; <tr class="sectiontableentry<?php echo $k + 1;
$k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>"> $k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
<td nowrap style="text-align: center"> <td nowrap style="text-align: center">
<?php <?php
if ($platz == 1 || (($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) && $gesamtpunkte != $team->gesamtpunkte) if ($platz == 1 || (($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) && $gesamtpunkte != $team->gesamtpunkte)
|| (($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10) && ($spielpunkte_differenz != $team->spielpunkte_differenz || $punkte_differenz != $team->punkte_differenz)) || (($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10) && ($spielpunkte_differenz != $team->spielpunkte_differenz || $punkte_differenz != $team->punkte_differenz))
|| (($veranstaltung->tabellenwertung == 2 || $veranstaltung->tabellenwertung == 5 || $veranstaltung->tabellenwertung == 8 || $veranstaltung->tabellenwertung == 11) && ($spielpunkte_quotient != $team->spielpunkte_quotient || $punkte_quotient != $team->punkte_quotient)) || (($veranstaltung->tabellenwertung == 2 || $veranstaltung->tabellenwertung == 5 || $veranstaltung->tabellenwertung == 8 || $veranstaltung->tabellenwertung == 11) && ($spielpunkte_quotient != $team->spielpunkte_quotient || $punkte_quotient != $team->punkte_quotient))
|| (($veranstaltung->tabellenwertung >= 21) && ($team->buchholz1 != $buchholz1_wert || $team->buchholz2 != $buchholz2_wert))) || (($veranstaltung->tabellenwertung >= 21) && ($team->buchholz1 != $buchholz1_wert || $team->buchholz2 != $buchholz2_wert)))
$tatsaechlicher_platz = $platz; $tatsaechlicher_platz = $platz;
echo $tatsaechlicher_platz; echo $tatsaechlicher_platz;
?> ?>
</td> </td>
<?php <?php
$gesamtpunkte = floatval($team->gesamtpunkte); $gesamtpunkte = floatval($team->gesamtpunkte);
$zusatzpunkte = floatval($team->zusatzpunkte); $zusatzpunkte = floatval($team->zusatzpunkte);
$punkte_quotient = $team->punkte_quotient; $punkte_quotient = $team->punkte_quotient;
$punkte_differenz = $team->punkte_differenz; $punkte_differenz = $team->punkte_differenz;
$punkte_gewonnen = $team->punkte_gewonnen; $punkte_gewonnen = $team->punkte_gewonnen;
$punkte_verloren = $team->punkte_verloren; $punkte_verloren = $team->punkte_verloren;
$spielpunkte_quotient = $team->spielpunkte_quotient; $spielpunkte_quotient = $team->spielpunkte_quotient;
$spielpunkte_differenz = $team->spielpunkte_differenz; $spielpunkte_differenz = $team->spielpunkte_differenz;
$spielpunkte_gewonnen = $team->spielpunkte_gewonnen; $spielpunkte_gewonnen = $team->spielpunkte_gewonnen;
$spielpunkte_verloren = $team->spielpunkte_verloren; $spielpunkte_verloren = $team->spielpunkte_verloren;
if ($veranstaltung->tabellenwertung >= 21) { if ($veranstaltung->tabellenwertung >= 21) {
$buchholz1_wert = $team->buchholz1; $buchholz1_wert = $team->buchholz1;
$buchholz2_wert = $team->buchholz2; $buchholz2_wert = $team->buchholz2;
} }
?> ?>
<td nowrap> <td>
<?php
<table style="width: 100%; border: none; border-spacing: 0; padding: 0"> echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>";
<tr> ?>
<td> </td>
<?php <?php
echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>"; if ($bilder_anzeigen) {
?> ?>
</td> <td style="text-align: center;">
<?php <?php
if ($bilder_anzeigen) { $bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
?> if ($bild != null) {
<td style="width: 50px" height="50" style="text-align: right"> echo $bild;
<?php } else if ($team->verein_id != null) {
$bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"'); $bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"');
if ($bild != null) { if ($bild != null)
echo $bild; echo $bild;
} else if ($team->verein_id != null) { }
$bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"'); ?>
if ($bild != null) </td>
echo $bild; <?php
} }
?> if ($praesentation == 0) {
</td> ?>
<?php <td nowrap
} style="text-align: center"><?php echo $team->siege + $team->unentschieden + $team->niederlagen; ?></td>
?> <?php
</tr> }
</table> ?>
<td nowrap style="text-align: center"><?php echo $team->siege; ?></td>
</td> <td nowrap style="text-align: center"><?php echo $team->unentschieden; ?></td>
<?php <td nowrap style="text-align: center"><?php echo $team->niederlagen; ?></td>
if ($praesentation == 0) { <?php
?> if ($zusatzpunkte_anzeigen) {
<td nowrap ?>
style="text-align: center"><?php echo $team->siege + $team->unentschieden + $team->niederlagen; ?></td> <td nowrap
<?php style="text-align: center"><?php if ($zusatzpunkte != 0) echo $zusatzpunkte; ?></td>
} <?php
?> }
<td nowrap style="text-align: center"><?php echo $team->siege; ?></td> if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29) {
<td nowrap style="text-align: center"><?php echo $team->unentschieden; ?></td> $title = "";
<td nowrap style="text-align: center"><?php echo $team->niederlagen; ?></td> if ($alleine_angezeigt && $praesentation == 0) {
<?php ?>
if ($zusatzpunkte_anzeigen) { <td nowrap style="text-align: center">
?> <small><?php echo $punkte_gewonnen . ":" . $punkte_verloren; ?></small>
<td nowrap </td>
style="text-align: center"><?php if ($zusatzpunkte != 0) echo $zusatzpunkte; ?></td> <?php
<?php } else
} $title = $punkte_gewonnen . " : " . $punkte_verloren;
if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29) { ?>
$title = ""; <td nowrap
if ($alleine_angezeigt && $praesentation == 0) { style="text-align: center"<?php if (!empty($title)) echo " title=\"" . $title . "\""; ?>>
?> <?php
<td nowrap style="text-align: center"> if ($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27)
<small><?php echo $punkte_gewonnen . ":" . $punkte_verloren; ?></small> echo ($punkte_differenz >= 0 ? "+" : "") . $punkte_differenz;
</td> else
<?php echo $punkte_quotient == -1 ? "&#8734;" : sprintf("%.2f", $punkte_quotient);
} else ?>
$title = $punkte_gewonnen . " : " . $punkte_verloren; </td>
?> <?php
<td nowrap }
style="text-align: center"<?php if (!empty($title)) echo " title=\"" . $title . "\""; ?>> if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) {
<?php $title = "";
if ($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27) if ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2) {
echo ($punkte_differenz >= 0 ? "+" : "") . $punkte_differenz; if ($alleine_angezeigt && $praesentation == 0) {
else ?>
echo $punkte_quotient == -1 ? "&#8734;" : sprintf("%.2f", $punkte_quotient); <td nowrap style="text-align: center">
?> <small><?php echo $spielpunkte_gewonnen . ":" . $spielpunkte_verloren; ?></small>
</td> </td>
<?php <?php
} } else
if ($veranstaltung->tabellenwertung != 3 && $veranstaltung->tabellenwertung != 6 && $veranstaltung->tabellenwertung != 9 && $veranstaltung->tabellenwertung != 23 && $veranstaltung->tabellenwertung != 26 && $veranstaltung->tabellenwertung != 29 && ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2)) { $title = $spielpunkte_gewonnen . " : " . $spielpunkte_verloren;
$title = ""; }
if ($modus->spielpunkte_wertung_einzel != 2 || $modus->spielpunkte_wertung_doppel != 2) { ?>
if ($alleine_angezeigt && $praesentation == 0) { <td nowrap
?> style="text-align: center"<?php if (!empty($title)) echo " title=\"" . $title . "\""; ?>>
<td nowrap style="text-align: center"> <?php
<small><?php echo $spielpunkte_gewonnen . ":" . $spielpunkte_verloren; ?></small> if ($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27)
</td> echo ($spielpunkte_differenz >= 0 ? "+" : "") . $spielpunkte_differenz;
<?php else
} else echo $spielpunkte_quotient == -1 ? "&#8734;" : sprintf("%.2f", $spielpunkte_quotient);
$title = $spielpunkte_gewonnen . " : " . $spielpunkte_verloren; ?>
} </td>
?> <?php
<td nowrap }
style="text-align: center"<?php if (!empty($title)) echo " title=\"" . $title . "\""; ?>> if ($veranstaltung->tabellenwertung >= 21) {
<?php ?>
if ($veranstaltung->tabellenwertung == 1 || $veranstaltung->tabellenwertung == 4 || $veranstaltung->tabellenwertung == 7 || $veranstaltung->tabellenwertung == 10 || $veranstaltung->tabellenwertung == 21 || $veranstaltung->tabellenwertung == 24 || $veranstaltung->tabellenwertung == 27) <td nowrap style="text-align: center"><?php echo $team->buchholz2; ?></td>
echo ($spielpunkte_differenz >= 0 ? "+" : "") . $spielpunkte_differenz; <td nowrap style="text-align: center"><?php echo $team->buchholz1; ?></td>
else <?php
echo $spielpunkte_quotient == -1 ? "&#8734;" : sprintf("%.2f", $spielpunkte_quotient); }
?> if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) {
</td> ?>
<?php <td nowrap style="text-align: center"><?php echo $gesamtpunkte; ?></td>
} <?php
if ($veranstaltung->tabellenwertung >= 21) { }
?> ?>
<td nowrap style="text-align: center"><?php echo $team->buchholz2; ?></td> </tr>
<td nowrap style="text-align: center"><?php echo $team->buchholz1; ?></td> <?php
<?php $platz++;
} }
if ($veranstaltung->tabellenwertung <= 9 || $veranstaltung->tabellenwertung >= 21) { ?>
?> </table>
<td nowrap style="text-align: center"><?php echo $gesamtpunkte; ?></td> </div>
<?php <?php
} }
?> if (!$alleine_angezeigt && $praesentation == 0) {
</tr> ?>
<?php <div class="uk-overflow-auto">
$platz++; <table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
} <tr>
?> <td style="text-align: left" colspan="2">
</table> <a href="<?php echo SportsManagerURL('&task=veranstaltung&veranstaltungid=' . $veranstaltung->veranstaltung_id); ?>"
</div> class="readon<?php echo $params->get('pageclass_sfx'); ?>">
<?php <?php echo Text::_('COM_SPORTSMANAGER_MATCHES'); ?> &hellip;</a>
} </td>
if (!$alleine_angezeigt && $praesentation == 0) { </tr>
?> </table>
<div class="uk-overflow-auto"> </div>
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> <?php
<tr> }
<td style="text-align: left" colspan="2"> ?>
<a href="<?php echo SportsManagerURL('&task=veranstaltung&veranstaltungid=' . $veranstaltung->veranstaltung_id); ?>" <span class="article_seperator<?php echo $params->get('pageclass_sfx'); ?>">&nbsp;</span>
class="readon<?php echo $params->get('pageclass_sfx'); ?>"> <?php
<?php echo Text::_('COM_SPORTSMANAGER_MATCHES'); ?> &hellip;</a> }
</td>
</tr>
</table>
</div>
<?php
}
?>
<span class="article_seperator<?php echo $params->get('pageclass_sfx'); ?>">&nbsp;</span>
<?php
}
static function tabelleEigeneAnzeigen($veranstaltung, $teams, $alleine_angezeigt, $praesentation = 0): void static function tabelleEigeneAnzeigen($veranstaltung, $teams, $alleine_angezeigt, $praesentation = 0): void
{ {