mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #195 from Deutscher-Tischfussballbund/sportsmanager2-issue193
change styling/sizing of tables
This commit is contained in:
@@ -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,38 +1998,39 @@ 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) {
|
||||
if ($laufende_veranstaltung && $team->platz != $platz && $team->platz == null) {
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap height="4"></td>
|
||||
</tr>
|
||||
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"
|
||||
style="text-align: center">
|
||||
<th nowrap><span
|
||||
style="font-size: 70%; "><i><?php echo "offen"; ?></i></span>
|
||||
<!-- TODO: always "offen"?? -->
|
||||
</th>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr class="sectiontableentry<?php echo $k + 1;
|
||||
$k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
|
||||
foreach ($teams as $team) {
|
||||
if ($laufende_veranstaltung && $team->platz != $platz && $team->platz == null) {
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap height="4"></td>
|
||||
</tr>
|
||||
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>"
|
||||
style="text-align: center">
|
||||
<th nowrap><span
|
||||
style="font-size: 70%; "><i><?php echo "offen"; ?></i></span>
|
||||
<!-- TODO: always "offen"?? -->
|
||||
</th>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr class="sectiontableentry<?php echo $k + 1;
|
||||
$k = ($k + 1) % 2; ?><?php echo $params->get('pageclass_sfx'); ?>">
|
||||
<td nowrap style="text-align: center">
|
||||
<?php
|
||||
if ($team->platz != $platz) {
|
||||
@@ -2040,63 +2041,32 @@ 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>";
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ($bilder_anzeigen) {
|
||||
?>
|
||||
<td style="width: 50px" height="50" style="text-align: right">
|
||||
<?php
|
||||
$bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
|
||||
if ($bild != null) {
|
||||
echo $bild;
|
||||
} else if ($team->verein_id != null) {
|
||||
$bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"');
|
||||
if ($bild != null)
|
||||
echo $bild;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?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
|
||||
*/
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
echo "<a href=\"" . SportsManagerURL('&task=team_details&id=' . $team->team_id) . "\">" . htmlentities_utf8(NichtLeererString($team->teamname)) . "</a>";
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ($bilder_anzeigen) {
|
||||
?>
|
||||
<td style="text-align: center;">
|
||||
<?php
|
||||
$bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
|
||||
if ($bild != null) {
|
||||
echo $bild;
|
||||
} else if ($team->verein_id != null) {
|
||||
$bild = bildHTML("vereine", $team->verein_id, 50, 50, 0, 0, 'border="0"');
|
||||
if ($bild != null)
|
||||
echo $bild;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user