-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31279db
commit c9089bb
Showing
2 changed files
with
92 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
//} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|