Skip to content

Commit

Permalink
korrektur
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Dec 31, 2024
1 parent 31279db commit c9089bb
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 28 deletions.
28 changes: 0 additions & 28 deletions site/views/rosteralltime/tmpl/default_players_new.php

This file was deleted.

92 changes: 92 additions & 0 deletions site/views/rosteralltime/tmpl/default_players_tab.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php
/**
* SportsManagement ein Programm zur Verwaltung für alle Sportarten
* @version 1.0.05
* @package Sportsmanagement
* @subpackage rosteralltime
* @file default_players_tab.php
* @author diddipoeler, stony, svdoldie und donclumsy ([email protected])
* @copyright Copyright: © 2013-2023 Fussball in Europa http://fussballineuropa.de/ All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Factory;

$k = 0;
$position = '';
$totalEvents = array();

// Layout of the columns in the table
// 1. Position number (optional : $this->config['show_player_numbers'])
// 2. Player picture (optional : $this->config['show_player_icon'])
// 3. Country flag (optional : $this->config['show_country_flag'])
// 4. Player name
// 5. Injured/suspended/away icons
// 6. Birthday (optional : $this->config['show_birthday'])
// 7. Games played (optional : $this->overallconfig['use_jl_substitution'] && $this->config['show_games_played'])
// 8. Starting line-up (optional : $this->overallconfig['use_jl_substitution'] && $this->config['show_substitution_stats'])
// 9. In (optional : $this->overallconfig['use_jl_substitution'] && $this->config['show_substitution_stats'])
// 10. Out (optional : $this->overallconfig['use_jl_substitution'] && $this->config['show_substitution_stats'])
// 10. Event type (optional : $this->config['show_events_stats'] && count($this->playereventstats) > 0,
// multiple columns possible (depends on the number of event types for the position))
// 11. Stats type (optional : $this->config['show_stats'] && isset($this->stats[$row->position_id]),
// multiple columns possible (depends on the number of stats types for the position))

$positionHeaderSpan = 0;
$totalcolspan = 0;
if ($this->config['show_player_market_value'])
{
// $positionHeaderSpan++;
// $totalcolspan++;
}
if ($this->config['show_player_market_text'])
{
// $positionHeaderSpan++;
// $totalcolspan++;
}
if ($this->config['show_player_numbers'])
{
$positionHeaderSpan++;
$totalcolspan++;
}
if ($this->config['show_player_icon'] || $this->config['show_staff_icon'])
{
$positionHeaderSpan++;
$totalcolspan++;
}
if ($this->config['show_country_flag'] || $this->config['show_country_flag_staff'])
{
$positionHeaderSpan++;
$totalcolspan++;
}
// Player name and injured/suspended/away columns are always there
$positionHeaderSpan += 2;
$totalcolspan += 2;
if ($this->config['show_birthday'] || $this->config['show_birthday_staff'])
{
$totalcolspan++;
}
//if ($this->overallconfig['use_jl_substitution'])
//{
if ($this->config['show_games_played'])
{
$totalcolspan++;
}
if ($this->config['show_substitution_stats'])
{
$totalcolspan += 3;
}
//}











0 comments on commit c9089bb

Please sign in to comment.