Weitere Optimierungen der Tabellen Rangliste, Turnierergebnisse und Spielerstatistik

This commit is contained in:
Jürgen Meyer
2025-06-30 00:16:05 +02:00
parent 6609a4ca78
commit 0d0ee08199
2 changed files with 19 additions and 18 deletions
-1
View File
@@ -46,4 +46,3 @@ joomla specific database prefixes like #__
To set it up, insert into the configuration popup which follows after you enable the framework support: To set it up, insert into the configuration popup which follows after you enable the framework support:
Joomla install path: `./data/joomla_data` Joomla install path: `./data/joomla_data`
JConfig: `./data/joomla_data/configuration.php` JConfig: `./data/joomla_data/configuration.php`
@@ -537,8 +537,8 @@ static function turnierdisziplinen($disziplin, $meldungen, $meldungenSpielerIds,
?> ?>
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table <table style='width: 100%; padding:1px 1px 1px 1px; border-collapse: collapse;'
class="uk-table uk-table-hover uk-table-divider uk-table-middle contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> class="uk-table-hover uk-table-divider uk-table-middle contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php <?php
if ($platzierung_anzeigen) { if ($platzierung_anzeigen) {
@@ -739,7 +739,8 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
if (($rundenstufe == 0 || $rundenstufe == 10) && count($meldungen[$rundenstufe]) > 0) { if (($rundenstufe == 0 || $rundenstufe == 10) && count($meldungen[$rundenstufe]) > 0) {
?> ?>
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> <table style='width: 100%; padding:1px 1px 1px 1px; border-collapse: collapse;'
class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php <?php
if ($platzierung_anzeigen) { if ($platzierung_anzeigen) {
@@ -826,7 +827,8 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
} }
?> ?>
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table class="uk-table contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> <table style='width: 100%; padding:1px 1px 1px 1px; border-collapse: collapse;'
class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th style="text-align: left" nowrap> <th style="text-align: left" nowrap>
<strong><?php echo Text::_('COM_SPORTSMANAGER_WINNER'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_WINNER'); ?></strong></th>
@@ -961,7 +963,7 @@ static function turnierdisziplin($turnier, $disziplin, $meldungen, $meldungenSpi
function bilder_zeigen(){ function bilder_zeigen(){
let breite = window.innerWidth; let breite = window.innerWidth;
let id = 0; let id = 0;
var anzeige; let anzeige;
let anzahl_spiele = <?PHP echo $bildID; ?>; let anzahl_spiele = <?PHP echo $bildID; ?>;
if (breite < 480){ if (breite < 480){
anzeige = "none"; anzeige = "none";
@@ -1488,7 +1490,7 @@ if (count($spiele) > 0) {
function bilder_zeigen(){ function bilder_zeigen(){
let breite = window.innerWidth; let breite = window.innerWidth;
let id = 0; let id = 0;
var anzeige; let anzeige;
let anzahl_spiele = <?PHP echo count($spiele); ?>; let anzahl_spiele = <?PHP echo count($spiele); ?>;
if (breite < 480){ if (breite < 480){
@@ -5694,14 +5696,14 @@ if (count($spiele) > 0) {
?> ?>
<!-- Tabelle Spielerstatistiken --> <!-- Tabelle Spielerstatistiken -->
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table <table style='width: 100%; padding:1px 1px 1px 1px; border-collapse: collapse;'
class="uk-table uk-table-hover uk-table-divider uk-table-middle dtfl-table-medium contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> class="uk-table-hover uk-table-divider uk-table-middle dtfl-table-medium contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th> <th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left"> <th style="text-align: left; width: 120px;"">
<strong><?php echo Text::_('COM_SPORTSMANAGER_PLAYER'); ?></strong> <strong><?php echo Text::_('COM_SPORTSMANAGER_PLAYER'); ?></strong>
</th> </th>
<th style="text-align: center;width: 80px;"> <th style="text-align: center; width: 50px;">
<strong></strong> <strong></strong>
</th> </th>
<?php <?php
@@ -5790,7 +5792,7 @@ if (count($spiele) > 0) {
} }
?> ?>
</td> </td>
<td style="width: 59px"> <td>
<?php <?php
if ($bilder_anzeigen && ($bild = bildHTML("spieler", !$details_anzeigen && $row->bild_ausblenden ? '' : $row->spieler_id, 45, 60, 0, 0, 'border="1" style="text-align: right" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null) if ($bilder_anzeigen && ($bild = bildHTML("spieler", !$details_anzeigen && $row->bild_ausblenden ? '' : $row->spieler_id, 45, 60, 0, 0, 'border="1" style="text-align: right" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null)
echo $bild; echo $bild;
@@ -5799,7 +5801,7 @@ if (count($spiele) > 0) {
<?php <?php
if ($bilder_anzeigen_2) { if ($bilder_anzeigen_2) {
?> ?>
<td style="width: 59px"> <td style="text-align: left;">
<?php <?php
if (($bild = bildHTML("spieler", !$details_anzeigen && $row->bild_ausblenden_2 ? '' : $row->spieler_2_id, 45, 60, 0, 0, 'border="1" style="text-align: right" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null) if (($bild = bildHTML("spieler", !$details_anzeigen && $row->bild_ausblenden_2 ? '' : $row->spieler_2_id, 45, 60, 0, 0, 'border="1" style="text-align: right" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null)
echo $bild; echo $bild;
@@ -6823,15 +6825,15 @@ if (count($spiele) > 0) {
?> ?>
<!-- Tabelle Rangliste --> <!-- Tabelle Rangliste -->
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table <table style='width: 100%; padding:1px 1px 1px 1px; border-collapse: collapse;'
class="uk-table uk-table-divider uk-table-hover uk-table-middle rangliste-width contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> class="uk-table-divider uk-table-hover uk-table-middle rangliste-width contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_RANK'); ?></strong></th> <th><strong><?php echo Text::_('COM_SPORTSMANAGER_RANK'); ?></strong></th>
<th></th> <th></th>
<th style="text-align: left"> <th style="text-align: left">
<strong><?php echo Text::_('COM_SPORTSMANAGER_PLAYER'); ?></strong> <strong><?php echo Text::_('COM_SPORTSMANAGER_PLAYER'); ?></strong>
</th> </th>
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_POINTS'); ?></strong></th> <th style="text-align: center"><strong><?php echo Text::_('COM_SPORTSMANAGER_POINTS'); ?></strong></th>
</tr> </tr>
<?php <?php
@@ -6860,14 +6862,14 @@ if (count($spiele) > 0) {
else { else {
?> ?>
<a class="uk-align-center" <a style="text-align: left; vertical-align: middle;"
href="<?php echo SportsManagerURL('&task=spieler_details&id=' . $row->spieler_id); ?>"><?php echo htmlentities_utf8($row->vorname . " " . $row->nachname); ?></a> href="<?php echo SportsManagerURL('&task=spieler_details&id=' . $row->spieler_id); ?>"><?php echo htmlentities_utf8($row->vorname . " " . $row->nachname); ?></a>
<?php <?php
} }
?> ?>
</td> </td>
<td class="uk-align-center"> <td style="text-align: center; vertical-align: middle;">
<a href="<?php echo SportsManagerURL('&task=ranglistenpunkte&rangliste_id=' . $rangliste->rangliste_id . "&spieler_id=" . $row->spieler_id); ?>"><?php echo $row->punkte; ?></a> <a href="<?php echo SportsManagerURL('&task=ranglistenpunkte&rangliste_id=' . $rangliste->rangliste_id . "&spieler_id=" . $row->spieler_id); ?>"><?php echo $row->punkte; ?></a>
</td> </td>
</tr> </tr>