From 59156243372925f86fe427f09fbc0fb23eb11ec9 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sun, 22 Jun 2025 21:32:43 +0000
Subject: [PATCH] feat: Add Dark Mode to Livescore Ticker
Implemented dark mode for the Livescore Ticker component.
Features:
- CSS variables for theming.
- Automatic detection of OS/browser color scheme preference.
- Manual theme switcher UI (System, Light, Dark modes).
- Theme preference persistence using localStorage.
- Styled theme switcher elements for both light and dark modes.
---
.../views/sportsmanager/view_ticker.php | 4436 +++++++++--------
1 file changed, 2336 insertions(+), 2100 deletions(-)
diff --git a/src/structure/components/com_sportsmanager/views/sportsmanager/view_ticker.php b/src/structure/components/com_sportsmanager/views/sportsmanager/view_ticker.php
index 5e78cda..e5182d7 100644
--- a/src/structure/components/com_sportsmanager/views/sportsmanager/view_ticker.php
+++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view_ticker.php
@@ -1,2100 +1,2336 @@
-begegnung_id;
- $zeitpunkt_ts = strtotime($begegnung->zeitpunkt);
- $datum = date("j. M", $zeitpunkt_ts);
- $zeit = date("H:i", $zeitpunkt_ts);
- if ($begegnung->zwischenergebnis)
- $status = 'livenow';
- elseif (!empty($begegnung->heim_spielpunkte) || !empty($begegnung->gast_spielpunkte))
- $status = 'finished';
- elseif ($begegnung->verlegung_eingetragen)
- continue;
- else
- $status = 'upcoming';
- $spieltag = Rundenbezeichnung($begegnung->spieltag, $begegnung->unterteilung == 0, false, true);
- $gewinner = $begegnung->heim_spielpunkte > $begegnung->gast_spielpunkte ? 1 : ($begegnung->heim_spielpunkte < $begegnung->gast_spielpunkte ? 2 : 0);
- $heim_name = $begegnung->heim_name;
- $gast_name = $begegnung->gast_name;
- $heim_spielpunkte = $begegnung->heim_spielpunkte;
- $gast_spielpunkte = $begegnung->gast_spielpunkte;
- $heim_logo = bildHTML("mannschaften", $begegnung->heim_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
- $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
- $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
- $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
- $matchez[] = array('id' => $id, 'status' => $status, 'day' => $datum, 'hour' => $zeit, 'round' => $spieltag, 'winner' => $gewinner, 'team1' => $heim_name, 'team2' => $gast_name, 'logo1' => $heim_logo, 'logo2' => $gast_logo, 'score1' => $heim_spielpunkte, 'score2' => $gast_spielpunkte);
- }
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintable($matchez); // feeding the array to the function it prints the right table
- } elseif ($type == "groups") { // when right side groups have to be updated the script is called with type=groups
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
- ?>
-
- $veranstaltung) {
- if ($index == $veranstaltung_elimination_index)
- continue;
- $teamz = array();
- $punkte_anzeigen = false;
- if (count($tabellen[$index]) > 0 && $tabellen[$index][0]->gesamtpunkte != NULL)
- $punkte_anzeigen = true;
- foreach ($tabellen[$index] as $mannschaft) {
- $logo = bildHTML("mannschaften", $mannschaft->team_id, 17, 17, 0, 0, 'border="0"');
- if (empty($logo) && !empty($mannschaft->verein_id))
- $logo = bildHTML("vereine", $mannschaft->verein_id, 17, 17, 0, 0, 'border="0"');
- if ($punkte_anzeigen)
- $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname, 'score' => floatval($mannschaft->gesamtpunkte));
- else
- $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
- }
-
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintgtable($teamz, $veranstaltung->bezeichnung);
- }
- ?>
-
- 'upcoming', 'winner' => 0, 'team1' => '', 'team2' => '', 'blogo1' => null, 'blogo2' => null, 'slogo1' => null, 'slogo2' => null, 'score1' => '', 'score2' => '', 'placeholder' => true));
- foreach ($begegnungen as $begegnung) {
- $spieltag = $begegnung->spieltag;
- if ($spieltag == 19999 || $spieltag == 29898) // Finale
- $begegnung_index = 6;
- elseif ($spieltag == 19998 || $spieltag == 29896) // Platz 3
- $begegnung_index = 7;
- elseif ($spieltag == 19997 || $spieltag == 29698) { // Halb
- if (isset($matchez[4]['placeholder']))
- $begegnung_index = 4;
- else
- $begegnung_index = 5;
- } elseif ($spieltag == 19996 || $spieltag == 29298) { // Viertel
- if (isset($matchez[0]['placeholder']))
- $begegnung_index = 0;
- elseif (isset($matchez[1]['placeholder']))
- $begegnung_index = 1;
- elseif (isset($matchez[2]['placeholder']))
- $begegnung_index = 2;
- else
- $begegnung_index = 3;
- } else
- continue;
- if ($begegnung->zwischenergebnis)
- $status = 'livenow';
- elseif (!empty($begegnung->heim_spielpunkte) || !empty($begegnung->gast_spielpunkte))
- $status = 'finished';
- elseif ($begegnung->verlegung_eingetragen)
- continue;
- else
- $status = 'upcoming';
- $gewinner = $begegnung->heim_spielpunkte > $begegnung->gast_spielpunkte ? 1 : ($begegnung->heim_spielpunkte < $begegnung->gast_spielpunkte ? 2 : 0);
- $heim_name = $begegnung->heim_name;
- $gast_name = $begegnung->gast_name;
- $heim_spielpunkte = $begegnung->heim_spielpunkte;
- $gast_spielpunkte = $begegnung->gast_spielpunkte;
- $heim_logo = bildHTML("mannschaften", $begegnung->heim_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
- $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
- $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
- $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
- $heim_logo_klein = bildHTML("mannschaften", $begegnung->heim_team_id, 17, 17, 0, 0, 'border="0"');
- if (empty($heim_logo_klein) && !empty($begegnung->heim_verein_id))
- $heim_logo_klein = bildHTML("vereine", $begegnung->heim_verein_id, 17, 17, 0, 0, 'border="0"');
- $gast_logo_klein = bildHTML("mannschaften", $begegnung->gast_team_id, 17, 17, 0, 0, 'border="0"');
- if (empty($gast_logo_klein) && !empty($begegnung->gast_verein_id))
- $gast_logo_klein = bildHTML("vereine", $begegnung->gast_verein_id, 17, 17, 0, 0, 'border="0"');
- $matchez[$begegnung_index] = array('status' => $status, 'winner' => $gewinner, 'team1' => $heim_name, 'team2' => $gast_name, 'blogo1' => $heim_logo, 'blogo2' => $gast_logo, 'slogo1' => $heim_logo_klein, 'slogo2' => $gast_logo_klein, 'score1' => $heim_spielpunkte, 'score2' => $gast_spielpunkte);
- }
- // Adjust order so the tree fits
- // 1/4 Finals: matchez[0..3], 1/2 Finals: matchez[4..5], Final: matchez[6], 3rd Place: matchez[7]
- $tmatchez = $matchez;
- for ($i = 4; $i <= 5; $i++) {
- $offset = 0;
- if (!isset($tmatchez[$i]['placeholder'])) {
- for ($j = 0; $j <= 3 && $offset < 2; $j++) {
- if (!isset($tmatchez[$j]['placeholder'])) {
- if ($tmatchez[$i]['team1'] == $tmatchez[$j]['team1'] || $tmatchez[$i]['team1'] == $tmatchez[$j]['team2'] || $tmatchez[$i]['team2'] == $tmatchez[$j]['team1'] || $tmatchez[$i]['team2'] == $tmatchez[$j]['team2']) {
- $matchez[($i - 4) * 2 + $offset++] = $tmatchez[$j];
- }
- }
- }
- }
- while ($offset < 2)
- $matchez[($i - 4) * 2 + $offset++] = array('status' => 'upcoming', 'winner' => 0, 'team1' => '', 'team2' => '', 'blogo1' => null, 'blogo2' => null, 'slogo1' => null, 'slogo2' => null, 'score1' => '', 'score2' => '', 'placeholder' => true);
- }
-
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
- HTML_sportsmanager_ticker::veranstaltungenTickerPrinteliminations($matchez); // called to display right elimination table
-
- $teamz = array();
- if ($veranstaltung_elimination_index != -1) {
- $platz = 1;
- foreach ($tabellen[$veranstaltung_elimination_index] as $mannschaft) {
- if ($mannschaft->platz > 3 || $mannschaft->platz != $platz)
- break;
- $groesse = 30;
- $logo = bildHTML("mannschaften", $mannschaft->team_id, $groesse, $groesse, 0, 0, 'border="0"');
- if (empty($logo) && !empty($mannschaft->verein_id))
- $logo = bildHTML("vereine", $mannschaft->verein_id, $groesse, $groesse, 0, 0, 'border="0"');
- $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
- $platz++;
- }
- if (count($teamz) != 3)
- $teamz = array();
- }
-
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintop3($teamz); // called to display right top 3 results
- } elseif ($type == "finalranking") {
- $teamz = array();
- $veranstaltung_titel = Text::_('COM_FINAL_RANKING');
- if ($veranstaltung_elimination_index != -1) {
- foreach ($tabellen[$veranstaltung_elimination_index] as $mannschaft) {
- $logo = bildHTML("mannschaften", $mannschaft->team_id, 17, 17, 0, 0, 'border="0"');
- if (empty($logo) && !empty($mannschaft->verein_id))
- $logo = bildHTML("vereine", $mannschaft->verein_id, 17, 17, 0, 0, 'border="0"');
- $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
- }
- $veranstaltung_titel = $veranstaltungen[$veranstaltung_elimination_index]->bezeichnung;
- }
-
- HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
- ?>
-
-
-
- heim_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
- $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
- $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
- if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
- $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
- ?>
-
-
-
-
-
-
-
-
- heim_spielpunkte > $begegnung->gast_spielpunkte) echo "class=\"finished_winner\" "; ?>id="team_heim">heim_name); ?>
-
-
-
-
zwischenergebnis && empty($begegnung->heim_spielpunkte) && empty($begegnung->gast_spielpunkte)) echo "--|--"; else echo $begegnung->heim_spielpunkte . ":" . $begegnung->gast_spielpunkte; ?>
-
-
-
- heim_spielpunkte < $begegnung->gast_spielpunkte) echo "class=\"finished_winner\" "; ?>id="team_gast">gast_name); ?>
-
-
- zeitpunkt); ?>
- - spieltag, $begegnung->unterteilung == 0); ?>
-
-
-
-
-
-
-
- teamspiel_heim_punkte > $spiel->teamspiel_gast_punkte)
- $sieger = 1;
- elseif ($spiel->teamspiel_heim_punkte < $spiel->teamspiel_gast_punkte)
- $sieger = 2;
- else
- $sieger = 0;
- ?>
- ">
-
-
- "; ?>heim_spieler_1_id)) echo $spiel->heim_spieler_1_nachname . ", " . $spiel->heim_spieler_1_vorname;
- if (!empty($spiel->heim_spieler_2_id)) echo " " . $spiel->heim_spieler_2_nachname . ", " . $spiel->heim_spieler_2_vorname; ?>"; ?>
- teamspiel_heim_punkte != 0 || $spiel->teamspiel_gast_punkte != 0) echo $spiel->teamspiel_heim_punkte . ":" . $spiel->teamspiel_gast_punkte; ?>
- "; ?>gast_spieler_1_id)) echo $spiel->gast_spieler_1_nachname . ", " . $spiel->gast_spieler_1_vorname;
- if (!empty($spiel->gast_spieler_2_id)) echo " " . $spiel->gast_spieler_2_nachname . ", " . $spiel->gast_spieler_2_vorname; ?>"; ?>
-
-
-
-
-
- get(SiteApplication::class)->getTemplate() . DIRECTORY_SEPARATOR, JPATH_BASE . DIRECTORY_SEPARATOR);
- foreach ($dirs as $dir) {
- $icon = $dir . 'favicon.ico';
- if (file_exists($icon)) {
- $path = str_replace(JPATH_BASE . DIRECTORY_SEPARATOR, '', $dir);
- $path = str_replace('\\', '/', $path);
- $favicon_url = Uri::base(true) . '/' . $path . 'favicon.ico';
- break;
- }
- }
- ?>
-
-
-
-
- Livescore Ticker
- '; ?>
- " rel="stylesheet"
- type="text/css"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Home
-
-
-
-
-
-
-
-
-
-
-
-
-
- body{
- background: #767676;
- font-family:Verdana, Geneva, sans-serif;
- padding: 2px;
- margin:0px;
- }
-
- a{
- outline: 0;
- }
-
- #wrapper {
- max-width: 1149px;
- min-width: 490px;
- margin-left:auto;
- margin-right:auto;
- position: relative;
- padding-right:481px;
- /*background: url(left_background_pad.png) top left no-repeat;*/
-
- }
-
- #left_page_rround{
-
- width: 6px;
- height: 720px;
- top:0px;
- right:0px;
- position: absolute;
- }
-
- #left_page {
- width: 100%;
- float: left;
- position: relative;
- /*background: url(right_background_pad.png) top right no-repeat ;*/
- }
-
- #right_page {
- width: 478px;
- overflow: hidden;
- position: absolute;
- top: 0px;
- right: 0px;
- -moz-border-radius: 7px;
- -webkit-border-radius: 7px;
- border-radius: 7px;
- behavior: url(components/com_sportsmanager/views/sportsmanager/border-radius.htc);
- background: #DADEDF; /*url(right_page_background.png) top left no-repeat;*/
-
- }
-
- #left_page_header {
- width: 300px;
- height: 55px;
- float: left;
-
- }
-
- h1#pagetitle_text {
- font-size:26px;
- color: #fff;
- float:left;
- margin-top: 10px;
- margin-left: 20px;
- text-decoration:none;
- font-weight:bold;
- text-transform:uppercase;
- margin-bottom: 0px;
- z-index: 20;
- position: relative;
- }
-
- a#homeicon {
-
- background: url(homeicon.jpg) no-repeat;
- height: 20px;
- width: 66px;
- float: right;
- text-decoration:none;
- text-align:right;
- color: #666;
- font-size: 14px;
- line-height: 20px;
- font-weight:bold;
- margin-top: 15px;
- margin-right: 20px;
- padding-top: 1px;
- }
-
- #left_menu {
-
- width: 800px;
- display:block;
- text-align: left;
-
- }
- #table_matches {
- width: 100%;
- display:block;
- }
- #l_menu{
- padding-left: 16px;
- margin: 0px;
- z-index: 9995;
- position:relative;
- }
- #left_menu ul li a span{
-
-
- padding: 4px 4px;
- text-decoration:none;
- display: inline;
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#ffffff;
- cursor:pointer;
-
- }
-
- #left_menu ul li#all_games {
-
- margin-right: 20px;
-
- }
-
- #left_menu ul li{
-
- background:url(right_button.png) top right no-repeat;
- padding: 1px 2px 1px 0px;
- display: block;
- margin-right: 8px;
- float:left;
-
- }
-
- #left_menu ul li a{
-
- background:url(left_button.png) top left no-repeat;
- padding: 1px 0px;
- color:#FFF;
- text-decoration:none;
- cursor:pointer;
- padding-left: 2px;
-
- }
-
- #left_menu ul li#finished a span{
-
- }
- #left_menu ul li#finished {
- background:url(right_button_fin.png) top right no-repeat;
- }
-
- #left_menu ul li#finished a{
- background:url(left_button_fin.png) top left no-repeat;
- }
-
- #left_menu ul li#running a span{
-
- }
- #left_menu ul li#running {
- background:url(right_button_run.png) top right no-repeat;
- }
-
- #left_menu ul li#running a{
- background:url(left_button_run.png) top left no-repeat;
- }
-
- #left_menu ul li#upcoming a span{
-
- }
- #left_menu ul li#upcoming {
- background:url(right_button_upc.png) top right no-repeat;
- }
-
- #left_menu ul li#upcoming a{
- background:url(left_button_upc.png) top left no-repeat;
- }
-
-
- #left_menu ul li:hover a span{
-
-
- padding: 4px 4px;
- text-decoration:none;
- display: inline;
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#ffffff;
- cursor:pointer;
-
- }
-
- #left_menu ul li:hover,#left_menu ul li.active,#left_menu ul li#finished:hover,#left_menu ul li#finished.active,#left_menu ul li#upcoming:hover,#left_menu ul li#upcoming.active,#left_menu ul li#running:hover,#left_menu ul li#running.active{
-
- background:url(right_button_hover.png) top right no-repeat;
- padding: 1px 2px 1px 0px;
- display: inline;
- margin-right: 8px;
-
- }
-
- #left_menu ul li:hover a,#left_menu ul li.active a,#left_menu ul li#finished:hover a,#left_menu ul li#finished.active a,#left_menu ul li#upcoming:hover a,#left_menu ul li#upcoming.active a,#left_menu ul li#running:hover a,#left_menu ul li#running.active a{
-
- background:url(left_button_hover.png) top left no-repeat;
- padding: 1px 0px;
- color:#FFF;
- text-decoration:none;
- cursor:pointer;
- padding-left: 2px;
-
- }
-
- table#tbl {
- width:100%;
- }
- #tbl tr.updated td {
-
- border-bottom: 1px solid #fa9917;
- height: 45px;
- }
- tr.updated>:first-child {
-
- }
- tr.updated>:last-child {
-
- }
-
- #tbl tr.livenow td {
-
- border-bottom: 1px solid #007f3d;
- height: 45px;
- }
- tr.livenow>:first-child {
-
- }
- tr.livenow>:last-child {
-
- }
- #tbl th {
- font-family:Verdana, Geneva, sans-serif;
- font-size: 14px;
- text-decoration:none;
- color:#393939;
- height:25px;
- text-align: center;
- background-color:#c9cfd0;
- }
-
- #tbl tr td {
- font-family:Verdana, Geneva, sans-serif;
- font-size:14px;
- color: #656565;
- text-align: center;
- height: 44px;
- }
- #tbl tr td.matchdate{
- height: 25px;
- text-align:left;
- font-weight:bold;
- font-size: 12px;
- padding-left: 10px;
- color: #fff;
- }
-
- #tbl tr.amatch{
- cursor: pointer;
- }
-
- #detailedresults #tbl tr td{
- font-size: 12px;
- }
-
- #detailedresults #tbl tr.odd td{
- background-color: #f8f8f8;
- text-align: center;
- }
-
- #detailedresults #tbl tr.even td{
- background-color: #fdfdfd;
- text-align: center;
- }
-
- #detailedresults #tbl tr td.num{
- width: 50px;
- }
-
- #detailedresults #tbl tr td.heim{
- width: 150px;
- }
-
- #detailedresults #tbl tr td.ergeb{
- width: 80px;
- font-size: 14px;
- font-weight: bold;
- color: #c42424;
- text-decoration: none;
- }
-
- #detailedresults #tbl tr td.ergeb a{
-
- }
-
- #detailedresults #tbl tr td.gast{
- width: 150px;
- }
- #tbl tr.tablehead td{
- height: 25px;
- font-weight: bold;
- background-color: #C9CFD0;
- font-size: 12px;
- }
- tr.finished.odd {
- background-color:#f1f2f2;
- }
-
- tr.finished.even {
- background-color:#eaecec;
- }
-
- tr.updated {
- background-color:#ffeed7;
- }
-
-
- tr.livenow {
- background-color:#bcf0d5;
- border:10px solid #007f3d;
- }
-
- tr.upcoming.odd {
- background-color:#dde8f3;
- }
- tr.upcoming.even {
- background-color:#d1e0ef;
- }
-
- #tbl tr td.finished_winner {
- color: #393939;
- font-weight:bold;
- }
-
- #match_round {
-
- min-width: 51px;
- height: 25px;
- text-align: center;
- background-image:url(match_status.png);
- background-position: center center;
- background-repeat: no-repeat;
- }
-
- #date_time {
- min-width: 51px;
- }
- #match_status_finished {
- min-width: 46px;
- height: 19px;
- background-image:url(fin_icon.png);
- background-position: center center;
- background-repeat: no-repeat;
-
- }
-
- #match_status_updated{
- min-width: 46px;
- height: 19px;
- background-image:url(upd_icon.png);
- background-position: center center;
- background-repeat: no-repeat;
- }
-
- #match_status_livenow {
- min-width: 46px;
- height: 19px;
- background-image:url(live_icon.png);
- background-position: center center;
- background-repeat: no-repeat;
- }
-
- #match_status_upcoming {
- min-width: 46px;
- height: 19px;
- background-image:url(upc_icon.png);
- background-position: center center;
- background-repeat: no-repeat;
- }
-
-
- tr.last_row {
- background-color:#c9cfd0;
- height:20px;
- }
-
- #tbl tr td#last_row {
- background-color:#c9cfd0;
- height: 25px;
- }
-
- #team_heim {
-
- }
-
- #team_gast {
-
-
- }
-
- #match_resultat {
- width:150px;
- margin-left:auto;
- margin-right: auto;
- }
-
- #team_heim_logo {
- width: 30px;
- height: 30px;
- float:left;
- margin-right: 5px;
- }
-
- tr.finished.odd #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- font-weight:bold;
- text-align:center;
- color: #c42424;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- tr.finished.even #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- font-weight:bold;
- text-align:center;
- color: #c42424;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- tr.updated #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- font-weight:bold;
- text-align:center;
- color: #fa9917;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- tr.livenow #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- font-weight:bold;
- text-align:center;
- color: #007f3d;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- tr.upcoming.odd #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- text-align:center;
- color: #3a3a3a;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- tr.upcoming.even #resultat_holder {
- width: 78px;
- height: 25px;
- background:url(result_holder.png) center center no-repeat;
- float:left;
- font-size: 19px;
- font:Verdana, Geneva, sans-serif;
- text-align:center;
- color: #3a3a3a;
- padding-top: 3px;
- padding-bottom: 2px;
- }
-
- #team_gast_logo {
- width: 30px;
- height: 30px;
- float:left;
- margin-left: 5px;
- }
-
- #combobox {
- width: 100px;
- padding-left: 16px;
- padding-top: 8px;
- float:left;
- margin-top: 10px;
- }
-
- #results_button {
- width: 280px;
- background:url(see_results_btn_right.png) right center no-repeat;
- margin-right: 46px;
- float:right;
- font-family:Verdana, Geneva, sans-serif;
- font-size: 14px;
- color:#fff;
- font-weight:bold;
- text-align:center;
- cursor: pointer;
- padding-right: 11px;
- margin-top: 10px;
-
- }
- #results_button_right{
- height: 30px;
- padding-top: 16px;
- background:url(see_results_btn.png) left center no-repeat;
- padding-left: 11px;
- }
- #right_page_header {
- width: 460px;
- height: 54px;
-
- }
-
- #right_menu {
-
- width: 460px;
- display:block;
- text-align: left;
-
- }
-
- #r_menu{
- padding-left: 23px;
- margin: 0px;
- }
- #right_menu ul li a span{
-
-
- padding: 4px 4px;
- text-decoration:none;
- display: inline;
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#ffffff;
- cursor:pointer;
-
- }
-
- #right_menu ul li#eliminations {
-
- margin-right: 134px;
-
- }
-
- #right_menu ul li{
-
- background:url(right_button.png) top right no-repeat;
- padding: 1px 2px 2px 0px;
- display: block;
- margin-right: 8px;
- float:left;
-
- }
-
- #right_menu ul li a{
-
- background:url(left_button.png) top left no-repeat;
- padding: 1px 0px 2px 2px;
- color:#FFF;
- text-decoration:none;
- cursor:pointer;
- }
-
-
- #right_menu ul li#finalranking a span{
-
- }
- #right_menu ul li#finalranking {
- background:url(right_button_fin.png) top right no-repeat;
- }
-
- #right_menu ul li#finalranking a{
- background:url(left_button_fin.png) top left no-repeat;
- }
-
-
- #right_menu ul li:hover a span{
-
-
- padding: 4px 4px;
- text-decoration:none;
- display: inline;
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#ffffff;
- cursor:pointer;
-
- }
-
- #right_menu ul li:hover,#right_menu ul li.active, #right_menu ul li#finalranking:hover,#right_menu ul li#finalranking.active{
-
- background:url(right_button_hover.png) top right no-repeat;
- padding: 1px 2px 2px 0px;
- display: inline;
- margin-right: 8px;
-
- }
-
- #right_menu ul li:hover a,#right_menu ul li.active a, #right_menu ul li#finalranking:hover a,#right_menu ul li#finalranking.active a{
-
- background:url(left_button_hover.png) top left no-repeat;
- padding: 1px 0px 2px 2px;
- color:#FFF;
- text-decoration:none;
- cursor:pointer;
- padding-left: 2px;
-
- }
- #chart_matches {
-
- width: 460px;
- height: 500px;
- display:block;
-
- }
-
- .grey_button{
- background:#C9CFD0;
- width:153px;
- height:22px;
- text-align:center;
- cursor:pointer;
- float:left;
-
- }
- .grey_button a{
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#393939;
- text-decoration:none;
-
- }
- #tab_groups{
- background:url(tab_groups.png) top left no-repeat;
- width:105px;
- height:20px;
- position:absolute;
- top:57px;
- left:23px;
- padding-left: 9px;
- cursor:pointer;
- }
- #tab_elimination{
- background:url(tab_groups.png) top left no-repeat;
- width:105px;
- height:20px;
- position:absolute;
- top:57px;
- left:131px;
- padding-left: 9px;
- cursor:pointer;
- }
- #tab_elimination:hover,#tab_groups:hover{
- background:url(tab_eliminations.png) top left no-repeat;
- }
- #tab_groups a{
- text-decoration:none;
- font-size:14px;
- color:#FFF;
- }
- #tab_elimination a{
- text-decoration:none;
- font-size:14px;
- color:#FFF;
- }
- #heading{
- background-color:#c9cfd0;
-
- }
- #heading td{
- font-family:Verdana, Geneva, sans-serif;
- font-size:14px;
- color:#393939;
- padding: 2px 10px 2px 10px;
- }
- #heading td#points{
- padding-left: 40px;
- padding-right: 40px;
- }
- .groups td{
- font-family:Verdana, Geneva, sans-serif;
- font-size:14px;
- color:#000;
- padding: 2px 20px 2px 20px;
- text-align:center;
- }
- table.groups{
- width: 460px;
- }
- #groups2{
- padding-top: 0px;
- display: block;
- overflow-y: scroll;
- }
-
- #groups2.matchdetail{
- overflow: hidden;
- }
-
- #scheme{
- background:url(sheme1.png) top left no-repeat;
- width:456px;
- margin-left: 2px;
- height:465px;
- position:relative;
- font-family:Verdana, Geneva, sans-serif;
- clear: both;
- }
- #winner_area{
- width:455px;
- }
- .field_team{
- width:140px;
- height:30px;
- font-size:12px;
- color:#6f6f6f;
- padding-top:2px;
- }
- .field_team img{
- margin-left: 2px;
- margin-top: 0px;
- margin-right: 2px;
- float:left;
-
- }
- #team1{
- position:absolute;
- top:9px;
- left:8px;
- }
- .field_team span{
- float:left;
- width: 105px;
- }
- #team2{
- position:absolute;
- top:68px;
- left:8px;
- }
- .field_score{
- background:#c0d3eb;
- width:109px;
- height:21px;
- padding-left:27px;
- padding-top: 5px;
- border-left:1px solid #c0d3eb;
- border-right:1px solid #c0d3eb;
- }
- #result{
- font-family:Verdana, Geneva, sans-serif;
- width:46px;
- height:14px;
- border:1px solid #e8e8e8;
- background-color:#FFF;
- float:left;
- margin-left: 4px;
- margin-right: 4px;
- text-align:center;
- font-size:12px;
- color:#000;
- font-weight:bold;
- }
- #result1{
- position:absolute;
- top:42px;
- left:9px;
- }
- #result2{
- position:absolute;
- top:160px;
- left:9px;
- }
- #result3{
- position:absolute;
- top:278px;
- left:9px;
- }
- #result4{
- position:absolute;
- top:397px;
- left:9px;
- }
- #result5{
- position:absolute;
- top:101px;
- left:160px;
- }
- #result6{
- position:absolute;
- top:342px;
- left:160px;
- }
- #result7{
- position:absolute;
- top:221px;
- left:311px;
- }
- #result8{
- position:absolute;
- top:397px;
- left:311px;
- }
- #team3{
- position:absolute;
- top:126px;
- left:8px;
- }
- #team4{
- position:absolute;
- top:187px;
- left:8px;
- }
- #team5{
- position:absolute;
- top:244px;
- left:8px;
- }
- #team6{
- position:absolute;
- top:303px;
- left:8px;
- }
- #team7{
- position:absolute;
- top:363px;
- left:8px;
- }
- #team8{
- position:absolute;
- top:422px;
- left:8px;
- }
- #team9{
- position:absolute;
- top:68px;
- left:159px;
- }
- #team10{
- position:absolute;
- top:127px;
- left:159px;
- }
- #team11{
- position:absolute;
- top:310px;
- left:159px;
- }
- #team12{
- position:absolute;
- top:368px;
- left:159px;
- }
- #team13{
- position:absolute;
- top:187px;
- left:310px;
- }
- #team14{
- position:absolute;
- top:246px;
- left:310px;
- }
- #team15{
- position:absolute;
- top:363px;
- left:310px;
- }
- #team16{
- position:absolute;
- top:422px;
- left:310px;
- }
- .strike_through span{
- text-decoration: line-through;
- }
- .winner_bold{
- font-weight:bold;
- color:#000;
- }
- .field_score img{
- float:left;
- }
- .livenow_match{
- background-color:#bcf0d5;
- border-left:1px solid #0c8546;
- border-right:1px solid #0c8546;
- color:#007f3d;
- }
- .finished_match{
- background-color:#c42424;
- border-left:1px solid #c93d3d;
- border-right:1px solid #c93d3d;
- color:#c42424;
- }
- .livenow_match #result{
- color:#007f3d;
- }
- .finished_match #result{
- color:#c42424;
- }
- .place_final{
- width:120px;
- height:17px;
- font-size:14px;
- color:#FFF;
- padding-left: 27px;
- padding-top:2px;
-
- }
- #place_position1{
- position:absolute;
- top:158px;
- left:310px;
- }
- #place_position3{
- position:absolute;
- top:334px;
- left:310px;
- }
- #winner_area_heading{
- font-family:Verdana, Geneva, sans-serif;
- background-color:#656565;
- width:455px;
- height:19px;
- margin-left:2px;
- margin-top:7px;
- color:#FFF;
- text-transform:uppercase;
- font-size:14px;
- text-align:center;
- padding-top:3px;
- }
- #winner_area_positions{
- font-family:Verdana, Geneva, sans-serif;
- background-color:#FFF;
- width:453px;
- padding-bottom: 2px;
- margin-left:2px;
- border-left:1px solid #e5e5e5;
- border-right:1px solid #e5e5e5;
- position:relative;
- margin-bottom: 5px;
- }
- #cup{
- background:url(cup.png) top left no-repeat;
- width:30px;
- height:38px;
- position:absolute;
- top:5px;
- left:409px;
- }
- #view_all_results{
- background:url(btn_view_results.png) top left no-repeat;
- width:170px;
- height:22px;
- position:absolute;
- top:63px;
- left:275px;
- color:#FFF;
- font-family:Verdana, Geneva, sans-serif;
- font-size:14px;
- text-align:center;
- padding-top:3px;
- font-weight:bold;
- cursor:pointer;
- }
- #winner, #winner_name{
- font-family:Verdana, Geneva, sans-serif;
- font-size:20px;
- color:#656565;
- padding-left: 7px;
- }
- #first_position img{
- margin-top: 3px;
- }
- #second_position, #third_position{
- width:300px;
- }
- #second_position span, #third_position span{
- font-family:Verdana, Geneva, sans-serif;
- font-size:14px;
- color:#656565;
- padding-left: 7px;
- }
- #second_position img, #third_position img{
- margin-left: 9px;
- }
-
- #mid_page_round{
- background: #dadedf;
- overflow: hidden;
- -moz-border-radius: 7px;
- -webkit-border-radius: 7px;
- border-radius: 7px;
- behavior: url(components/com_sportsmanager/views/sportsmanager/border-radius.htc);
- z-index: 0;
- }
- #last_row span{
- cursor: pointer;
- font-size: 14px;
- color: #7e8283;
- }
- #last_row span#curr{
- font-weight: bold;
- font-size: 14px;
- }
- #last_row span#nextpage{
- padding-right: 19px;
- background: url(next.jpg) center right no-repeat;
- font-size: 14px;
- font-weight: bold;
- }
- #last_row span#prevpage{
- padding-left: 19px;
- background: url(prev.jpg) center left no-repeat;
- font-size: 14px;
- font-weight: bold;
- }
- #fedlogo{
- width: 139px;
- height: 69px;
- position: absolute;
- top: 195px;
- left: 159px;
- }
- #sponsorz{
- background: #C9CFD0;
- height: 45px;
- width: 450px;
- position: absolute;
- left: 10px;
- top: 7px;
- z-index:10;
- cursor: pointer;
- }
- #sponsorz img{
- width: 100%;
- height: auto;
- }
- #left_menu ul li{
- z-index:9996;
- }
- #left_menu ul li a{
- z-index:9997;
- }
- #left_menu ul li a span{
- z-index:9998;
- }
-
- @media only screen and (max-width:1200px){
-
- #tbl th,#tbl tr td {
- font-size: 12px;
- }
- }
-
- @media only screen and (max-width:1030px){
-
- #sponsorz{
- width: 390px;
- height: 39px;
- }
- }
- This function is responsible for display of the left table matches
- static function veranstaltungenTickerPrintable($matchez): void
- {
- $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
-
- echo '
-
- ' . Text::_('COM_SPORTSMANAGER_DATE') . '
- ' . Text::_('COM_SPORTSMANAGER_ROUND') . '
- ' . Text::_('COM_SPORTSMANAGER_TEAM_HOME') . '
- ' . Text::_('COM_SPORTSMANAGER_RESULT') . '
- ' . Text::_('COM_SPORTSMANAGER_TEAM_VISITOR') . '
- '; ?>
-
-
-
-
- class="finished_winner">
-
-
-
- class="finished_winner">
-
-
-
-
-
-
-
-
-
-
-
-
- This function is responsible for display of the groups qualification results
- static function veranstaltungenTickerPrintgtable($teamz, $group): void
- {
- $punkte_anzeigen = false;
- if (isset($teamz[0]['score']))
- $punkte_anzeigen = true;
- $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
- if (!empty($teamz)) {
- echo '
-
- ' . Text::_('COM_SPORTSMANAGER_PLACE') . '
-
- ' . $group . '
- ' . ($punkte_anzeigen ? Text::_('COM_SPORTSMANAGER_POINTS') : ' ') . '
- ';
- foreach ($teamz as $team) {
- ?>
-
-
-
-
-
-
-
-
-
-
- This function is responsible for display of the right elimination chart
- static function veranstaltungenTickerPrinteliminations($matchez): void
- {
- $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
- if (!empty($matchez)) {
-
- echo '
-
-
-
';
- $matchcount = 0;
- foreach ($matchez as $match) {
- $matchcount++;
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This function is responsible for display of the right top3 end results after the elimination chart
- static function veranstaltungenTickerPrintop3($teamz): void
- {
- if (!empty($teamz)) {
- ?>
-
-
-
-
-
-
1.
-
-
- 2.
-
-
- 3.
-
-
-
-
- begegnung_id;
+ $zeitpunkt_ts = strtotime($begegnung->zeitpunkt);
+ $datum = date("j. M", $zeitpunkt_ts);
+ $zeit = date("H:i", $zeitpunkt_ts);
+ if ($begegnung->zwischenergebnis)
+ $status = 'livenow';
+ elseif (!empty($begegnung->heim_spielpunkte) || !empty($begegnung->gast_spielpunkte))
+ $status = 'finished';
+ elseif ($begegnung->verlegung_eingetragen)
+ continue;
+ else
+ $status = 'upcoming';
+ $spieltag = Rundenbezeichnung($begegnung->spieltag, $begegnung->unterteilung == 0, false, true);
+ $gewinner = $begegnung->heim_spielpunkte > $begegnung->gast_spielpunkte ? 1 : ($begegnung->heim_spielpunkte < $begegnung->gast_spielpunkte ? 2 : 0);
+ $heim_name = $begegnung->heim_name;
+ $gast_name = $begegnung->gast_name;
+ $heim_spielpunkte = $begegnung->heim_spielpunkte;
+ $gast_spielpunkte = $begegnung->gast_spielpunkte;
+ $heim_logo = bildHTML("mannschaften", $begegnung->heim_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
+ $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
+ $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
+ $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
+ $matchez[] = array('id' => $id, 'status' => $status, 'day' => $datum, 'hour' => $zeit, 'round' => $spieltag, 'winner' => $gewinner, 'team1' => $heim_name, 'team2' => $gast_name, 'logo1' => $heim_logo, 'logo2' => $gast_logo, 'score1' => $heim_spielpunkte, 'score2' => $gast_spielpunkte);
+ }
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintable($matchez); // feeding the array to the function it prints the right table
+ } elseif ($type == "groups") { // when right side groups have to be updated the script is called with type=groups
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
+ ?>
+
+ $veranstaltung) {
+ if ($index == $veranstaltung_elimination_index)
+ continue;
+ $teamz = array();
+ $punkte_anzeigen = false;
+ if (count($tabellen[$index]) > 0 && $tabellen[$index][0]->gesamtpunkte != NULL)
+ $punkte_anzeigen = true;
+ foreach ($tabellen[$index] as $mannschaft) {
+ $logo = bildHTML("mannschaften", $mannschaft->team_id, 17, 17, 0, 0, 'border="0"');
+ if (empty($logo) && !empty($mannschaft->verein_id))
+ $logo = bildHTML("vereine", $mannschaft->verein_id, 17, 17, 0, 0, 'border="0"');
+ if ($punkte_anzeigen)
+ $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname, 'score' => floatval($mannschaft->gesamtpunkte));
+ else
+ $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
+ }
+
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintgtable($teamz, $veranstaltung->bezeichnung);
+ }
+ ?>
+
+ 'upcoming', 'winner' => 0, 'team1' => '', 'team2' => '', 'blogo1' => null, 'blogo2' => null, 'slogo1' => null, 'slogo2' => null, 'score1' => '', 'score2' => '', 'placeholder' => true));
+ foreach ($begegnungen as $begegnung) {
+ $spieltag = $begegnung->spieltag;
+ if ($spieltag == 19999 || $spieltag == 29898) // Finale
+ $begegnung_index = 6;
+ elseif ($spieltag == 19998 || $spieltag == 29896) // Platz 3
+ $begegnung_index = 7;
+ elseif ($spieltag == 19997 || $spieltag == 29698) { // Halb
+ if (isset($matchez[4]['placeholder']))
+ $begegnung_index = 4;
+ else
+ $begegnung_index = 5;
+ } elseif ($spieltag == 19996 || $spieltag == 29298) { // Viertel
+ if (isset($matchez[0]['placeholder']))
+ $begegnung_index = 0;
+ elseif (isset($matchez[1]['placeholder']))
+ $begegnung_index = 1;
+ elseif (isset($matchez[2]['placeholder']))
+ $begegnung_index = 2;
+ else
+ $begegnung_index = 3;
+ } else
+ continue;
+ if ($begegnung->zwischenergebnis)
+ $status = 'livenow';
+ elseif (!empty($begegnung->heim_spielpunkte) || !empty($begegnung->gast_spielpunkte))
+ $status = 'finished';
+ elseif ($begegnung->verlegung_eingetragen)
+ continue;
+ else
+ $status = 'upcoming';
+ $gewinner = $begegnung->heim_spielpunkte > $begegnung->gast_spielpunkte ? 1 : ($begegnung->heim_spielpunkte < $begegnung->gast_spielpunkte ? 2 : 0);
+ $heim_name = $begegnung->heim_name;
+ $gast_name = $begegnung->gast_name;
+ $heim_spielpunkte = $begegnung->heim_spielpunkte;
+ $gast_spielpunkte = $begegnung->gast_spielpunkte;
+ $heim_logo = bildHTML("mannschaften", $begegnung->heim_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
+ $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
+ $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
+ $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
+ $heim_logo_klein = bildHTML("mannschaften", $begegnung->heim_team_id, 17, 17, 0, 0, 'border="0"');
+ if (empty($heim_logo_klein) && !empty($begegnung->heim_verein_id))
+ $heim_logo_klein = bildHTML("vereine", $begegnung->heim_verein_id, 17, 17, 0, 0, 'border="0"');
+ $gast_logo_klein = bildHTML("mannschaften", $begegnung->gast_team_id, 17, 17, 0, 0, 'border="0"');
+ if (empty($gast_logo_klein) && !empty($begegnung->gast_verein_id))
+ $gast_logo_klein = bildHTML("vereine", $begegnung->gast_verein_id, 17, 17, 0, 0, 'border="0"');
+ $matchez[$begegnung_index] = array('status' => $status, 'winner' => $gewinner, 'team1' => $heim_name, 'team2' => $gast_name, 'blogo1' => $heim_logo, 'blogo2' => $gast_logo, 'slogo1' => $heim_logo_klein, 'slogo2' => $gast_logo_klein, 'score1' => $heim_spielpunkte, 'score2' => $gast_spielpunkte);
+ }
+ // Adjust order so the tree fits
+ // 1/4 Finals: matchez[0..3], 1/2 Finals: matchez[4..5], Final: matchez[6], 3rd Place: matchez[7]
+ $tmatchez = $matchez;
+ for ($i = 4; $i <= 5; $i++) {
+ $offset = 0;
+ if (!isset($tmatchez[$i]['placeholder'])) {
+ for ($j = 0; $j <= 3 && $offset < 2; $j++) {
+ if (!isset($tmatchez[$j]['placeholder'])) {
+ if ($tmatchez[$i]['team1'] == $tmatchez[$j]['team1'] || $tmatchez[$i]['team1'] == $tmatchez[$j]['team2'] || $tmatchez[$i]['team2'] == $tmatchez[$j]['team1'] || $tmatchez[$i]['team2'] == $tmatchez[$j]['team2']) {
+ $matchez[($i - 4) * 2 + $offset++] = $tmatchez[$j];
+ }
+ }
+ }
+ }
+ while ($offset < 2)
+ $matchez[($i - 4) * 2 + $offset++] = array('status' => 'upcoming', 'winner' => 0, 'team1' => '', 'team2' => '', 'blogo1' => null, 'blogo2' => null, 'slogo1' => null, 'slogo2' => null, 'score1' => '', 'score2' => '', 'placeholder' => true);
+ }
+
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrinteliminations($matchez); // called to display right elimination table
+
+ $teamz = array();
+ if ($veranstaltung_elimination_index != -1) {
+ $platz = 1;
+ foreach ($tabellen[$veranstaltung_elimination_index] as $mannschaft) {
+ if ($mannschaft->platz > 3 || $mannschaft->platz != $platz)
+ break;
+ $groesse = 30;
+ $logo = bildHTML("mannschaften", $mannschaft->team_id, $groesse, $groesse, 0, 0, 'border="0"');
+ if (empty($logo) && !empty($mannschaft->verein_id))
+ $logo = bildHTML("vereine", $mannschaft->verein_id, $groesse, $groesse, 0, 0, 'border="0"');
+ $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
+ $platz++;
+ }
+ if (count($teamz) != 3)
+ $teamz = array();
+ }
+
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintop3($teamz); // called to display right top 3 results
+ } elseif ($type == "finalranking") {
+ $teamz = array();
+ $veranstaltung_titel = Text::_('COM_FINAL_RANKING');
+ if ($veranstaltung_elimination_index != -1) {
+ foreach ($tabellen[$veranstaltung_elimination_index] as $mannschaft) {
+ $logo = bildHTML("mannschaften", $mannschaft->team_id, 17, 17, 0, 0, 'border="0"');
+ if (empty($logo) && !empty($mannschaft->verein_id))
+ $logo = bildHTML("vereine", $mannschaft->verein_id, 17, 17, 0, 0, 'border="0"');
+ $teamz[] = array('place' => $mannschaft->platz, 'logo' => $logo, 'name' => $mannschaft->teamname);
+ }
+ $veranstaltung_titel = $veranstaltungen[$veranstaltung_elimination_index]->bezeichnung;
+ }
+
+ HTML_sportsmanager_ticker::veranstaltungenTickerPrintRightheader($view_right);
+ ?>
+
+
+
+ heim_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($heim_logo) && !empty($begegnung->heim_verein_id))
+ $heim_logo = bildHTML("vereine", $begegnung->heim_verein_id, 30, 30, 0, 0, 'border="0"');
+ $gast_logo = bildHTML("mannschaften", $begegnung->gast_team_id, 30, 30, 0, 0, 'border="0"');
+ if (empty($gast_logo) && !empty($begegnung->gast_verein_id))
+ $gast_logo = bildHTML("vereine", $begegnung->gast_verein_id, 30, 30, 0, 0, 'border="0"');
+ ?>
+
+
+
+
+
+
+
+
+ heim_spielpunkte > $begegnung->gast_spielpunkte) echo "class=\"finished_winner\" "; ?>id="team_heim">heim_name); ?>
+
+
+
+
zwischenergebnis && empty($begegnung->heim_spielpunkte) && empty($begegnung->gast_spielpunkte)) echo "--|--"; else echo $begegnung->heim_spielpunkte . ":" . $begegnung->gast_spielpunkte; ?>
+
+
+
+ heim_spielpunkte < $begegnung->gast_spielpunkte) echo "class=\"finished_winner\" "; ?>id="team_gast">gast_name); ?>
+
+
+ zeitpunkt); ?>
+ - spieltag, $begegnung->unterteilung == 0); ?>
+
+
+
+
+
+
+
+ teamspiel_heim_punkte > $spiel->teamspiel_gast_punkte)
+ $sieger = 1;
+ elseif ($spiel->teamspiel_heim_punkte < $spiel->teamspiel_gast_punkte)
+ $sieger = 2;
+ else
+ $sieger = 0;
+ ?>
+ ">
+
+
+ "; ?>heim_spieler_1_id)) echo $spiel->heim_spieler_1_nachname . ", " . $spiel->heim_spieler_1_vorname;
+ if (!empty($spiel->heim_spieler_2_id)) echo " " . $spiel->heim_spieler_2_nachname . ", " . $spiel->heim_spieler_2_vorname; ?>"; ?>
+ teamspiel_heim_punkte != 0 || $spiel->teamspiel_gast_punkte != 0) echo $spiel->teamspiel_heim_punkte . ":" . $spiel->teamspiel_gast_punkte; ?>
+ "; ?>gast_spieler_1_id)) echo $spiel->gast_spieler_1_nachname . ", " . $spiel->gast_spieler_1_vorname;
+ if (!empty($spiel->gast_spieler_2_id)) echo " " . $spiel->gast_spieler_2_nachname . ", " . $spiel->gast_spieler_2_vorname; ?>"; ?>
+
+
+
+
+
+ get(SiteApplication::class)->getTemplate() . DIRECTORY_SEPARATOR, JPATH_BASE . DIRECTORY_SEPARATOR);
+ foreach ($dirs as $dir) {
+ $icon = $dir . 'favicon.ico';
+ if (file_exists($icon)) {
+ $path = str_replace(JPATH_BASE . DIRECTORY_SEPARATOR, '', $dir);
+ $path = str_replace('\\', '/', $path);
+ $favicon_url = Uri::base(true) . '/' . $path . 'favicon.ico';
+ break;
+ }
+ }
+ ?>
+
+
+
+
+
Livescore Ticker
+ '; ?>
+
" rel="stylesheet"
+ type="text/css"/>
+
+
+
+
+
+
+
+
+ ⚙️
+ ☀️
+ 🌙
+
+
+
+
+
+
+
+
+
+
Home
+
+
+
+
+
+
+
+
+
+
+
+
+
+ :root {
+ --body-bg: #767676;
+ --font-family: Verdana, Geneva, sans-serif;
+ --wrapper-bg-image: url(left_background_pad.png);
+ --right-page-bg: #DADEDF;
+ --right-page-bg-image: url(right_page_background.png);
+ --pagetitle-text-color: #fff;
+ --homeicon-bg-image: url(homeicon.jpg);
+ --homeicon-text-color: #666;
+ --menu-link-span-color: #ffffff;
+ --menu-link-color: #FFF;
+ --button-right-bg-image: url(right_button.png);
+ --button-left-bg-image: url(left_button.png);
+ --button-right-fin-bg-image: url(right_button_fin.png);
+ --button-left-fin-bg-image: url(left_button_fin.png);
+ --button-right-run-bg-image: url(right_button_run.png);
+ --button-left-run-bg-image: url(left_button_run.png);
+ --button-right-upc-bg-image: url(right_button_upc.png);
+ --button-left-upc-bg-image: url(left_button_upc.png);
+ --button-hover-right-bg-image: url(right_button_hover.png);
+ --button-hover-left-bg-image: url(left_button_hover.png);
+ --tbl-updated-border-color: #fa9917;
+ --tbl-livenow-border-color: #007f3d;
+ --tbl-th-text-color: #393939;
+ --tbl-th-bg-color: #c9cfd0;
+ --tbl-td-text-color: #656565;
+ --tbl-td-matchdate-text-color: #fff;
+ --detailed-results-odd-bg: #f8f8f8;
+ --detailed-results-even-bg: #fdfdfd;
+ --detailed-results-ergeb-text-color: #c42424;
+ --tbl-tablehead-td-bg-color: #C9CFD0;
+ --tr-finished-odd-bg: #f1f2f2;
+ --tr-finished-even-bg: #eaecec;
+ --tr-updated-bg: #ffeed7;
+ --tr-livenow-bg: #bcf0d5;
+ --tr-livenow-border-color: #007f3d;
+ --tr-upcoming-odd-bg: #dde8f3;
+ --tr-upcoming-even-bg: #d1e0ef;
+ --tbl-td-finished-winner-text-color: #393939;
+ --match-round-bg-image: url(match_status.png);
+ --match-status-finished-bg-image: url(fin_icon.png);
+ --match-status-updated-bg-image: url(upd_icon.png);
+ --match-status-livenow-bg-image: url(live_icon.png);
+ --match-status-upcoming-bg-image: url(upc_icon.png);
+ --last-row-bg-color: #c9cfd0;
+ --resultat-holder-bg-image: url(result_holder.png);
+ --resultat-holder-finished-text-color: #c42424;
+ --resultat-holder-updated-text-color: #fa9917;
+ --resultat-holder-livenow-text-color: #007f3d;
+ --resultat-holder-upcoming-text-color: #3a3a3a;
+ --results-button-bg-image: url(see_results_btn_right.png);
+ --results-button-text-color: #fff;
+ --results-button-right-bg-image: url(see_results_btn.png);
+ --grey-button-bg: #C9CFD0;
+ --grey-button-text-color: #393939;
+ --tab-groups-bg-image: url(tab_groups.png);
+ --tab-elimination-hover-bg-image: url(tab_eliminations.png);
+ --tab-text-color: #FFF;
+ --heading-bg-color: #c9cfd0;
+ --heading-td-text-color: #393939;
+ --groups-td-text-color: #000;
+ --scheme-bg-image: url(sheme1.png);
+ --field-team-text-color: #6f6f6f;
+ --field-score-bg: #c0d3eb;
+ --field-score-border-color: #c0d3eb;
+ --result-border-color: #e8e8e8;
+ --result-bg-color: #FFF;
+ --result-text-color: #000;
+ --winner-bold-text-color: #000;
+ --livenow-match-bg: #bcf0d5;
+ --livenow-match-border-color: #0c8546;
+ --livenow-match-text-color: #007f3d;
+ --finished-match-bg: #c42424;
+ --finished-match-border-color: #c93d3d;
+ --finished-match-text-color: #c42424;
+ --place-final-text-color: #FFF;
+ --winner-area-heading-bg: #656565;
+ --winner-area-heading-text-color: #FFF;
+ --winner-area-positions-bg: #FFF;
+ --winner-area-positions-border-color: #e5e5e5;
+ --cup-bg-image: url(cup.png);
+ --view-all-results-bg-image: url(btn_view_results.png);
+ --view-all-results-text-color: #FFF;
+ --winner-text-color: #656565;
+ --mid-page-round-bg: #dadedf;
+ --last-row-span-text-color: #7e8283;
+ --sponsorz-bg: #C9CFD0;
+ --theme-switcher-button-bg: #f0f0f0;
+ --theme-switcher-button-text-color: #333;
+ --theme-switcher-button-hover-bg: #e0e0e0;
+ --theme-switcher-button-active-bg: #d0d0d0;
+ }
+
+ body[data-theme="dark"] {
+ --body-bg: #333333;
+ --right-page-bg: #252525;
+ --pagetitle-text-color: #eeeeee;
+ --homeicon-text-color: #bbbbbb;
+ --menu-link-span-color: #eeeeee;
+ --menu-link-color: #dddddd;
+ --tbl-updated-border-color: #ffa500; /* Slightly brighter orange */
+ --tbl-livenow-border-color: #00aa55; /* Slightly brighter green */
+ --tbl-th-text-color: #eeeeee;
+ --tbl-th-bg-color: #444444;
+ --tbl-td-text-color: #cccccc;
+ --tbl-td-matchdate-text-color: #eeeeee;
+ --detailed-results-odd-bg: #3a3a3a;
+ --detailed-results-even-bg: #404040;
+ --detailed-results-ergeb-text-color: #ff5555; /* Brighter red */
+ --tbl-tablehead-td-bg-color: #444444;
+ --tr-finished-odd-bg: #4a4a4a;
+ --tr-finished-even-bg: #505050;
+ --tr-updated-bg: #594a3a; /* Darker orange tone */
+ --tr-livenow-bg: #3a594a; /* Darker green tone */
+ --tr-livenow-border-color: #00aa55;
+ --tr-upcoming-odd-bg: #404a5a; /* Darker blue tone */
+ --tr-upcoming-even-bg: #4a5060; /* Darker blue tone */
+ --tbl-td-finished-winner-text-color: #eeeeee;
+ --last-row-bg-color: #444444;
+ --resultat-holder-finished-text-color: #ff5555;
+ --resultat-holder-updated-text-color: #ffa500;
+ --resultat-holder-livenow-text-color: #00aa55;
+ --resultat-holder-upcoming-text-color: #bbbbbb;
+ --results-button-text-color: #eeeeee;
+ --grey-button-bg: #555555;
+ --grey-button-text-color: #eeeeee;
+ --tab-text-color: #eeeeee;
+ --heading-bg-color: #444444;
+ --heading-td-text-color: #eeeeee;
+ --groups-td-text-color: #dddddd;
+ --field-team-text-color: #bbbbbb;
+ --field-score-bg: #4a5060; /* Darker blue tone for score bg */
+ --field-score-border-color: #4a5060;
+ --result-border-color: #555555;
+ --result-bg-color: #333333;
+ --result-text-color: #eeeeee;
+ --winner-bold-text-color: #eeeeee;
+ --livenow-match-bg: #3a594a;
+ --livenow-match-border-color: #00aa55;
+ --livenow-match-text-color: #00aa55;
+ --finished-match-bg: #5a3a3a; /* Darker red tone */
+ --finished-match-border-color: #ff5555;
+ --finished-match-text-color: #ff5555;
+ --place-final-text-color: #eeeeee;
+ --winner-area-heading-bg: #555555;
+ --winner-area-heading-text-color: #eeeeee;
+ --winner-area-positions-bg: #333333;
+ --winner-area-positions-border-color: #555555;
+ --view-all-results-text-color: #eeeeee;
+ --winner-text-color: #cccccc;
+ --mid-page-round-bg: #252525;
+ --last-row-span-text-color: #bbbbbb;
+ --sponsorz-bg: #444444;
+ --theme-switcher-button-bg: #505050;
+ --theme-switcher-button-text-color: #eeeeee;
+ --theme-switcher-button-hover-bg: #606060;
+ --theme-switcher-button-active-bg: #707070;
+
+ /* Image URLs are kept the same; consider creating dark versions or using CSS filters if needed */
+ }
+
+ body{
+ background: var(--body-bg);
+ font-family: var(--font-family);
+ padding: 2px;
+ margin:0px;
+ }
+
+ a{
+ outline: 0;
+ }
+
+ #wrapper {
+ max-width: 1149px;
+ min-width: 490px;
+ margin-left:auto;
+ margin-right:auto;
+ position: relative;
+ padding-right:481px;
+ /*background: var(--wrapper-bg-image) top left no-repeat;*/
+
+ }
+
+ #left_page_rround{
+
+ width: 6px;
+ height: 720px;
+ top:0px;
+ right:0px;
+ position: absolute;
+ }
+
+ #left_page {
+ width: 100%;
+ float: left;
+ position: relative;
+ /*background: var(--wrapper-bg-image) top right no-repeat ;*/ /* Assuming same image as wrapper */
+ }
+
+ #right_page {
+ width: 478px;
+ overflow: hidden;
+ position: absolute;
+ top: 0px;
+ right: 0px;
+ -moz-border-radius: 7px;
+ -webkit-border-radius: 7px;
+ border-radius: 7px;
+ behavior: url(components/com_sportsmanager/views/sportsmanager/border-radius.htc);
+ background: var(--right-page-bg); /*url(var(--right-page-bg-image)) top left no-repeat;*/
+
+ }
+
+ #left_page_header {
+ width: 300px;
+ height: 55px;
+ float: left;
+
+ }
+
+ h1#pagetitle_text {
+ font-size:26px;
+ color: var(--pagetitle-text-color);
+ float:left;
+ margin-top: 10px;
+ margin-left: 20px;
+ text-decoration:none;
+ font-weight:bold;
+ text-transform:uppercase;
+ margin-bottom: 0px;
+ z-index: 20;
+ position: relative;
+ }
+
+ a#homeicon {
+
+ background: var(--homeicon-bg-image) no-repeat;
+ height: 20px;
+ width: 66px;
+ float: right;
+ text-decoration:none;
+ text-align:right;
+ color: var(--homeicon-text-color);
+ font-size: 14px;
+ line-height: 20px;
+ font-weight:bold;
+ margin-top: 15px;
+ margin-right: 20px;
+ padding-top: 1px;
+ }
+
+ #left_menu {
+
+ width: 800px;
+ display:block;
+ text-align: left;
+
+ }
+ #table_matches {
+ width: 100%;
+ display:block;
+ }
+ #l_menu{
+ padding-left: 16px;
+ margin: 0px;
+ z-index: 9995;
+ position:relative;
+ }
+ #left_menu ul li a span{
+
+
+ padding: 4px 4px;
+ text-decoration:none;
+ display: inline;
+ font-size:14px;
+ font-family: var(--font-family);
+ color: var(--menu-link-span-color);
+ cursor:pointer;
+
+ }
+
+ #left_menu ul li#all_games {
+
+ margin-right: 20px;
+
+ }
+
+ #left_menu ul li{
+
+ background: var(--button-right-bg-image) top right no-repeat;
+ padding: 1px 2px 1px 0px;
+ display: block;
+ margin-right: 8px;
+ float:left;
+
+ }
+
+ #left_menu ul li a{
+
+ background: var(--button-left-bg-image) top left no-repeat;
+ padding: 1px 0px;
+ color: var(--menu-link-color);
+ text-decoration:none;
+ cursor:pointer;
+ padding-left: 2px;
+
+ }
+
+ #left_menu ul li#finished a span{
+
+ }
+ #left_menu ul li#finished {
+ background: var(--button-right-fin-bg-image) top right no-repeat;
+ }
+
+ #left_menu ul li#finished a{
+ background: var(--button-left-fin-bg-image) top left no-repeat;
+ }
+
+ #left_menu ul li#running a span{
+
+ }
+ #left_menu ul li#running {
+ background: var(--button-right-run-bg-image) top right no-repeat;
+ }
+
+ #left_menu ul li#running a{
+ background: var(--button-left-run-bg-image) top left no-repeat;
+ }
+
+ #left_menu ul li#upcoming a span{
+
+ }
+ #left_menu ul li#upcoming {
+ background: var(--button-right-upc-bg-image) top right no-repeat;
+ }
+
+ #left_menu ul li#upcoming a{
+ background: var(--button-left-upc-bg-image) top left no-repeat;
+ }
+
+
+ #left_menu ul li:hover a span{
+
+
+ padding: 4px 4px;
+ text-decoration:none;
+ display: inline;
+ font-size:14px;
+ font-family: var(--font-family);
+ color: var(--menu-link-span-color);
+ cursor:pointer;
+
+ }
+
+ #left_menu ul li:hover,#left_menu ul li.active,#left_menu ul li#finished:hover,#left_menu ul li#finished.active,#left_menu ul li#upcoming:hover,#left_menu ul li#upcoming.active,#left_menu ul li#running:hover,#left_menu ul li#running.active{
+
+ background: var(--button-hover-right-bg-image) top right no-repeat;
+ padding: 1px 2px 1px 0px;
+ display: inline;
+ margin-right: 8px;
+
+ }
+
+ #left_menu ul li:hover a,#left_menu ul li.active a,#left_menu ul li#finished:hover a,#left_menu ul li#finished.active a,#left_menu ul li#upcoming:hover a,#left_menu ul li#upcoming.active a,#left_menu ul li#running:hover a,#left_menu ul li#running.active a{
+
+ background: var(--button-hover-left-bg-image) top left no-repeat;
+ padding: 1px 0px;
+ color: var(--menu-link-color);
+ text-decoration:none;
+ cursor:pointer;
+ padding-left: 2px;
+
+ }
+
+ table#tbl {
+ width:100%;
+ }
+ #tbl tr.updated td {
+
+ border-bottom: 1px solid var(--tbl-updated-border-color);
+ height: 45px;
+ }
+ tr.updated>:first-child {
+
+ }
+ tr.updated>:last-child {
+
+ }
+
+ #tbl tr.livenow td {
+
+ border-bottom: 1px solid var(--tbl-livenow-border-color);
+ height: 45px;
+ }
+ tr.livenow>:first-child {
+
+ }
+ tr.livenow>:last-child {
+
+ }
+ #tbl th {
+ font-family: var(--font-family);
+ font-size: 14px;
+ text-decoration:none;
+ color: var(--tbl-th-text-color);
+ height:25px;
+ text-align: center;
+ background-color: var(--tbl-th-bg-color);
+ }
+
+ #tbl tr td {
+ font-family: var(--font-family);
+ font-size:14px;
+ color: var(--tbl-td-text-color);
+ text-align: center;
+ height: 44px;
+ }
+ #tbl tr td.matchdate{
+ height: 25px;
+ text-align:left;
+ font-weight:bold;
+ font-size: 12px;
+ padding-left: 10px;
+ color: var(--tbl-td-matchdate-text-color);
+ }
+
+ #tbl tr.amatch{
+ cursor: pointer;
+ }
+
+ #detailedresults #tbl tr td{
+ font-size: 12px;
+ }
+
+ #detailedresults #tbl tr.odd td{
+ background-color: var(--detailed-results-odd-bg);
+ text-align: center;
+ }
+
+ #detailedresults #tbl tr.even td{
+ background-color: var(--detailed-results-even-bg);
+ text-align: center;
+ }
+
+ #detailedresults #tbl tr td.num{
+ width: 50px;
+ }
+
+ #detailedresults #tbl tr td.heim{
+ width: 150px;
+ }
+
+ #detailedresults #tbl tr td.ergeb{
+ width: 80px;
+ font-size: 14px;
+ font-weight: bold;
+ color: var(--detailed-results-ergeb-text-color);
+ text-decoration: none;
+ }
+
+ #detailedresults #tbl tr td.ergeb a{
+
+ }
+
+ #detailedresults #tbl tr td.gast{
+ width: 150px;
+ }
+ #tbl tr.tablehead td{
+ height: 25px;
+ font-weight: bold;
+ background-color: var(--tbl-tablehead-td-bg-color);
+ font-size: 12px;
+ }
+ tr.finished.odd {
+ background-color: var(--tr-finished-odd-bg);
+ }
+
+ tr.finished.even {
+ background-color: var(--tr-finished-even-bg);
+ }
+
+ tr.updated {
+ background-color: var(--tr-updated-bg);
+ }
+
+
+ tr.livenow {
+ background-color: var(--tr-livenow-bg);
+ border:10px solid var(--tr-livenow-border-color);
+ }
+
+ tr.upcoming.odd {
+ background-color: var(--tr-upcoming-odd-bg);
+ }
+ tr.upcoming.even {
+ background-color: var(--tr-upcoming-even-bg);
+ }
+
+ #tbl tr td.finished_winner {
+ color: var(--tbl-td-finished-winner-text-color);
+ font-weight:bold;
+ }
+
+ #match_round {
+
+ min-width: 51px;
+ height: 25px;
+ text-align: center;
+ background-image: var(--match-round-bg-image);
+ background-position: center center;
+ background-repeat: no-repeat;
+ }
+
+ #date_time {
+ min-width: 51px;
+ }
+ #match_status_finished {
+ min-width: 46px;
+ height: 19px;
+ background-image: var(--match-status-finished-bg-image);
+ background-position: center center;
+ background-repeat: no-repeat;
+
+ }
+
+ #match_status_updated{
+ min-width: 46px;
+ height: 19px;
+ background-image: var(--match-status-updated-bg-image);
+ background-position: center center;
+ background-repeat: no-repeat;
+ }
+
+ #match_status_livenow {
+ min-width: 46px;
+ height: 19px;
+ background-image: var(--match-status-livenow-bg-image);
+ background-position: center center;
+ background-repeat: no-repeat;
+ }
+
+ #match_status_upcoming {
+ min-width: 46px;
+ height: 19px;
+ background-image: var(--match-status-upcoming-bg-image);
+ background-position: center center;
+ background-repeat: no-repeat;
+ }
+
+
+ tr.last_row {
+ background-color: var(--last-row-bg-color);
+ height:20px;
+ }
+
+ #tbl tr td#last_row {
+ background-color: var(--last-row-bg-color);
+ height: 25px;
+ }
+
+ #team_heim {
+
+ }
+
+ #team_gast {
+
+
+ }
+
+ #match_resultat {
+ width:150px;
+ margin-left:auto;
+ margin-right: auto;
+ }
+
+ #team_heim_logo {
+ width: 30px;
+ height: 30px;
+ float:left;
+ margin-right: 5px;
+ }
+
+ tr.finished.odd #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ font-weight:bold;
+ text-align:center;
+ color: var(--resultat-holder-finished-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ tr.finished.even #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ font-weight:bold;
+ text-align:center;
+ color: var(--resultat-holder-finished-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ tr.updated #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ font-weight:bold;
+ text-align:center;
+ color: var(--resultat-holder-updated-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ tr.livenow #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ font-weight:bold;
+ text-align:center;
+ color: var(--resultat-holder-livenow-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ tr.upcoming.odd #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ text-align:center;
+ color: var(--resultat-holder-upcoming-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ tr.upcoming.even #resultat_holder {
+ width: 78px;
+ height: 25px;
+ background: var(--resultat-holder-bg-image) center center no-repeat;
+ float:left;
+ font-size: 19px;
+ font: var(--font-family);
+ text-align:center;
+ color: var(--resultat-holder-upcoming-text-color);
+ padding-top: 3px;
+ padding-bottom: 2px;
+ }
+
+ #team_gast_logo {
+ width: 30px;
+ height: 30px;
+ float:left;
+ margin-left: 5px;
+ }
+
+ #combobox {
+ width: 100px;
+ padding-left: 16px;
+ padding-top: 8px;
+ float:left;
+ margin-top: 10px;
+ }
+
+ #results_button {
+ width: 280px;
+ background: var(--results-button-bg-image) right center no-repeat;
+ margin-right: 46px;
+ float:right;
+ font-family: var(--font-family);
+ font-size: 14px;
+ color: var(--results-button-text-color);
+ font-weight:bold;
+ text-align:center;
+ cursor: pointer;
+ padding-right: 11px;
+ margin-top: 10px;
+
+ }
+ #results_button_right{
+ height: 30px;
+ padding-top: 16px;
+ background: var(--results-button-right-bg-image) left center no-repeat;
+ padding-left: 11px;
+ }
+ #right_page_header {
+ width: 460px;
+ height: 54px;
+
+ }
+
+ #right_menu {
+
+ width: 460px;
+ display:block;
+ text-align: left;
+
+ }
+
+ #r_menu{
+ padding-left: 23px;
+ margin: 0px;
+ }
+ #right_menu ul li a span{
+
+
+ padding: 4px 4px;
+ text-decoration:none;
+ display: inline;
+ font-size:14px;
+ font-family: var(--font-family);
+ color: var(--menu-link-span-color);
+ cursor:pointer;
+
+ }
+
+ #right_menu ul li#eliminations {
+
+ margin-right: 134px;
+
+ }
+
+ #right_menu ul li{
+
+ background: var(--button-right-bg-image) top right no-repeat;
+ padding: 1px 2px 2px 0px;
+ display: block;
+ margin-right: 8px;
+ float:left;
+
+ }
+
+ #right_menu ul li a{
+
+ background: var(--button-left-bg-image) top left no-repeat;
+ padding: 1px 0px 2px 2px;
+ color: var(--menu-link-color);
+ text-decoration:none;
+ cursor:pointer;
+ }
+
+
+ #right_menu ul li#finalranking a span{
+
+ }
+ #right_menu ul li#finalranking {
+ background: var(--button-right-fin-bg-image) top right no-repeat;
+ }
+
+ #right_menu ul li#finalranking a{
+ background: var(--button-left-fin-bg-image) top left no-repeat;
+ }
+
+
+ #right_menu ul li:hover a span{
+
+
+ padding: 4px 4px;
+ text-decoration:none;
+ display: inline;
+ font-size:14px;
+ font-family: var(--font-family);
+ color: var(--menu-link-span-color);
+ cursor:pointer;
+
+ }
+
+ #right_menu ul li:hover,#right_menu ul li.active, #right_menu ul li#finalranking:hover,#right_menu ul li#finalranking.active{
+
+ background: var(--button-hover-right-bg-image) top right no-repeat;
+ padding: 1px 2px 2px 0px;
+ display: inline;
+ margin-right: 8px;
+
+ }
+
+ #right_menu ul li:hover a,#right_menu ul li.active a, #right_menu ul li#finalranking:hover a,#right_menu ul li#finalranking.active a{
+
+ background: var(--button-hover-left-bg-image) top left no-repeat;
+ padding: 1px 0px 2px 2px;
+ color: var(--menu-link-color);
+ text-decoration:none;
+ cursor:pointer;
+ padding-left: 2px;
+
+ }
+ #chart_matches {
+
+ width: 460px;
+ height: 500px;
+ display:block;
+
+ }
+
+ .grey_button{
+ background: var(--grey-button-bg);
+ width:153px;
+ height:22px;
+ text-align:center;
+ cursor:pointer;
+ float:left;
+
+ }
+ .grey_button a{
+ font-size:14px;
+ font-family: var(--font-family);
+ color: var(--grey-button-text-color);
+ text-decoration:none;
+
+ }
+ #tab_groups{
+ background: var(--tab-groups-bg-image) top left no-repeat;
+ width:105px;
+ height:20px;
+ position:absolute;
+ top:57px;
+ left:23px;
+ padding-left: 9px;
+ cursor:pointer;
+ }
+ #tab_elimination{
+ background: var(--tab-groups-bg-image) top left no-repeat; /* Assuming same as tab_groups */
+ width:105px;
+ height:20px;
+ position:absolute;
+ top:57px;
+ left:131px;
+ padding-left: 9px;
+ cursor:pointer;
+ }
+ #tab_elimination:hover,#tab_groups:hover{
+ background: var(--tab-elimination-hover-bg-image) top left no-repeat;
+ }
+ #tab_groups a{
+ text-decoration:none;
+ font-size:14px;
+ color: var(--tab-text-color);
+ }
+ #tab_elimination a{
+ text-decoration:none;
+ font-size:14px;
+ color: var(--tab-text-color);
+ }
+ #heading{
+ background-color: var(--heading-bg-color);
+
+ }
+ #heading td{
+ font-family: var(--font-family);
+ font-size:14px;
+ color: var(--heading-td-text-color);
+ padding: 2px 10px 2px 10px;
+ }
+ #heading td#points{
+ padding-left: 40px;
+ padding-right: 40px;
+ }
+ .groups td{
+ font-family: var(--font-family);
+ font-size:14px;
+ color: var(--groups-td-text-color);
+ padding: 2px 20px 2px 20px;
+ text-align:center;
+ }
+ table.groups{
+ width: 460px;
+ }
+ #groups2{
+ padding-top: 0px;
+ display: block;
+ overflow-y: scroll;
+ }
+
+ #groups2.matchdetail{
+ overflow: hidden;
+ }
+
+ #scheme{
+ background: var(--scheme-bg-image) top left no-repeat;
+ width:456px;
+ margin-left: 2px;
+ height:465px;
+ position:relative;
+ font-family: var(--font-family);
+ clear: both;
+ }
+ #winner_area{
+ width:455px;
+ }
+ .field_team{
+ width:140px;
+ height:30px;
+ font-size:12px;
+ color: var(--field-team-text-color);
+ padding-top:2px;
+ }
+ .field_team img{
+ margin-left: 2px;
+ margin-top: 0px;
+ margin-right: 2px;
+ float:left;
+
+ }
+ #team1{
+ position:absolute;
+ top:9px;
+ left:8px;
+ }
+ .field_team span{
+ float:left;
+ width: 105px;
+ }
+ #team2{
+ position:absolute;
+ top:68px;
+ left:8px;
+ }
+ .field_score{
+ background: var(--field-score-bg);
+ width:109px;
+ height:21px;
+ padding-left:27px;
+ padding-top: 5px;
+ border-left:1px solid var(--field-score-border-color);
+ border-right:1px solid var(--field-score-border-color);
+ }
+ #result{
+ font-family: var(--font-family);
+ width:46px;
+ height:14px;
+ border:1px solid var(--result-border-color);
+ background-color: var(--result-bg-color);
+ float:left;
+ margin-left: 4px;
+ margin-right: 4px;
+ text-align:center;
+ font-size:12px;
+ color: var(--result-text-color);
+ font-weight:bold;
+ }
+ #result1{
+ position:absolute;
+ top:42px;
+ left:9px;
+ }
+ #result2{
+ position:absolute;
+ top:160px;
+ left:9px;
+ }
+ #result3{
+ position:absolute;
+ top:278px;
+ left:9px;
+ }
+ #result4{
+ position:absolute;
+ top:397px;
+ left:9px;
+ }
+ #result5{
+ position:absolute;
+ top:101px;
+ left:160px;
+ }
+ #result6{
+ position:absolute;
+ top:342px;
+ left:160px;
+ }
+ #result7{
+ position:absolute;
+ top:221px;
+ left:311px;
+ }
+ #result8{
+ position:absolute;
+ top:397px;
+ left:311px;
+ }
+ #team3{
+ position:absolute;
+ top:126px;
+ left:8px;
+ }
+ #team4{
+ position:absolute;
+ top:187px;
+ left:8px;
+ }
+ #team5{
+ position:absolute;
+ top:244px;
+ left:8px;
+ }
+ #team6{
+ position:absolute;
+ top:303px;
+ left:8px;
+ }
+ #team7{
+ position:absolute;
+ top:363px;
+ left:8px;
+ }
+ #team8{
+ position:absolute;
+ top:422px;
+ left:8px;
+ }
+ #team9{
+ position:absolute;
+ top:68px;
+ left:159px;
+ }
+ #team10{
+ position:absolute;
+ top:127px;
+ left:159px;
+ }
+ #team11{
+ position:absolute;
+ top:310px;
+ left:159px;
+ }
+ #team12{
+ position:absolute;
+ top:368px;
+ left:159px;
+ }
+ #team13{
+ position:absolute;
+ top:187px;
+ left:310px;
+ }
+ #team14{
+ position:absolute;
+ top:246px;
+ left:310px;
+ }
+ #team15{
+ position:absolute;
+ top:363px;
+ left:310px;
+ }
+ #team16{
+ position:absolute;
+ top:422px;
+ left:310px;
+ }
+ .strike_through span{
+ text-decoration: line-through;
+ }
+ .winner_bold{
+ font-weight:bold;
+ color: var(--winner-bold-text-color);
+ }
+ .field_score img{
+ float:left;
+ }
+ .livenow_match{
+ background-color: var(--livenow-match-bg);
+ border-left:1px solid var(--livenow-match-border-color);
+ border-right:1px solid var(--livenow-match-border-color);
+ color: var(--livenow-match-text-color);
+ }
+ .finished_match{
+ background-color: var(--finished-match-bg);
+ border-left:1px solid var(--finished-match-border-color);
+ border-right:1px solid var(--finished-match-border-color);
+ color: var(--finished-match-text-color);
+ }
+ .livenow_match #result{
+ color: var(--livenow-match-text-color);
+ }
+ .finished_match #result{
+ color: var(--finished-match-text-color);
+ }
+ .place_final{
+ width:120px;
+ height:17px;
+ font-size:14px;
+ color: var(--place-final-text-color);
+ padding-left: 27px;
+ padding-top:2px;
+
+ }
+ #place_position1{
+ position:absolute;
+ top:158px;
+ left:310px;
+ }
+ #place_position3{
+ position:absolute;
+ top:334px;
+ left:310px;
+ }
+ #winner_area_heading{
+ font-family: var(--font-family);
+ background-color: var(--winner-area-heading-bg);
+ width:455px;
+ height:19px;
+ margin-left:2px;
+ margin-top:7px;
+ color: var(--winner-area-heading-text-color);
+ text-transform:uppercase;
+ font-size:14px;
+ text-align:center;
+ padding-top:3px;
+ }
+ #winner_area_positions{
+ font-family: var(--font-family);
+ background-color: var(--winner-area-positions-bg);
+ width:453px;
+ padding-bottom: 2px;
+ margin-left:2px;
+ border-left:1px solid var(--winner-area-positions-border-color);
+ border-right:1px solid var(--winner-area-positions-border-color);
+ position:relative;
+ margin-bottom: 5px;
+ }
+ #cup{
+ background: var(--cup-bg-image) top left no-repeat;
+ width:30px;
+ height:38px;
+ position:absolute;
+ top:5px;
+ left:409px;
+ }
+ #view_all_results{
+ background: var(--view-all-results-bg-image) top left no-repeat;
+ width:170px;
+ height:22px;
+ position:absolute;
+ top:63px;
+ left:275px;
+ color: var(--view-all-results-text-color);
+ font-family: var(--font-family);
+ font-size:14px;
+ text-align:center;
+ padding-top:3px;
+ font-weight:bold;
+ cursor:pointer;
+ }
+ #winner, #winner_name{
+ font-family: var(--font-family);
+ font-size:20px;
+ color: var(--winner-text-color);
+ padding-left: 7px;
+ }
+ #first_position img{
+ margin-top: 3px;
+ }
+ #second_position, #third_position{
+ width:300px;
+ }
+ #second_position span, #third_position span{
+ font-family: var(--font-family);
+ font-size:14px;
+ color: var(--winner-text-color); /* Assuming same as #winner */
+ padding-left: 7px;
+ }
+ #second_position img, #third_position img{
+ margin-left: 9px;
+ }
+
+ #mid_page_round{
+ background: var(--mid-page-round-bg);
+ overflow: hidden;
+ -moz-border-radius: 7px;
+ -webkit-border-radius: 7px;
+ border-radius: 7px;
+ behavior: url(components/com_sportsmanager/views/sportsmanager/border-radius.htc);
+ z-index: 0;
+ }
+ #last_row span{
+ cursor: pointer;
+ font-size: 14px;
+ color: var(--last-row-span-text-color);
+ }
+ #last_row span#curr{
+ font-weight: bold;
+ font-size: 14px;
+ }
+ #last_row span#nextpage{
+ padding-right: 19px;
+ background: url(next.jpg) center right no-repeat; /* Keep as is, or create variables if these also need to change for dark mode */
+ font-size: 14px;
+ font-weight: bold;
+ }
+ #last_row span#prevpage{
+ padding-left: 19px;
+ background: url(prev.jpg) center left no-repeat; /* Keep as is, or create variables if these also need to change for dark mode */
+ font-size: 14px;
+ font-weight: bold;
+ }
+ #fedlogo{
+ width: 139px;
+ height: 69px;
+ position: absolute;
+ top: 195px;
+ left: 159px;
+ }
+ #sponsorz{
+ background: var(--sponsorz-bg);
+ height: 45px;
+ width: 450px;
+ position: absolute;
+ left: 10px;
+ top: 7px;
+ z-index:10;
+ cursor: pointer;
+ }
+ #sponsorz img{
+ width: 100%;
+ height: auto;
+ }
+ #left_menu ul li{
+ z-index:9996;
+ }
+ #left_menu ul li a{
+ z-index:9997;
+ }
+ #left_menu ul li a span{
+ z-index:9998;
+ }
+
+ #theme-switcher {
+ position: fixed;
+ top: 10px;
+ right: 10px;
+ z-index: 10000; /* Ensure it's above other elements */
+ background: rgba(128, 128, 128, 0.5); /* Semi-transparent grey */
+ padding: 8px;
+ border-radius: 5px;
+ }
+
+ #theme-switcher button {
+ background-color: var(--theme-switcher-button-bg);
+ color: var(--theme-switcher-button-text-color);
+ border: 1px solid var(--tbl-th-text-color); /* Use a variable that contrasts well */
+ padding: 5px 10px;
+ margin-left: 5px;
+ cursor: pointer;
+ border-radius: 3px;
+ font-size: 16px; /* Make icons a bit larger */
+ }
+
+ #theme-switcher button:hover {
+ background-color: var(--theme-switcher-button-hover-bg);
+ }
+ #theme-switcher button:active {
+ background-color: var(--theme-switcher-button-active-bg);
+ }
+
+
+ @media only screen and (max-width:1200px){
+
+ #tbl th,#tbl tr td {
+ font-size: 12px;
+ }
+ }
+
+ @media only screen and (max-width:1030px){
+
+ #sponsorz{
+ width: 390px;
+ height: 39px;
+ }
+ }
+ This function is responsible for display of the left table matches
+ static function veranstaltungenTickerPrintable($matchez): void
+ {
+ $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
+
+ echo '
+
+ ' . Text::_('COM_SPORTSMANAGER_DATE') . '
+ ' . Text::_('COM_SPORTSMANAGER_ROUND') . '
+ ' . Text::_('COM_SPORTSMANAGER_TEAM_HOME') . '
+ ' . Text::_('COM_SPORTSMANAGER_RESULT') . '
+ ' . Text::_('COM_SPORTSMANAGER_TEAM_VISITOR') . '
+ '; ?>
+
+
+
+
+ class="finished_winner">
+
+
+
+ class="finished_winner">
+
+
+
+
+
+
+
+
+
+
+
+
+ This function is responsible for display of the groups qualification results
+ static function veranstaltungenTickerPrintgtable($teamz, $group): void
+ {
+ $punkte_anzeigen = false;
+ if (isset($teamz[0]['score']))
+ $punkte_anzeigen = true;
+ $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
+ if (!empty($teamz)) {
+ echo '
+
+ ' . Text::_('COM_SPORTSMANAGER_PLACE') . '
+
+ ' . $group . '
+ ' . ($punkte_anzeigen ? Text::_('COM_SPORTSMANAGER_POINTS') : ' ') . '
+ ';
+ foreach ($teamz as $team) {
+ ?>
+
+
+
+
+
+
+
+
+
+
+ This function is responsible for display of the right elimination chart
+ static function veranstaltungenTickerPrinteliminations($matchez): void
+ {
+ $bilder_pfad = Uri::root(TRUE) . '/components/com_sportsmanager/images/';
+ if (!empty($matchez)) {
+
+ echo '
+
+
+
';
+ $matchcount = 0;
+ foreach ($matchez as $match) {
+ $matchcount++;
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This function is responsible for display of the right top3 end results after the elimination chart
+ static function veranstaltungenTickerPrintop3($teamz): void
+ {
+ if (!empty($teamz)) {
+ ?>
+
+
+
+
+
+
1.
+
+
+ 2.
+
+
+ 3.
+
+
+
+
+