Merge pull request #195 from Deutscher-Tischfussballbund/sportsmanager2-issue193

change styling/sizing of tables
This commit is contained in:
MarvinF
2025-09-23 20:14:24 +02:00
committed by GitHub
@@ -1731,8 +1731,8 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
<table style='width: 100%; border-collapse: collapse;'
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'); ?>">
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left; width: 280px;">
<th style="text-align: center; width: 80px;"><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left; width: 320px;">
<strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th>
<?php
if ($bilder_anzeigen) {
@@ -1998,21 +1998,22 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
?>
<!-- Gruppentabelle Hauptrunde -->
<div class="uk-overflow-auto">
<table
class="uk-table uk-table-hover uk-table-divider uk-table-middle dtfl-table-small contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<table style='width: 450px; border-collapse: collapse;'
class="uk-table-hover uk-table-divider uk-table-middle dtfl-table-small contentpaneopen<?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 style="text-align: left">
<th style="text-align: center; width: 80px;"><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left; width: 320px;">
<strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th>
<?php if ($bilder_anzeigen) { ?>
<th style="text-align: center; width: 70px;"></th>
<?php } ?>
</tr>
<?php
$laufende_veranstaltung = $teams[count($teams) - 1]->platz == null;
$platz = -1;
$k = 0;
foreach ($teams
as $team) {
foreach ($teams as $team) {
if ($laufende_veranstaltung && $team->platz != $platz && $team->platz == null) {
?>
<tr>
@@ -2040,10 +2041,6 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
?>
</td>
<td nowrap>
<table style="width: 100%; border: none; border-spacing: 0; padding: 0">
<tr>
<td>
<?php
echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>";
?>
@@ -2051,7 +2048,7 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
<?php
if ($bilder_anzeigen) {
?>
<td style="width: 50px" height="50" style="text-align: right">
<td style="text-align: center;">
<?php
$bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
if ($bild != null) {
@@ -2067,34 +2064,7 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
}
?>
</tr>
</table>
</td>
<?php
/*
<td nowrap style="text-align: center">
<?php
echo Rundenbezeichnung($team->letzter_spieltag);
?>
</td>
<td nowrap style="text-align: center">
<?php
echo $team->letzter_spieltag;
?>
</td>
<td nowrap style="text-align: center">
<?php
echo $team->zuletzt_gewonnen;
?>
</td>
<td nowrap style="text-align: center">
<?php
echo $spieltag_verlorene_begegnungen . " | " . $spieltag_einmal_vollstaendig . " = ". $spieltag_mannschaften;
?>
</td>
</tr>
<?php
*/
}
?>
</table>