Anischt Begegnungen im admin-Bereich überarbeitet

This commit is contained in:
Jürgen Meyer
2025-11-05 12:36:29 +01:00
parent 5fafcace6b
commit 2a87c93c17
@@ -8868,18 +8868,9 @@ class HTML_sportsmanager_admin
?>
<table class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php
if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) {
?>
<th nowrap>
<strong><?php echo $veranstaltung->unterteilung == 0 ? Text::_('COM_SPORTSMANAGER_GAMEDAY') : Text::_('COM_SPORTSMANAGER_ROUND'); ?></strong>
</th>
<?php
}
?>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_SCHEDULE_DATE'); ?></strong></th>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_HOME_TEAM'); ?></strong></th>
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_GUEST_TEAM'); ?></strong></th>
<th nowrap style="text-align: left;"><strong><?php echo Text::_('COM_SPORTSMANAGER_SCHEDULE_DATE'); ?></strong></th>
<th nowrap style="text-align: left;"><strong><?php echo Text::_('COM_SPORTSMANAGER_HOME_TEAM'); ?></strong></th>
<th nowrap style="text-align: left;"><strong><?php echo Text::_('COM_SPORTSMANAGER_GUEST_TEAM'); ?></strong></th>
<th nowrap>
<strong><?php echo $modus->punktetyp == 0 ? Text::_('COM_SPORTSMANAGER_GOALS') : Text::_('COM_SPORTSMANAGER_SETS'); ?></strong>
</th>
@@ -8888,36 +8879,41 @@ class HTML_sportsmanager_admin
</tr>
<?php
$k = 0;
$spieltag = -1;
$Spieltagname = "";
$Spieltagname_Buffer = "";
foreach ($rows as $row) {
$ergebnis_vorhanden = $row->heim_punkte != null || $row->gast_punkte != null;
if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) {
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){
?>
<tr>
<td nowrap style="text-align: left; vertical-align: bottom; height: 32px; font-style: italic; font-size: 80%; font-weight: 600;">
<?php echo $Spieltagname; ?>
</td>
</tr>
<?php
}
$Spieltagname_Buffer = $Spieltagname;
}
?>
<tr class="sectiontableentry<?php echo $k + 1;
$k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
<?php
if ($veranstaltung->unterteilung == 0 || $veranstaltung->unterteilung == 1) {
?>
<td nowrap style="text-align: center;">
<a id="id<?php echo $row->begegnung_id; ?>"></a>
<?php
if ($veranstaltung->spieltag_titel_zeigen == 0){
if ($spieltag != $row->spieltag) {
$spieltag = $row->spieltag;
echo htmlentities_utf8(Rundenbezeichnung($spieltag, $veranstaltung->unterteilung == 0, true));
}
}
if ($veranstaltung->spieltag_titel_zeigen == 1){
if ($spieltag != $row->spieltag_titel) {
$spieltag = $row->spieltag_titel;
echo htmlentities_utf8($spieltag);
}
}
?>
</td>
<?php
}
?>
<td nowrap><a
href="<?php echo SportsManagerURL('&task=admin_begegnung_edit&veranstaltungid=' . $veranstaltung->veranstaltung_id . '&id=' . $row->begegnung_id); ?>">
<?php
@@ -9117,7 +9113,7 @@ class HTML_sportsmanager_admin
</td>
<td nowrap>
<input list="auswahl_spieltagtitel" class="uk-select uk-form-width-medium" type="text" name="spieltag_titel"
id="game_title" size="32" maxlength="255" style="height: 34px;"
id="game_title" size="32" maxlength="20" style="height: 34px;width: 300px;"
value="<?php if ($row != null) echo htmlentities_utf8($row->spieltag_titel); ?>"/>
<datalist id="auswahl_spieltagtitel" >
<?php if ($auswahl_spieltagtitel){ ?>
@@ -10283,7 +10279,7 @@ class HTML_sportsmanager_admin
</td>
<td nowrap>
<input list="auswahl_spieltagtitel" class="uk-select uk-form-width-medium" type="text" name="spieltag_titel"
id="game_title" size="32" maxlength="255" style="height: 34px;"
id="game_title" size="32" maxlength="20" style="height: 34px;width: 280px;"
value="<?php if ($row != null) echo htmlentities_utf8($row->spieltag_titel); ?>"/>
<datalist id="auswahl_spieltagtitel" >
<?php if ($auswahl_spieltagtitel){ ?>
@@ -10546,7 +10542,7 @@ class HTML_sportsmanager_admin
</td>
<td nowrap>
<input list="auswahl_rundentitel" class="uk-select uk-form-width-large"
style="height: 34px; text-align: left;" type="text" name="rundentitel" id="rundentitel" size="32" maxlength="32"
style="height: 34px; width: 280px; text-align: left;" type="text" name="rundentitel" id="rundentitel" size="32" maxlength="20"
value="<?php echo $veranstaltung->titelVorschlag; ?>"/>
<datalist id="auswahl_rundentitel" >
<?php if ($auswahl_rundentitel){ ?>