Hall of Fame: Jahres-/Id-Filter korrigiert, inaktive Vereine bei Namens-Links berücksichtigt

- halloffame_id: Bereichssuche (z.B. "1-5") ist nicht mehr möglich, nur noch einzelne Werte.
- jahr: Bereichs- und Einzelwerte werden auf 1900..aktuelles Jahr+5 begrenzt; liegt bei einem Bereich der 2. Wert unter dem 1., werden die Werte vertauscht statt den Bereich zu verwerfen.
- halloffameNameLink verlinkt bei Vereinen jetzt nur noch, wenn der Verein nicht ausgetreten ist (analog zur bestehenden Spieler-Aktiv-Prüfung).
This commit is contained in:
Jürgen Meyer
2026-09-04 08:35:27 +02:00
parent 12da0a9c00
commit df794966df
3 changed files with 103 additions and 42 deletions
@@ -4539,6 +4539,7 @@ function halloffameNachJahrGruppiert(): void
$rows = loadObjectList($db, $query); $rows = loadObjectList($db, $query);
$alleTeams = halloffameAlleTeams($db); $alleTeams = halloffameAlleTeams($db);
$alleSpielerInfo = halloffameAlleSpielerInfo($db); $alleSpielerInfo = halloffameAlleSpielerInfo($db);
$alleVereineInfo = halloffameAlleVereineInfo($db);
$disziplinen = []; $disziplinen = [];
$jahresDaten = []; $jahresDaten = [];
@@ -4622,7 +4623,7 @@ function halloffameNachJahrGruppiert(): void
if (isJson()) { if (isJson()) {
echo json_encode(['disziplinen' => $disziplinen, 'jahre' => $jahresDaten]); echo json_encode(['disziplinen' => $disziplinen, 'jahre' => $jahresDaten]);
} else { } else {
HTML_sportsmanager::halloffameNachJahrGruppiert(halloffameTitel(), $params->get('beschreibung'), $disziplinen, $jahresDaten, $platzierung, $alleSpielerInfo); HTML_sportsmanager::halloffameNachJahrGruppiert(halloffameTitel(), $params->get('beschreibung'), $disziplinen, $jahresDaten, $platzierung, $alleSpielerInfo, $alleVereineInfo);
} }
} }
@@ -4660,6 +4661,7 @@ function halloffameNachSummeGruppiert(): void
$rows = loadObjectList($db, $query); $rows = loadObjectList($db, $query);
$alleTeams = halloffameAlleTeams($db); $alleTeams = halloffameAlleTeams($db);
$alleSpielerInfo = halloffameAlleSpielerInfo($db); $alleSpielerInfo = halloffameAlleSpielerInfo($db);
$alleVereineInfo = halloffameAlleVereineInfo($db);
$traeger = []; $traeger = [];
@@ -4683,7 +4685,7 @@ function halloffameNachSummeGruppiert(): void
'name' => $name, 'name' => $name,
'bild_type' => $bild_type, 'bild_type' => $bild_type,
'bild_id' => $bild_id, 'bild_id' => $bild_id,
'aktiv' => true, 'aktiv' => $bild_type === 'vereine' ? halloffameVereinAktiv($alleVereineInfo, $bild_id) : true,
'geschlecht' => null, 'geschlecht' => null,
'titel' => [], 'titel' => [],
]; ];
@@ -4766,6 +4768,7 @@ function halloffameNachSummeDisziplinGruppiert(): void
$rows = loadObjectList($db, $query); $rows = loadObjectList($db, $query);
$alleTeams = halloffameAlleTeams($db); $alleTeams = halloffameAlleTeams($db);
$alleSpielerInfo = halloffameAlleSpielerInfo($db); $alleSpielerInfo = halloffameAlleSpielerInfo($db);
$alleVereineInfo = halloffameAlleVereineInfo($db);
$disziplinen = []; $disziplinen = [];
@@ -4799,7 +4802,7 @@ function halloffameNachSummeDisziplinGruppiert(): void
'name' => $name, 'name' => $name,
'bild_type' => $bild_type, 'bild_type' => $bild_type,
'bild_id' => $bild_id, 'bild_id' => $bild_id,
'aktiv' => true, 'aktiv' => $bild_type === 'vereine' ? halloffameVereinAktiv($alleVereineInfo, $bild_id) : true,
'geschlecht' => null, 'geschlecht' => null,
'jahre' => [], 'jahre' => [],
]; ];
@@ -4907,6 +4910,7 @@ function halloffameDetails($uebergabe_id = 0): void
. "\n ORDER BY t2.jahr $jahrSortierung, platz ASC;"; . "\n ORDER BY t2.jahr $jahrSortierung, platz ASC;";
$rows = loadObjectList($db, $query); $rows = loadObjectList($db, $query);
$alleSpielerInfo = halloffameAlleSpielerInfo($db); $alleSpielerInfo = halloffameAlleSpielerInfo($db);
$alleVereineInfo = halloffameAlleVereineInfo($db);
if (count($rows) > 0){ if (count($rows) > 0){
$mitglieder = []; $mitglieder = [];
@@ -4975,7 +4979,7 @@ function halloffameDetails($uebergabe_id = 0): void
if (isJson()) { if (isJson()) {
echo json_encode($mitglieder); echo json_encode($mitglieder);
} else { } else {
HTML_sportsmanager::halloffameDetails(halloffameTitel(), $params->get('beschreibung'), $mitglieder, $halloffame, $platzierung, $alleSpielerInfo); HTML_sportsmanager::halloffameDetails(halloffameTitel(), $params->get('beschreibung'), $mitglieder, $halloffame, $platzierung, $alleSpielerInfo, $alleVereineInfo);
} }
} }
@@ -242,26 +242,9 @@ function idListeParameterFilter(string $parameterName, string $prefix, string $s
$item = trim($item); $item = trim($item);
if ($item === '') continue; if ($item === '') continue;
// Prüfen, ob es ein Bereich ist
if (strpos($item, '-') !== false) {
$rangeParts = explode('-', $item);
// genau 2 Teile für einen gültigen Bereich
if (count($rangeParts) !== 2) continue;
$start = intval(trim($rangeParts[0]));
$end = intval(trim($rangeParts[1]));
if ($start <= 0 || $end <= 0 || $start > $end) continue;
for ($i = $start; $i <= $end; $i++) {
$result[$i] = true; // Duplikate vermeiden
}
} else {
$num = intval($item); $num = intval($item);
if ($num > 0) { if ($num > 0) {
$result[$num] = true; $result[$num] = true; // Duplikate vermeiden
}
} }
} }
@@ -277,12 +260,67 @@ function idListeParameterFilter(string $parameterName, string $prefix, string $s
function halloffameIdFilter($prefix): string function halloffameIdFilter($prefix): string
{ {
// Keine Bereichssuche bei der Halloffame-Id, nur einzelne Werte
return idListeParameterFilter('halloffame_id', $prefix); return idListeParameterFilter('halloffame_id', $prefix);
} }
function halloffameJahrFilter($prefix): string function halloffameJahrFilter($prefix): string
{ {
return idListeParameterFilter('jahr', $prefix); $minJahr = 1900;
$maxJahr = (int) date('Y') + 5;
$jInput = Factory::getContainer()->get(SiteApplication::class)->input;
$werte = $jInput->get('jahr', '', 'STRING');
$result = [];
foreach (explode(",", $werte) as $item) {
$item = trim($item);
if ($item === '') continue;
// Prüfen, ob es ein Bereich ist
if (strpos($item, '-') !== false) {
$rangeParts = explode('-', $item);
// genau 2 Teile für einen gültigen Bereich
if (count($rangeParts) !== 2) continue;
$start = intval(trim($rangeParts[0]));
$end = intval(trim($rangeParts[1]));
if ($start <= 0 || $end <= 0) continue;
// Werte vertauschen, falls der 2. Wert kleiner als der 1. ist
if ($end < $start) {
[$start, $end] = [$end, $start];
}
// Bereich auf 1900 .. aktuelles Jahr+5 begrenzen
$start = max($start, $minJahr);
$end = min($end, $maxJahr);
if ($start > $end) continue;
for ($i = $start; $i <= $end; $i++) {
$result[$i] = true; // Duplikate vermeiden
}
} else {
$num = intval($item);
if ($num <= 0) continue;
// Einzelwert auf 1900 .. aktuelles Jahr+5 begrenzen
$num = max($minJahr, min($maxJahr, $num));
$result[$num] = true;
}
}
if (empty($result)) {
return "";
}
$filter = array_keys($result);
sort($filter, SORT_NUMERIC);
return " $prefix (" . implode(", ", $filter) . ")";
} }
function halloffameAlleTeams($db): array function halloffameAlleTeams($db): array
@@ -357,12 +395,31 @@ function halloffameGeschaetztesGeschlecht($anzahl_m, $anzahl_w): string
return ''; return '';
} }
function halloffameNameLink(string $bild_type, $id, array $alleSpielerInfo, string $nameHtml): string function halloffameAlleVereineInfo($db): array
{
$rows = loadObjectList($db, "SELECT verein_id, ausgetreten FROM #__sportsmanager_verein");
$result = [];
foreach ($rows as $row) {
$result[$row->verein_id] = (object) [
'aktiv' => empty($row->ausgetreten),
];
}
return $result;
}
function halloffameVereinAktiv(array $alleVereineInfo, $verein_id): bool
{
return empty($verein_id) || !isset($alleVereineInfo[$verein_id]) || $alleVereineInfo[$verein_id]->aktiv;
}
function halloffameNameLink(string $bild_type, $id, array $alleSpielerInfo, array $alleVereineInfo, string $nameHtml): string
{ {
if (empty($id)) if (empty($id))
return $nameHtml; return $nameHtml;
if ($bild_type === 'spieler' && !halloffameSpielerAktiv($alleSpielerInfo, $id)) if ($bild_type === 'spieler' && !halloffameSpielerAktiv($alleSpielerInfo, $id))
return $nameHtml; return $nameHtml;
if ($bild_type === 'vereine' && !halloffameVereinAktiv($alleVereineInfo, $id))
return $nameHtml;
$tasks = ['spieler' => 'spieler_details', 'vereine' => 'verein_details', 'mannschaften' => 'team_details']; $tasks = ['spieler' => 'spieler_details', 'vereine' => 'verein_details', 'mannschaften' => 'team_details'];
if (!isset($tasks[$bild_type])) if (!isset($tasks[$bild_type]))
@@ -4217,7 +4217,7 @@ static function halloffame($titel, $beschreibung, $rows): void
<?php <?php
} }
static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen, $jahresDaten, $platzierung = '', $alleSpielerInfo = []): void static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen, $jahresDaten, $platzierung = '', $alleSpielerInfo = [], $alleVereineInfo = []): void
{ {
global $params; global $params;
if (!empty($titel)) { ?> if (!empty($titel)) { ?>
@@ -4354,13 +4354,13 @@ static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen,
<?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $disziplin->geschaetztes_geschlecht)); ?> <?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $disziplin->geschaetztes_geschlecht)); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler1)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler1)); ?>
</td> </td>
<td nowrap style="text-align:center; width:70px;"> <td nowrap style="text-align:center; width:70px;">
<?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $disziplin->geschaetztes_geschlecht)); ?> <?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $disziplin->geschaetztes_geschlecht)); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler2)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler2)); ?>
</td> </td>
<?php } else { <?php } else {
if ($disziplin->spielform == 1) { if ($disziplin->spielform == 1) {
@@ -4381,7 +4381,7 @@ static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen,
<?php echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $disziplin->geschaetztes_geschlecht) : ''); ?> <?php echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $disziplin->geschaetztes_geschlecht) : ''); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, htmlentities_utf8($row->$txt)); ?> <?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$txt)); ?>
</td> </td>
<?php if ($breite == 4) { ?> <?php if ($breite == 4) { ?>
<td colspan="2"></td> <td colspan="2"></td>
@@ -4465,13 +4465,13 @@ static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen,
<?php if (!empty($row->$spieler1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $disziplin->geschaetztes_geschlecht)); ?> <?php if (!empty($row->$spieler1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $disziplin->geschaetztes_geschlecht)); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler1)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler1)); ?>
</td> </td>
<td nowrap style="text-align:center; width:70px;"> <td nowrap style="text-align:center; width:70px;">
<?php if (!empty($row->$spieler2)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $disziplin->geschaetztes_geschlecht)); ?> <?php if (!empty($row->$spieler2)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $disziplin->geschaetztes_geschlecht)); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler2)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler2)); ?>
</td> </td>
<?php } else { <?php } else {
if ($disziplin->spielform == 1) { if ($disziplin->spielform == 1) {
@@ -4492,7 +4492,7 @@ static function halloffameNachJahrGruppiert($titel, $beschreibung, $disziplinen,
<?php if (!empty($row->$txt)) echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $disziplin->geschaetztes_geschlecht) : ''); ?> <?php if (!empty($row->$txt)) echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $disziplin->geschaetztes_geschlecht) : ''); ?>
</td> </td>
<td style="text-align:left; word-wrap: break-word;"> <td style="text-align:left; word-wrap: break-word;">
<?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, htmlentities_utf8($row->$txt)); ?> <?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$txt)); ?>
</td> </td>
<?php if ($breite == 4) { ?> <?php if ($breite == 4) { ?>
<td colspan="2"></td> <td colspan="2"></td>
@@ -4694,7 +4694,7 @@ static function halloffameNachSummeDisziplinGruppiert($titel, $beschreibung, $di
<?php <?php
} }
static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $platzierung = '', $alleSpielerInfo = []): void static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $platzierung = '', $alleSpielerInfo = [], $alleVereineInfo = []): void
{ {
global $params; global $params;
if (!empty($titel)) { ?> if (!empty($titel)) { ?>
@@ -4788,13 +4788,13 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $halloffame->geschaetztes_geschlecht)); ?> <?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler1)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler1)); ?>
</td> </td>
<td nowrap style="text-align:center; width:70px;"> <td nowrap style="text-align:center; width:70px;">
<?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $halloffame->geschaetztes_geschlecht)); ?> <?php echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler2)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler2)); ?>
</td> </td>
<?php } else { <?php } else {
if ($halloffame->spielform == 1) { if ($halloffame->spielform == 1) {
@@ -4815,7 +4815,7 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $halloffame->geschaetztes_geschlecht) : ''); ?> <?php echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $halloffame->geschaetztes_geschlecht) : ''); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, htmlentities_utf8($row->$txt)); ?> <?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$txt)); ?>
</td> </td>
<?php if ($teamspielerZeigen) { <?php if ($teamspielerZeigen) {
$index_teamspieler = "teamspieler_" . $i; $index_teamspieler = "teamspieler_" . $i;
@@ -4874,13 +4874,13 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php if (!empty($row->spieler1_1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->spieler1_id_1), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->spieler1_id_1, $halloffame->geschaetztes_geschlecht)); ?> <?php if (!empty($row->spieler1_1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->spieler1_id_1), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->spieler1_id_1, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->spieler1_id_1, $alleSpielerInfo, htmlentities_utf8($row->spieler1_1)); ?> <?php echo halloffameNameLink('spieler', $row->spieler1_id_1, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->spieler1_1)); ?>
</td> </td>
<td nowrap style="text-align:center; width:70px;"> <td nowrap style="text-align:center; width:70px;">
<?php if (!empty($row->spieler2_1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->spieler2_id_1), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->spieler2_id_1, $halloffame->geschaetztes_geschlecht)); ?> <?php if (!empty($row->spieler2_1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->spieler2_id_1), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->spieler2_id_1, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->spieler2_id_1, $alleSpielerInfo, htmlentities_utf8($row->spieler2_1)); ?> <?php echo halloffameNameLink('spieler', $row->spieler2_id_1, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->spieler2_1)); ?>
</td> </td>
</tr> </tr>
<?php <?php
@@ -4903,7 +4903,7 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php if (!empty($row->$spieler1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $halloffame->geschaetztes_geschlecht)); ?> <?php if (!empty($row->$spieler1)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler1_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler1_id, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler1)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler1_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler1)); ?>
</td> </td>
<?php } ?> <?php } ?>
</tr> </tr>
@@ -4919,7 +4919,7 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php if (!empty($row->$spieler2)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $halloffame->geschaetztes_geschlecht)); ?> <?php if (!empty($row->$spieler2)) echo bildHTML("spieler", halloffameSpielerBildId($alleSpielerInfo, $row->$spieler2_id), 45, 60, 0, 0, 'border="0"', halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$spieler2_id, $halloffame->geschaetztes_geschlecht)); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, htmlentities_utf8($row->$spieler2)); ?> <?php echo halloffameNameLink('spieler', $row->$spieler2_id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$spieler2)); ?>
</td> </td>
<?php } ?> <?php } ?>
</tr> </tr>
@@ -4951,7 +4951,7 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame, $pl
<?php if (!empty($row->$txt)) echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $halloffame->geschaetztes_geschlecht) : ''); ?> <?php if (!empty($row->$txt)) echo bildHTML($type, $type === 'spieler' ? halloffameSpielerBildId($alleSpielerInfo, $row->$id) : $row->$id, 45, 60, 0, 0, 'border="0"', $type === 'spieler' ? halloffameSpielerBildAlternativ($alleSpielerInfo, $row->$id, $halloffame->geschaetztes_geschlecht) : ''); ?>
</td> </td>
<td nowrap style="text-align:left; width:300px;"> <td nowrap style="text-align:left; width:300px;">
<?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, htmlentities_utf8($row->$txt)); ?> <?php echo halloffameNameLink($type, $row->$id, $alleSpielerInfo, $alleVereineInfo, htmlentities_utf8($row->$txt)); ?>
</td> </td>
<?php if ($teamspielerZeigen) { <?php if ($teamspielerZeigen) {
$index_teamspieler = "teamspieler_" . $i; $index_teamspieler = "teamspieler_" . $i;