mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Hall of Fame - Zuordnung Mannschaftswappen über Teamname
This commit is contained in:
@@ -7788,6 +7788,7 @@ function adminHalloffameMitglieder(): void
|
|||||||
if ($halloffame->spielform == 1){
|
if ($halloffame->spielform == 1){
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$index_vereinid = "verein_id_" . $row->platz;
|
$index_vereinid = "verein_id_" . $row->platz;
|
||||||
|
$index_teamid = "team_id_" . $row->platz;
|
||||||
$index_team = "teamname_" . $row->platz;
|
$index_team = "teamname_" . $row->platz;
|
||||||
if (!isset($mitglieder[$row->jahr])) {
|
if (!isset($mitglieder[$row->jahr])) {
|
||||||
$mitglieder[$row->jahr] = new stdClass();
|
$mitglieder[$row->jahr] = new stdClass();
|
||||||
@@ -7799,6 +7800,14 @@ function adminHalloffameMitglieder(): void
|
|||||||
$halloffame->platz2_zeigen = 1;
|
$halloffame->platz2_zeigen = 1;
|
||||||
if ($row->platz == 3 && !empty($row->teamname))
|
if ($row->platz == 3 && !empty($row->teamname))
|
||||||
$halloffame->platz3_zeigen = 1;
|
$halloffame->platz3_zeigen = 1;
|
||||||
|
|
||||||
|
//Suche team_id wenn keine verein_id vorhanden
|
||||||
|
if (empty($row->verein_id)){
|
||||||
|
$query = "SELECT team_id FROM #__sportsmanager_team WHERE teamname LIKE '$row->teamname%' ORDER BY team_id DESC LIMIT 1;";
|
||||||
|
$mitglieder[$row->jahr]->$index_teamid = loadResult($db, $query);
|
||||||
|
} else {
|
||||||
|
$mitglieder[$row->jahr]->$index_teamid = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($halloffame->spielform == 2 || $halloffame->spielform == 3){
|
if ($halloffame->spielform == 2 || $halloffame->spielform == 3){
|
||||||
|
|||||||
@@ -4484,6 +4484,7 @@ function halloffameDetails($uebergabe_id = 0): void
|
|||||||
if ($halloffame->spielform == 1){
|
if ($halloffame->spielform == 1){
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$index_vereinid = "verein_id_" . $row->platz;
|
$index_vereinid = "verein_id_" . $row->platz;
|
||||||
|
$index_teamid = "team_id_" . $row->platz;
|
||||||
$index_team = "teamname_" . $row->platz;
|
$index_team = "teamname_" . $row->platz;
|
||||||
if (!isset($mitglieder[$row->jahr])) {
|
if (!isset($mitglieder[$row->jahr])) {
|
||||||
$mitglieder[$row->jahr] = new stdClass();
|
$mitglieder[$row->jahr] = new stdClass();
|
||||||
@@ -4495,6 +4496,14 @@ function halloffameDetails($uebergabe_id = 0): void
|
|||||||
$halloffame->platz2_zeigen = 1;
|
$halloffame->platz2_zeigen = 1;
|
||||||
if ($row->platz == 3 && !empty($row->teamname))
|
if ($row->platz == 3 && !empty($row->teamname))
|
||||||
$halloffame->platz3_zeigen = 1;
|
$halloffame->platz3_zeigen = 1;
|
||||||
|
|
||||||
|
//Suche team_id wenn keine verein_id vorhanden
|
||||||
|
if (empty($row->verein_id)){
|
||||||
|
$query = "SELECT team_id FROM #__sportsmanager_team WHERE teamname LIKE '$row->teamname%' ORDER BY team_id DESC LIMIT 1;";
|
||||||
|
$mitglieder[$row->jahr]->$index_teamid = loadResult($db, $query);
|
||||||
|
} else {
|
||||||
|
$mitglieder[$row->jahr]->$index_teamid = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($halloffame->spielform == 2 || $halloffame->spielform == 3){
|
if ($halloffame->spielform == 2 || $halloffame->spielform == 3){
|
||||||
|
|||||||
@@ -4292,7 +4292,6 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame): vo
|
|||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr class="<?php echo $rowclass; ?>">
|
<tr class="<?php echo $rowclass; ?>">
|
||||||
<td nowrap style="text-align:center;">
|
<td nowrap style="text-align:center;">
|
||||||
<?php echo $row->jahr; ?>
|
<?php echo $row->jahr; ?>
|
||||||
@@ -4304,6 +4303,10 @@ static function halloffameDetails($titel, $beschreibung, $rows, $halloffame): vo
|
|||||||
$id = "verein_id_" . $i;
|
$id = "verein_id_" . $i;
|
||||||
$txt = "teamname_" . $i;
|
$txt = "teamname_" . $i;
|
||||||
$type = "vereine";
|
$type = "vereine";
|
||||||
|
if ($row->$id == ""){
|
||||||
|
$id = "team_id_" . $i;
|
||||||
|
$type = "mannschaften";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$id = "spieler1_id_" . $i;
|
$id = "spieler1_id_" . $i;
|
||||||
$txt = "spieler1_" . $i;
|
$txt = "spieler1_" . $i;
|
||||||
|
|||||||
@@ -8228,9 +8228,13 @@ static function adminVerbandsorganMitglieder($rows,$verbandsorgan): void
|
|||||||
if ($i == 2 && !$halloffame->platz2_zeigen) continue;
|
if ($i == 2 && !$halloffame->platz2_zeigen) continue;
|
||||||
if ($i == 3 && !$halloffame->platz3_zeigen) continue;
|
if ($i == 3 && !$halloffame->platz3_zeigen) continue;
|
||||||
if ($halloffame->spielform == 1) {
|
if ($halloffame->spielform == 1) {
|
||||||
$id = "verein_id_" . $i;
|
|
||||||
$txt = "teamname_" . $i;
|
$txt = "teamname_" . $i;
|
||||||
|
$id = "verein_id_" . $i;
|
||||||
$type = "vereine";
|
$type = "vereine";
|
||||||
|
if ($row->$id == ""){
|
||||||
|
$id = "team_id_" . $i;
|
||||||
|
$type = "mannschaften";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$id = "spieler1_id_" . $i;
|
$id = "spieler1_id_" . $i;
|
||||||
$txt = "spieler1_" . $i;
|
$txt = "spieler1_" . $i;
|
||||||
|
|||||||
Reference in New Issue
Block a user