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,69 +2345,52 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
|
|||||||
continue;
|
continue;
|
||||||
echo "<table style='display: inline-table;'><tr>";
|
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 "<td style='text-align: center;vertical-align: center; width: 220px;' class=\"sectiontableentry" . (($n % 2) + 1) . $params->get('pageclass_sfx') . "\">";
|
||||||
echo "<table>";
|
if (empty($row->aktueller_verein_id))
|
||||||
echo "<tr><td style='text-align: center'>";
|
echo htmlentities_utf8($row->nachname . ", " . $row->vorname);
|
||||||
if (empty($row->aktueller_verein_id))
|
else {
|
||||||
echo htmlentities_utf8($row->nachname . ", " . $row->vorname);
|
?><a
|
||||||
else {
|
href="<?php echo SportsManagerURL('&task=spieler_details&id=' . $row->spieler_id); ?>"><?php echo htmlentities_utf8(NichtLeererString($row->nachname . ", " . $row->vorname)); ?></a><?php
|
||||||
?><a
|
}
|
||||||
href="<?php echo SportsManagerURL('&task=spieler_details&id=' . $row->spieler_id); ?>"><?php echo htmlentities_utf8(NichtLeererString($row->nachname . ", " . $row->vorname)); ?></a><?php
|
if (!empty($row->spielernr))
|
||||||
|
echo "<br /><small>" . htmlentities_utf8($row->spielernr) . "</small>";
|
||||||
|
if ($team_moderator) {
|
||||||
|
if (!empty($row->geburtsjahr)) {
|
||||||
|
echo "<br /><small>" . htmlentities_utf8($row->geburtsjahr) . "</small>";
|
||||||
}
|
}
|
||||||
if (!empty($row->spielernr))
|
if (!empty($row->strasse))
|
||||||
echo "<br /><small>" . htmlentities_utf8($row->spielernr) . "</small>";
|
echo "<br /><small>" . htmlentities_utf8($row->strasse) . "</small>";
|
||||||
echo "</td></tr>";
|
if (!empty($row->plz) || !empty($row->ort))
|
||||||
if ($team_moderator) {
|
echo "<br /><small>" . (!empty($row->plz) ? (htmlentities_utf8($row->plz) . " ") : "") . htmlentities_utf8($row->ort) . "</small>";
|
||||||
if (!empty($row->geburtsjahr)) {
|
if (!empty($row->telefon))
|
||||||
echo "<tr><td style='text-align: center'>";
|
echo "<br /><small>" . htmlentities_utf8($row->telefon) . "</small>";
|
||||||
echo "<small>" . htmlentities_utf8($row->geburtsjahr) . "</small>";
|
if (!empty($row->mobil))
|
||||||
echo "</td></tr>";
|
echo "<br /><small>" . htmlentities_utf8($row->mobil) . "</small>";
|
||||||
}
|
if (!empty($row->email)) {
|
||||||
if (!empty($row->strasse) ||
|
$replacement = HTMLHelper::_('email.cloak', $row->email, 1, $row->email, 0);
|
||||||
!empty($row->plz) || !empty($row->ort)) {
|
echo "<br /><small>" . $replacement . "</small>";
|
||||||
echo "<tr><td style='text-align: center'>";
|
|
||||||
if (!empty($row->strasse))
|
|
||||||
echo "<small>" . htmlentities_utf8($row->strasse) . "</small><br />";
|
|
||||||
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'>";
|
|
||||||
if (!empty($row->telefon))
|
|
||||||
echo "<small>" . htmlentities_utf8($row->telefon) . "</small><br />";
|
|
||||||
if (!empty($row->mobil))
|
|
||||||
echo "<small>" . htmlentities_utf8($row->mobil) . "</small><br />";
|
|
||||||
if (!empty($row->email)) {
|
|
||||||
$replacement = HTMLHelper::_('email.cloak', $row->email, 1, $row->email, 0);
|
|
||||||
echo "<small>" . $replacement . "</small>";
|
|
||||||
}
|
|
||||||
echo "</td></tr>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (isset($spielberechtigungen[$row->spieler_id])) {
|
}
|
||||||
echo "<tr><td style='text-align: center'>";
|
if (isset($spielberechtigungen[$row->spieler_id])) {
|
||||||
foreach ($spielberechtigungen[$row->spieler_id] as $spielberechtigung) {
|
|
||||||
echo "<small>";
|
foreach ($spielberechtigungen[$row->spieler_id] as $spielberechtigung) {
|
||||||
if (isset($veranstaltungsbezeichnungen[$spielberechtigung[0]])) {
|
echo "<br><small>";
|
||||||
echo htmlentities_utf8($veranstaltungsbezeichnungen[$spielberechtigung[0]]) . ": ";
|
if (isset($veranstaltungsbezeichnungen[$spielberechtigung[0]])) {
|
||||||
}
|
echo htmlentities_utf8($veranstaltungsbezeichnungen[$spielberechtigung[0]]) . ": ";
|
||||||
if ($spielberechtigung[2] == -1) // Ohne Spielberechtigung
|
|
||||||
echo "<br />Nicht spielberechtigt";
|
|
||||||
else if (empty($spielberechtigung[3])) // Letzter Spieltag ohne Einschränkung
|
|
||||||
echo "<br />Ab " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[2], $spielberechtigung[1] == 0));
|
|
||||||
else if ($spielberechtigung[2] < 2) // Erster Spieltag ohne Einschränkung
|
|
||||||
echo "<br />Bis " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[3], $spielberechtigung[1] == 0));
|
|
||||||
else if ($spielberechtigung[2] == $spielberechtigung[3]) // Erster Spieltag und letzter Spieltag gleich
|
|
||||||
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 "</td></tr>";
|
if ($spielberechtigung[2] == -1) // Ohne Spielberechtigung
|
||||||
|
echo "<br />Nicht spielberechtigt";
|
||||||
|
else if (empty($spielberechtigung[3])) // Letzter Spieltag ohne Einschränkung
|
||||||
|
echo "<br />Ab " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[2], $spielberechtigung[1] == 0));
|
||||||
|
else if ($spielberechtigung[2] < 2) // Erster Spieltag ohne Einschränkung
|
||||||
|
echo "<br />Bis " . htmlentities_utf8(Rundenbezeichnung($spielberechtigung[3], $spielberechtigung[1] == 0));
|
||||||
|
else if ($spielberechtigung[2] == $spielberechtigung[3]) // Erster Spieltag und letzter Spieltag gleich
|
||||||
|
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>";
|
||||||
}
|
}
|
||||||
echo "</table></td>";
|
}
|
||||||
|
echo "</td>";
|
||||||
echo "<td style='text-align: left; width: 120px;' class=\"sectiontableentry" . (($n % 2) + 1) . $params->get('pageclass_sfx') . "\">";
|
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"');
|
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $row->bild_ausblenden ? '' : $row->mitglied_von_team_id, 90, 120, 0, 0, 'border="1"');
|
||||||
if ($bild == null)
|
if ($bild == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user