mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Änderungen nach Kommentaren in PR83 überarbeitet.
This commit is contained in:
@@ -794,7 +794,7 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td align=center>
|
<td style="text-align: center;">
|
||||||
<?php
|
<?php
|
||||||
if ($bilder_anzeigen_1) {
|
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)
|
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>
|
||||||
<td align=center id="bildID_<?php echo $bildID++; ?>" style="display: block;">
|
<td id="bildID_<?php echo $bildID++; ?>" style="display: block;text-align: center;">
|
||||||
<?php
|
<?php
|
||||||
if ($bilder_anzeigen_1) {
|
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)
|
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>
|
||||||
<td align=center id="bildID_<?php echo $bildID++; ?>" style="display: block;">
|
<td id="bildID_<?php echo $bildID++; ?>" style="display: block;text-align: center;">
|
||||||
<?php
|
<?php
|
||||||
if ($bilder_anzeigen_1) {
|
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)
|
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>
|
<script>
|
||||||
|
|
||||||
function bilder_zeigen(){
|
function bilder_zeigen(){
|
||||||
var breite = window.innerWidth;
|
let breite = window.innerWidth;
|
||||||
var id = 0;
|
let id = 0;
|
||||||
var anzeige = "block";
|
var anzeige;
|
||||||
var anzahl_spiele = <?PHP echo $bildID; ?>;
|
let anzahl_spiele = <?PHP echo $bildID; ?>;
|
||||||
if (breite < 480){
|
if (breite < 480){
|
||||||
anzeige = "none";
|
anzeige = "none";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
anzeige = "block";
|
anzeige = "block";
|
||||||
}
|
}
|
||||||
for (i=0; i < anzahl_spiele; i++) {
|
for (let i=0; i < anzahl_spiele; i++) {
|
||||||
id = "bildID_" + i;
|
id = "bildID_" + i;
|
||||||
document.getElementById(id).style.display = anzeige;
|
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>
|
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_GAME'); ?></strong></th>
|
||||||
<?php if ($bilder_anzeigen) { ?>
|
<?php if ($bilder_anzeigen) { ?>
|
||||||
<th nowrap id="bilder_heim_0"></th><?php } ?>
|
<th nowrap id="bilder_heim_0"></th><?php } ?>
|
||||||
<th nowrap align=left><strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM_HOME'); ?></strong></th>
|
<th nowrap style="text-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 style="text-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_VISITOR'); ?></strong></th>
|
||||||
<?php if ($bilder_anzeigen) { ?>
|
<?php if ($bilder_anzeigen) { ?>
|
||||||
<th nowrap id="bilder_gast_0"></th><?php } ?>
|
<th nowrap id="bilder_gast_0"></th><?php } ?>
|
||||||
</tr>
|
</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
|
<?php
|
||||||
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $spiel->heim_spieler_1_bild_ausblenden ? '' : $spiel->heim_spieler_1_mitglied_id, 45, 60, 0, 0, 'border="1"');
|
$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)
|
if ($bild == null)
|
||||||
@@ -1427,7 +1427,7 @@ if (count($spiele) > 0) {
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="text-align: center" align=center nowrap>
|
<td style="text-align: center" nowrap>
|
||||||
<?php echo str_replace(" ", " | ", $spiel->ergebnis_detailliert); ?>
|
<?php echo str_replace(" ", " | ", $spiel->ergebnis_detailliert); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@@ -1449,7 +1449,7 @@ if (count($spiele) > 0) {
|
|||||||
<?php
|
<?php
|
||||||
if ($bilder_anzeigen) {
|
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
|
<?php
|
||||||
$bild = bildHTML("mannschaftsmitglieder", !$details_anzeigen && $spiel->gast_spieler_1_bild_ausblenden ? '' : $spiel->gast_spieler_1_mitglied_id, 45, 60, 0, 0, 'border="1"');
|
$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)
|
if ($bild == null)
|
||||||
@@ -1486,10 +1486,10 @@ if (count($spiele) > 0) {
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
function bilder_zeigen(){
|
function bilder_zeigen(){
|
||||||
var breite = window.innerWidth;
|
let breite = window.innerWidth;
|
||||||
var id = 0;
|
let id = 0;
|
||||||
var anzeige = "block";
|
var anzeige;
|
||||||
var anzahl_spiele = <?PHP echo count($spiele); ?>;
|
let anzahl_spiele = <?PHP echo count($spiele); ?>;
|
||||||
|
|
||||||
if (breite < 480){
|
if (breite < 480){
|
||||||
anzeige = "none";
|
anzeige = "none";
|
||||||
@@ -1497,7 +1497,7 @@ if (count($spiele) > 0) {
|
|||||||
else {
|
else {
|
||||||
anzeige = "block";
|
anzeige = "block";
|
||||||
}
|
}
|
||||||
for (i=0; i <= anzahl_spiele; i++) {
|
for (let i=0; i <= anzahl_spiele; i++) {
|
||||||
id = "bilder_heim_" + i;
|
id = "bilder_heim_" + i;
|
||||||
document.getElementById(id).style.display = anzeige;
|
document.getElementById(id).style.display = anzeige;
|
||||||
id = "bilder_gast_" + i;
|
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
|
static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spieltage, $alleine_angezeigt, int $praesentation = 0): void
|
||||||
{
|
{
|
||||||
global $params;
|
global $params;
|
||||||
//echo "<pre>";
|
|
||||||
//print_r($teams);
|
|
||||||
//echo "</pre>";
|
|
||||||
if (count($teams) > 0) {
|
if (count($teams) > 0) {
|
||||||
if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) {
|
if ($alleine_angezeigt && $veranstaltung->tabellenwertung >= -1 && $veranstaltung->tabellenwertung <= 11 && count($spieltage) > 1) {
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user