mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Ansicht Begegnungen im Frontend überarbeitet
This commit is contained in:
@@ -1087,11 +1087,24 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
|
||||
$monat = "...";
|
||||
$spieltag = 0;
|
||||
$spielort_name = "";
|
||||
$Spieltagname = "";
|
||||
$Spieltagname_Buffer = "";
|
||||
foreach ($rows as $row) {
|
||||
$ergebnis_vorhanden = $row->heim_punkte != null || $row->gast_punkte != null;
|
||||
if ($zeitfenster == 0 && $veranstaltung != null) {
|
||||
if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) {
|
||||
if ($spieltag != $row->spieltag || $spielort_name != $row->spielort_name) {
|
||||
|
||||
if ($row->spieltag > 999)
|
||||
$Spieltagname = htmlentities_utf8(Rundenbezeichnung($row->spieltag, $veranstaltung->unterteilung == 0, true));
|
||||
else if ($veranstaltung->unterteilung == 1)
|
||||
$Spieltagname = "Runde " . $row->spieltag;
|
||||
else
|
||||
$Spieltagname = "Spieltag " . $row->spieltag;
|
||||
|
||||
if ($row->spieltag < 999 && $veranstaltung->spieltag_titel_zeigen == 1 && $row->spieltag_titel != "")
|
||||
$Spieltagname .= " - " . $row->spieltag_titel;
|
||||
|
||||
if ($Spieltagname_Buffer != $Spieltagname || $spielort_name != $row->spielort_name) {
|
||||
$spieltag = $row->spieltag;
|
||||
$spielort_name = $row->spielort_name;
|
||||
?>
|
||||
@@ -1112,6 +1125,7 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$Spieltagname_Buffer = $Spieltagname;
|
||||
} else if ($monat != substr($row->zeitpunkt, 0, 7)) { // Freundschaftsspiel
|
||||
$monat = substr($row->zeitpunkt, 0, 7);
|
||||
if (strlen($monat) == 0)
|
||||
|
||||
@@ -8898,8 +8898,8 @@ class HTML_sportsmanager_admin
|
||||
|
||||
if ($Spieltagname_Buffer != $Spieltagname){
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap style="text-align: left; vertical-align: bottom; height: 32px; font-style: italic; font-size: 80%; font-weight: 600;">
|
||||
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<td nowrap style="text-align: left; vertical-align: bottom; height: 36px; font-style: italic; font-size: 70%; font-weight: 600;">
|
||||
<?php echo $Spieltagname; ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -8907,6 +8907,25 @@ class HTML_sportsmanager_admin
|
||||
}
|
||||
|
||||
$Spieltagname_Buffer = $Spieltagname;
|
||||
} else if ($monat != substr($row->zeitpunkt, 0, 7)) { // Freundschaftsspiel
|
||||
$monat = substr($row->zeitpunkt, 0, 7);
|
||||
if (strlen($monat) == 0)
|
||||
$monatsbezeichnung = "N/A";
|
||||
else {
|
||||
$monatsname = array(Text::_('COM_SPORTSMANAGER_JANUARY'), Text::_('COM_SPORTSMANAGER_FEBRUARY'), Text::_('COM_SPORTSMANAGER_MARCH'), Text::_('COM_SPORTSMANAGER_APRIL'), Text::_('COM_SPORTSMANAGER_MAY'), Text::_('COM_SPORTSMANAGER_JUNE'), Text::_('COM_SPORTSMANAGER_JULY'), Text::_('COM_SPORTSMANAGER_AUGUST'), Text::_('COM_SPORTSMANAGER_SEPTEMBER'), Text::_('COM_SPORTSMANAGER_OCTOBER'), Text::_('COM_SPORTSMANAGER_NOVEMBER'), Text::_('COM_SPORTSMANAGER_DECEMBER'));
|
||||
$monatsbezeichnung = $monatsname[substr($monat, 5, 2) - 1] . " " . substr($monat, 0, 4);
|
||||
}
|
||||
/* ?> <tr class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>"><td nowrap height="4"></td><td nowrap></td><td nowrap></td><td nowrap></td><td nowrap></td><td nowrap></td></tr> <?php */
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap height="4"></td>
|
||||
</tr>
|
||||
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>" style="text-align: center">
|
||||
<th nowrap><span style="font-size: 70%; "><i>
|
||||
<?php echo htmlentities_utf8($monatsbezeichnung); ?></i></span>
|
||||
</th>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user