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 = "...";
|
$monat = "...";
|
||||||
$spieltag = 0;
|
$spieltag = 0;
|
||||||
$spielort_name = "";
|
$spielort_name = "";
|
||||||
|
$Spieltagname = "";
|
||||||
|
$Spieltagname_Buffer = "";
|
||||||
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 ($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 ($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;
|
$spieltag = $row->spieltag;
|
||||||
$spielort_name = $row->spielort_name;
|
$spielort_name = $row->spielort_name;
|
||||||
?>
|
?>
|
||||||
@@ -1105,13 +1118,14 @@ static function begegnungenAnzeigen($veranstaltung, $modus, $rows, $zeitfenster,
|
|||||||
echo htmlentities_utf8(Rundenbezeichnung($spieltag, $veranstaltung->unterteilung == 0));
|
echo htmlentities_utf8(Rundenbezeichnung($spieltag, $veranstaltung->unterteilung == 0));
|
||||||
if (!empty($row->spieltag_titel) && !empty($veranstaltung->spieltag_titel_zeigen))
|
if (!empty($row->spieltag_titel) && !empty($veranstaltung->spieltag_titel_zeigen))
|
||||||
echo " - " . $row->spieltag_titel;
|
echo " - " . $row->spieltag_titel;
|
||||||
if (!empty($spielort_name))
|
if (!empty($spielort_name))
|
||||||
echo "<br />" . htmlentities_utf8($spielort_name);
|
echo "<br />" . htmlentities_utf8($spielort_name);
|
||||||
?>
|
?>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
$Spieltagname_Buffer = $Spieltagname;
|
||||||
} else if ($monat != substr($row->zeitpunkt, 0, 7)) { // Freundschaftsspiel
|
} else if ($monat != substr($row->zeitpunkt, 0, 7)) { // Freundschaftsspiel
|
||||||
$monat = substr($row->zeitpunkt, 0, 7);
|
$monat = substr($row->zeitpunkt, 0, 7);
|
||||||
if (strlen($monat) == 0)
|
if (strlen($monat) == 0)
|
||||||
|
|||||||
@@ -8898,8 +8898,8 @@ class HTML_sportsmanager_admin
|
|||||||
|
|
||||||
if ($Spieltagname_Buffer != $Spieltagname){
|
if ($Spieltagname_Buffer != $Spieltagname){
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
|
||||||
<td nowrap style="text-align: left; vertical-align: bottom; height: 32px; font-style: italic; font-size: 80%; font-weight: 600;">
|
<td nowrap style="text-align: left; vertical-align: bottom; height: 36px; font-style: italic; font-size: 70%; font-weight: 600;">
|
||||||
<?php echo $Spieltagname; ?>
|
<?php echo $Spieltagname; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -8907,7 +8907,26 @@ class HTML_sportsmanager_admin
|
|||||||
}
|
}
|
||||||
|
|
||||||
$Spieltagname_Buffer = $Spieltagname;
|
$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