mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
fix: add season dropdown to events, even if there is just one event
This commit is contained in:
@@ -1577,8 +1577,12 @@ function veranstaltung(): void
|
||||
}
|
||||
}
|
||||
|
||||
$showSeasons = false;
|
||||
if (count($saisons) > 1) {
|
||||
$showSeasons = true;
|
||||
}
|
||||
// Anzeigen
|
||||
HTML_sportsmanager::veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltung_id, $naechste_veranstaltung_id);
|
||||
HTML_sportsmanager::veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltung_id, $naechste_veranstaltung_id, $showSeasons, $saisons, $filter_saison_id);
|
||||
|
||||
if ($veranstaltung->tabellenwertung != 0)
|
||||
tabelle($veranstaltung, $spieltag, true);
|
||||
|
||||
@@ -140,13 +140,6 @@ static function veranstaltungenHeader($titel, $beschreibung, $saisons, $filter_s
|
||||
<a href="<?php echo SportsManagerURL('&task=veranstaltungen_ticker&tmpl=component'); ?>"
|
||||
class="readon<?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<?php echo Text::_('COM_SPORTSMANAGER_LIVE_TICKER'); ?> …</a><br/>
|
||||
|
||||
<?php
|
||||
/*
|
||||
<a href="javascript:openwindow('<?php echo SportsManagerURL('&task=veranstaltungen_ticker&tmpl=component'); ?>',screen.width,725);" class="readon<?php echo $params->get( 'pageclass_sfx' ); ?>">
|
||||
<?php echo Text::_( 'COM_SPORTSMANAGER_LIVE_TICKER' ); ?> …(no menu)</a>
|
||||
*/
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -158,7 +151,7 @@ static function veranstaltungenHeader($titel, $beschreibung, $saisons, $filter_s
|
||||
}
|
||||
}
|
||||
|
||||
static function veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltung_id, $naechste_veranstaltung_id): void
|
||||
static function veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltung_id, $naechste_veranstaltung_id, $showSeasons = false, $seasons = [], $filter_saison_id = 0): void
|
||||
{
|
||||
global $params;
|
||||
|
||||
@@ -167,7 +160,7 @@ static function veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltun
|
||||
<tr>
|
||||
<th style="width: 30px" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"></th>
|
||||
<th style="text-align: left" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<!--img src="images/M_images/arrow.png" border="0"/--> <a
|
||||
<a
|
||||
href="<?php echo SportsManagerURL('&task=veranstaltungen#vid' . $veranstaltung->veranstaltung_id); ?>">
|
||||
<?php echo Text::_('COM_SPORTSMANAGER_COMPETITIONS'); ?></a>
|
||||
> <?php echo htmlentities_utf8($veranstaltung->bezeichnung); ?>
|
||||
@@ -226,9 +219,40 @@ static function veranstaltungHeaderAlone($veranstaltung, $vorherige_veranstaltun
|
||||
?>
|
||||
</H2>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
if (($showSeasons && count($seasons) > 1)) {
|
||||
?>
|
||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="uk-overflow-auto">
|
||||
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<label for="filter_saison_id"><?php echo Text::_('COM_SPORTSMANAGER_SEASON'); ?>
|
||||
:</label>
|
||||
<select class="uk-select uk-form-width-medium" name="filter_saison_id"
|
||||
id="filter_saison_id" size="1" onChange="document.adminForm.submit();">
|
||||
<?php
|
||||
foreach ($seasons as $season)
|
||||
echo "<option value=\"" . $season->saison_id . "\" " . ($filter_saison_id == $season->saison_id ? "selected" : "") . ">" . htmlentities_utf8($season->saisonbezeichnung) . "</option>";
|
||||
?>
|
||||
</select>
|
||||
<input type="submit" name="ok" value="<?php echo Text::_('COM_SPORTSMANAGER_GO'); ?>"
|
||||
class="button uk-button uk-button-primary"/>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="task" value="veranstaltungen"/>
|
||||
</form>
|
||||
<span class="article_seperator<?php echo $params->get('pageclass_sfx'); ?>"> </span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -1558,7 +1582,7 @@ global $params;
|
||||
if (count($teams) > 0) {
|
||||
if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) {
|
||||
?>
|
||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="matchDayForm" id="matchDayForm">
|
||||
<div class="uk-overflow-auto">
|
||||
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<tr>
|
||||
@@ -1566,7 +1590,7 @@ global $params;
|
||||
<select
|
||||
aria-label="<?php echo Text::_('COM_SPORTSMANAGER_ARIA_LABEL_MATCHDAY_SELECT'); ?>"
|
||||
class="uk-select uk-form-width-medium" name="spieltag" size="1"
|
||||
onChange="document.adminForm.submit();">
|
||||
onChange="document.matchDayForm.submit();">
|
||||
<?php
|
||||
foreach ($spieltage as $s) {
|
||||
echo "<option value=\"" . $s->spieltag . "\"" . ($s->spieltag == $spieltag ? " selected" : "") . ">" . htmlentities_utf8(Rundenbezeichnung($s->spieltag, $veranstaltung->unterteilung == 0)) . "</option>";
|
||||
|
||||
Reference in New Issue
Block a user