mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Verschachtelte Tabelle entfernt. Redundante if-Anweisungen entfernt.
This commit is contained in:
@@ -2345,8 +2345,6 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
|
||||
continue;
|
||||
echo "<table style='display: inline-table;'><tr>";
|
||||
echo "<td style='text-align: center;vertical-align: center; width: 220px;' class=\"sectiontableentry" . (($n % 2) + 1) . $params->get('pageclass_sfx') . "\">";
|
||||
echo "<table>";
|
||||
echo "<tr><td style='text-align: center'>";
|
||||
if (empty($row->aktueller_verein_id))
|
||||
echo htmlentities_utf8($row->nachname . ", " . $row->vorname);
|
||||
else {
|
||||
@@ -2355,41 +2353,27 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
|
||||
}
|
||||
if (!empty($row->spielernr))
|
||||
echo "<br /><small>" . htmlentities_utf8($row->spielernr) . "</small>";
|
||||
echo "</td></tr>";
|
||||
if ($team_moderator) {
|
||||
if (!empty($row->geburtsjahr)) {
|
||||
echo "<tr><td style='text-align: center'>";
|
||||
echo "<small>" . htmlentities_utf8($row->geburtsjahr) . "</small>";
|
||||
echo "</td></tr>";
|
||||
echo "<br /><small>" . htmlentities_utf8($row->geburtsjahr) . "</small>";
|
||||
}
|
||||
if (!empty($row->strasse) ||
|
||||
!empty($row->plz) || !empty($row->ort)) {
|
||||
echo "<tr><td style='text-align: center'>";
|
||||
if (!empty($row->strasse))
|
||||
echo "<small>" . htmlentities_utf8($row->strasse) . "</small><br />";
|
||||
echo "<br /><small>" . htmlentities_utf8($row->strasse) . "</small>";
|
||||
if (!empty($row->plz) || !empty($row->ort))
|
||||
echo "<small>" . (!empty($row->plz) ? (htmlentities_utf8($row->plz) . " ") : "") . htmlentities_utf8($row->ort) . "</small>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
if (!empty($row->telefon) ||
|
||||
!empty($row->mobil) ||
|
||||
!empty($row->email)) {
|
||||
echo "<tr><td style='text-align: center'>";
|
||||
echo "<br /><small>" . (!empty($row->plz) ? (htmlentities_utf8($row->plz) . " ") : "") . htmlentities_utf8($row->ort) . "</small>";
|
||||
if (!empty($row->telefon))
|
||||
echo "<small>" . htmlentities_utf8($row->telefon) . "</small><br />";
|
||||
echo "<br /><small>" . htmlentities_utf8($row->telefon) . "</small>";
|
||||
if (!empty($row->mobil))
|
||||
echo "<small>" . htmlentities_utf8($row->mobil) . "</small><br />";
|
||||
echo "<br /><small>" . htmlentities_utf8($row->mobil) . "</small>";
|
||||
if (!empty($row->email)) {
|
||||
$replacement = HTMLHelper::_('email.cloak', $row->email, 1, $row->email, 0);
|
||||
echo "<small>" . $replacement . "</small>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
echo "<br /><small>" . $replacement . "</small>";
|
||||
}
|
||||
}
|
||||
if (isset($spielberechtigungen[$row->spieler_id])) {
|
||||
echo "<tr><td style='text-align: center'>";
|
||||
|
||||
foreach ($spielberechtigungen[$row->spieler_id] as $spielberechtigung) {
|
||||
echo "<small>";
|
||||
echo "<br><small>";
|
||||
if (isset($veranstaltungsbezeichnungen[$spielberechtigung[0]])) {
|
||||
echo htmlentities_utf8($veranstaltungsbezeichnungen[$spielberechtigung[0]]) . ": ";
|
||||
}
|
||||
@@ -2403,11 +2387,10 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
|
||||
echo "<br />Während " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[2], $spielberechtigung[1] == 0));
|
||||
else
|
||||
echo htmlentities_utf8(Rundenbezeichnung($spielberechtigung[2], $spielberechtigung[1] == 0)) . " bis " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[3], $spielberechtigung[1] == 0));
|
||||
echo "</small><br />";
|
||||
echo "</small>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
}
|
||||
echo "</table></td>";
|
||||
echo "</td>";
|
||||
echo "<td style='text-align: left; width: 120px;' class=\"sectiontableentry" . (($n % 2) + 1) . $params->get('pageclass_sfx') . "\">";
|
||||
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $row->bild_ausblenden ? '' : $row->mitglied_von_team_id, 90, 120, 0, 0, 'border="1"');
|
||||
if ($bild == null)
|
||||
|
||||
Reference in New Issue
Block a user