Änderungen nach Kommentaren in PR83 überarbeitet.

This commit is contained in:
Jürgen Meyer
2025-06-29 19:00:59 +02:00
parent 56d8be9a55
commit 6609a4ca78
@@ -794,7 +794,7 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
}
?>
</td>
<td align=center>
<td style="text-align: center;">
<?php
if ($bilder_anzeigen_1) {
if (isset($spieler[0]) && ($bild = bildHTML("spieler", !isset($spielerIds[0]) || (!$details_anzeigen && $spielerBilderAusblenden[0]) ? '' : $spielerIds[0], 45, 60, 0, 0, 'border="1"', $spielerGeschlechter[0] == 'M' ? 'm' : 'w')) != null)
@@ -903,7 +903,7 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
}
?>
</td>
<td align=center id="bildID_<?php echo $bildID++; ?>" style="display: block;">
<td id="bildID_<?php echo $bildID++; ?>" style="display: block;text-align: center;">
<?php
if ($bilder_anzeigen_1) {
if (isset($gewinner[0]) && ($bild = bildHTML("spieler", !isset($gewinnerIds[0]) || (!$details_anzeigen && $gewinnerBilderAusblenden[0]) ? '' : $gewinnerIds[0], 45, 60, 0, 0, 'border="1"', $gewinnerGeschlechter[0] == 'M' ? 'm' : 'w')) != null)
@@ -932,7 +932,7 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
}
?>
</td>
<td align=center id="bildID_<?php echo $bildID++; ?>" style="display: block;">
<td id="bildID_<?php echo $bildID++; ?>" style="display: block;text-align: center;">
<?php
if ($bilder_anzeigen_1) {
if (isset($verlierer[0]) && ($bild = bildHTML("spieler", !isset($verliererIds[0]) || (!$details_anzeigen && $verliererBilderAusblenden[0]) ? '' : $verliererIds[0], 45, 60, 0, 0, 'border="1"', $verliererGeschlechter[0] == 'M' ? 'm' : 'w')) != null)
@@ -959,17 +959,17 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
<script>
function bilder_zeigen(){
var breite = window.innerWidth;
var id = 0;
var anzeige = "block";
var anzahl_spiele = <?PHP echo $bildID; ?>;
let breite = window.innerWidth;
let id = 0;
var anzeige;
let anzahl_spiele = <?PHP echo $bildID; ?>;
if (breite < 480){
anzeige = "none";
}
else {
anzeige = "block";
}
for (i=0; i < anzahl_spiele; i++) {
for (let i=0; i < anzahl_spiele; i++) {
id = "bildID_" + i;
document.getElementById(id).style.display = anzeige;
}
@@ -1371,9 +1371,9 @@ if (count($spiele) > 0) {
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_GAME'); ?></strong></th>
<?php if ($bilder_anzeigen) { ?>
<th nowrap id="bilder_heim_0"></th><?php } ?>
<th nowrap align=left><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_HOME'); ?></strong></th>
<th nowrap align=center><strong><?php echo Text::_('COM_SPORTSMANAGER_RESULT'); ?></strong></th>
<th nowrap align=left><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_VISITOR'); ?></strong></th>
<th nowrap style="text-align: left;"><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_HOME'); ?></strong></th>
<th nowrap style="text-align: center;"><strong><?php echo Text::_('COM_SPORTSMANAGER_RESULT'); ?></strong></th>
<th nowrap style="text-align: left;"><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_VISITOR'); ?></strong></th>
<?php if ($bilder_anzeigen) { ?>
<th nowrap id="bilder_gast_0"></th><?php } ?>
</tr>
@@ -1390,7 +1390,7 @@ if (count($spiele) > 0) {
?>
<td id="bilder_heim_<?php echo $spiel->teamspiel_nummer ?>" align="center" style="display: block;">
<td id="bilder_heim_<?php echo $spiel->teamspiel_nummer ?>" style="display: block; text-align: center;" >
<?php
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $spiel->heim_spieler_1_bild_ausblenden ? '' : $spiel->heim_spieler_1_mitglied_id, 45, 60, 0, 0, 'border="1"');
if ($bild == null)
@@ -1427,7 +1427,7 @@ if (count($spiele) > 0) {
?>
</td>
<td style="text-align: center" align=center nowrap>
<td style="text-align: center" nowrap>
<?php echo str_replace(" ", " | ", $spiel->ergebnis_detailliert); ?>
</td>
@@ -1449,7 +1449,7 @@ if (count($spiele) > 0) {
<?php
if ($bilder_anzeigen) {
?>
<td id="bilder_gast_<?php echo $spiel->teamspiel_nummer ?>" align="center" style="display: block;">
<td id="bilder_gast_<?php echo $spiel->teamspiel_nummer ?>" style="display: block; text-align: center;">
<?php
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $spiel->gast_spieler_1_bild_ausblenden ? '' : $spiel->gast_spieler_1_mitglied_id, 45, 60, 0, 0, 'border="1"');
if ($bild == null)
@@ -1486,10 +1486,10 @@ if (count($spiele) > 0) {
<script>
function bilder_zeigen(){
var breite = window.innerWidth;
var id = 0;
var anzeige = "block";
var anzahl_spiele = <?PHP echo count($spiele); ?>;
let breite = window.innerWidth;
let id = 0;
var anzeige;
let anzahl_spiele = <?PHP echo count($spiele); ?>;
if (breite < 480){
anzeige = "none";
@@ -1497,7 +1497,7 @@ if (count($spiele) > 0) {
else {
anzeige = "block";
}
for (i=0; i <= anzahl_spiele; i++) {
for (let i=0; i <= anzahl_spiele; i++) {
id = "bilder_heim_" + i;
document.getElementById(id).style.display = anzeige;
id = "bilder_gast_" + i;
@@ -1531,9 +1531,7 @@ if (count($spiele) > 0) {
static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spieltage, $alleine_angezeigt, int $praesentation = 0): void
{
global $params;
//echo "<pre>";
//print_r($teams);
//echo "</pre>";
if (count($teams) > 0) {
if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) {
?>