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;' <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'); ?>"> 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 style="text-align: center; width: 80px;"><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left; width: 280px;"> <th style="text-align: left; width: 320px;">
<strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th>
<?php <?php
if ($bilder_anzeigen) { if ($bilder_anzeigen) {
@@ -1998,38 +1998,39 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
?> ?>
<!-- Gruppentabelle Hauptrunde --> <!-- Gruppentabelle Hauptrunde -->
<div class="uk-overflow-auto"> <div class="uk-overflow-auto">
<table <table style='width: 450px; border-collapse: collapse;'
class="uk-table uk-table-hover uk-table-divider uk-table-middle dtfl-table-small contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>"> 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'); ?>"> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th> <th style="text-align: center; width: 80px;"><strong><?php echo Text::_('COM_SPORTSMANAGER_PLACE'); ?></strong></th>
<th style="text-align: left"> <th style="text-align: left; width: 320px;">
<strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th> <strong><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?></strong></th>
<?php if ($bilder_anzeigen) { ?>
<th style="text-align: center; width: 70px;"></th>
<?php } ?>
</tr> </tr>
<?php <?php
$laufende_veranstaltung = $teams[count($teams) - 1]->platz == null; $laufende_veranstaltung = $teams[count($teams) - 1]->platz == null;
$platz = -1; $platz = -1;
$k = 0; $k = 0;
foreach ($teams foreach ($teams as $team) {
if ($laufende_veranstaltung && $team->platz != $platz && $team->platz == null) {
as $team) { ?>
if ($laufende_veranstaltung && $team->platz != $platz && $team->platz == null) { <tr>
?> <td nowrap height="4"></td>
<tr> </tr>
<td nowrap height="4"></td> <tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"
</tr> style="text-align: center">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>" <th nowrap><span
style="text-align: center"> style="font-size: 70%; "><i><?php echo "offen"; ?></i></span>
<th nowrap><span <!-- TODO: always "offen"?? -->
style="font-size: 70%; "><i><?php echo "offen"; ?></i></span> </th>
<!-- TODO: always "offen"?? --> </tr>
</th> <?php
</tr> }
<?php ?>
} <tr class="sectiontableentry<?php echo $k + 1;
?> $k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableentry<?php echo $k + 1;
$k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
<td nowrap style="text-align: center"> <td nowrap style="text-align: center">
<?php <?php
if ($team->platz != $platz) { if ($team->platz != $platz) {
@@ -2040,63 +2041,32 @@ static function tabelleAnzeigen($veranstaltung, $modus, $teams, $spieltag, $spie
?> ?>
</td> </td>
<td nowrap> <td nowrap>
<?php
<table style="width: 100%; border: none; border-spacing: 0; padding: 0"> echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>";
<tr> ?>
<td> </td>
<?php <?php
echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>"; if ($bilder_anzeigen) {
?> ?>
</td> <td style="text-align: center;">
<?php <?php
if ($bilder_anzeigen) { $bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
?> if ($bild != null) {
<td style="width: 50px" height="50" style="text-align: right"> echo $bild;
<?php } else if ($team->verein_id != null) {
$bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"'); $bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"');
if ($bild != null) { if ($bild != null)
echo $bild; echo $bild;
} else if ($team->verein_id != null) { }
$bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"'); ?>
if ($bild != null) </td>
echo $bild; <?php
} }
?> ?>
</td> </tr>
<?php <?php
} }
?> ?>
</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> </table>
</div> </div>
<?php <?php