diff --git a/README.md b/README.md index 6ebcf45..a7b35b8 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,40 @@ docker compose exec app php import.php Sobald das Skript durchgelaufen ist, sind die sauberen Daten im System und du kannst die Anwendung auf Port 8080 testen. +## Mannschaften & Vereinslogos + +In der Rangliste, der Tippübersicht und bei der Tippeingabe werden neben den Mannschaftsnamen Vereinslogos bzw. Länderflaggen angezeigt. Da die Mannschaftsnamen in `games` Freitext sind, werden sie über eine kuratierte Zuordnung eindeutig auf eine kanonische Mannschaft abgebildet. + +### Wie die Zuordnung funktioniert + +- Tabelle `teams`: kanonische Mannschaften mit `key`, `type` (`club`/`national`), Anzeigename und Logo-Pfad. +- Tabelle `team_aliases`: normalisierte Namensvarianten (Aliase), inklusive historischer Schreibfehler, die auf eine `teams`-Zeile verweisen. +- `games.team1_id` / `games.team2_id`: verweisen auf die zugeordnete Mannschaft. +- Das Zuordnen übernimmt `App\Models\Team` (Normalisierung + Alias-Lookup). +- Logos liegen unter `public/img/teams/.png`, Flaggen unter `public/img/flags/.png`. + +Die kuratierte Liste (`tools/seed_teams.php`) wird bei jedem Import automatisch aufgebaut — `import.php` ruft `seed_teams()` am Ende auf — und ordnet dabei die Spiele der aktiven Saison zu. Ein Logo/Flagge ohne passende Datei wird einfach nicht angezeigt (kein kaputtes Bild). + +### Neue Mannschaften ergänzen + +Wenn eine neue Mannschaft auftaucht (z. B. in einer neuen Saison), Mapping und Bild einmalig ergänzen: + +1. **Mannschaft eintragen** in `tools/seed_teams.php`: + - Verein → in `$clubs` einen Eintrag `[key, name, [aliase, …]]` ergänzen. + - Nationalteam → in `$national` einen Eintrag `[key, name, [aliase, …], flagCode]` ergänzen. +2. **Bildquelle hinterlegen** in `tools/fetch_logos.py`: + - Verein → in `CLUBS` den Eintrag `"key": "Englischer Wikipedia-Artikeltitel"` ergänzen. + - Nationalteam → den ISO-Ländercode in `FLAGS` ergänzen (UK-Teile: `gb-eng`, `gb-sct`, `gb-wls`, `gb-nir`). +3. **Ausführen** (aus dem `tools/`-Verzeichnis): + ```bash + docker compose exec app php seed_teams.php + python3 fetch_logos.py + ``` + +Der nächste `import_from_dump.sh`-Lauf übernimmt das Mapping automatisch. Für das Testsystem müssen die neuen Logo-Dateien einmalig hochgeladen werden (voller `deploy_test.py`-Lauf ohne `--db-only`); die Datenbank-Spalten werden über den DB-Dump mitgesynct. + +> Hinweis: Vereinslogos sind Markenzeichen der Vereine — für die private Freundes-App in Ordnung, aber nicht zur Weiterverbreitung bestimmt. Länderflaggen sind gemeinfrei. + ## Deployment auf das Testsystem Das Skript `deploy_test.py` lädt das Projekt per FTP nach `tippspiel.programmschmiede.de` hoch und erzeugt dabei eine `.htaccess` mit den nötigen Umgebungsvariablen (DB-Zugang, `APP_URL`) im `public/`-Verzeichnis. Die Zugangsdaten werden aus `docs/testsystem_credentials.txt` gelesen. diff --git a/tippspiel/public/css/style.css b/tippspiel/public/css/style.css index ba7f952..8a20aec 100644 --- a/tippspiel/public/css/style.css +++ b/tippspiel/public/css/style.css @@ -310,6 +310,21 @@ tr.me td:not(.tipp-cell) { background-color: #fff6d6 !important; font-weight: 70 margin-left: 4px; } th.game-header { white-space: normal; } +.team-logo { + height: 1.1em; + width: auto; + vertical-align: middle; + margin-right: 0.25em; +} +/* Logo + Name nebeneinander, vertikal zentriert (für Inline-Wrapper) */ +.team-cell { + display: inline-flex; + align-items: center; + gap: 0.25em; +} +.team-cell .team-logo { + margin-right: 0; +} /* Legende */ .legend { diff --git a/tippspiel/public/img/flags/ad.png b/tippspiel/public/img/flags/ad.png new file mode 100644 index 0000000..fd1e745 Binary files /dev/null and b/tippspiel/public/img/flags/ad.png differ diff --git a/tippspiel/public/img/flags/am.png b/tippspiel/public/img/flags/am.png new file mode 100644 index 0000000..c944486 Binary files /dev/null and b/tippspiel/public/img/flags/am.png differ diff --git a/tippspiel/public/img/flags/ar.png b/tippspiel/public/img/flags/ar.png new file mode 100644 index 0000000..75f031c Binary files /dev/null and b/tippspiel/public/img/flags/ar.png differ diff --git a/tippspiel/public/img/flags/at.png b/tippspiel/public/img/flags/at.png new file mode 100644 index 0000000..57bfd8a Binary files /dev/null and b/tippspiel/public/img/flags/at.png differ diff --git a/tippspiel/public/img/flags/ba.png b/tippspiel/public/img/flags/ba.png new file mode 100644 index 0000000..4c33603 Binary files /dev/null and b/tippspiel/public/img/flags/ba.png differ diff --git a/tippspiel/public/img/flags/be.png b/tippspiel/public/img/flags/be.png new file mode 100644 index 0000000..f6c4198 Binary files /dev/null and b/tippspiel/public/img/flags/be.png differ diff --git a/tippspiel/public/img/flags/bo.png b/tippspiel/public/img/flags/bo.png new file mode 100644 index 0000000..f8a0d2c Binary files /dev/null and b/tippspiel/public/img/flags/bo.png differ diff --git a/tippspiel/public/img/flags/br.png b/tippspiel/public/img/flags/br.png new file mode 100644 index 0000000..fdea752 Binary files /dev/null and b/tippspiel/public/img/flags/br.png differ diff --git a/tippspiel/public/img/flags/ch.png b/tippspiel/public/img/flags/ch.png new file mode 100644 index 0000000..97f6cf2 Binary files /dev/null and b/tippspiel/public/img/flags/ch.png differ diff --git a/tippspiel/public/img/flags/cm.png b/tippspiel/public/img/flags/cm.png new file mode 100644 index 0000000..9920b3a Binary files /dev/null and b/tippspiel/public/img/flags/cm.png differ diff --git a/tippspiel/public/img/flags/cr.png b/tippspiel/public/img/flags/cr.png new file mode 100644 index 0000000..7565c71 Binary files /dev/null and b/tippspiel/public/img/flags/cr.png differ diff --git a/tippspiel/public/img/flags/cy.png b/tippspiel/public/img/flags/cy.png new file mode 100644 index 0000000..81198b2 Binary files /dev/null and b/tippspiel/public/img/flags/cy.png differ diff --git a/tippspiel/public/img/flags/cz.png b/tippspiel/public/img/flags/cz.png new file mode 100644 index 0000000..2230ed3 Binary files /dev/null and b/tippspiel/public/img/flags/cz.png differ diff --git a/tippspiel/public/img/flags/de.png b/tippspiel/public/img/flags/de.png new file mode 100644 index 0000000..a60a67d Binary files /dev/null and b/tippspiel/public/img/flags/de.png differ diff --git a/tippspiel/public/img/flags/dk.png b/tippspiel/public/img/flags/dk.png new file mode 100644 index 0000000..1c8f97e Binary files /dev/null and b/tippspiel/public/img/flags/dk.png differ diff --git a/tippspiel/public/img/flags/ec.png b/tippspiel/public/img/flags/ec.png new file mode 100644 index 0000000..c7e081a Binary files /dev/null and b/tippspiel/public/img/flags/ec.png differ diff --git a/tippspiel/public/img/flags/es.png b/tippspiel/public/img/flags/es.png new file mode 100644 index 0000000..e06d7a0 Binary files /dev/null and b/tippspiel/public/img/flags/es.png differ diff --git a/tippspiel/public/img/flags/fi.png b/tippspiel/public/img/flags/fi.png new file mode 100644 index 0000000..642e224 Binary files /dev/null and b/tippspiel/public/img/flags/fi.png differ diff --git a/tippspiel/public/img/flags/fr.png b/tippspiel/public/img/flags/fr.png new file mode 100644 index 0000000..b606559 Binary files /dev/null and b/tippspiel/public/img/flags/fr.png differ diff --git a/tippspiel/public/img/flags/gb-eng.png b/tippspiel/public/img/flags/gb-eng.png new file mode 100644 index 0000000..1a7e454 Binary files /dev/null and b/tippspiel/public/img/flags/gb-eng.png differ diff --git a/tippspiel/public/img/flags/gb-nir.png b/tippspiel/public/img/flags/gb-nir.png new file mode 100644 index 0000000..0dc9f13 Binary files /dev/null and b/tippspiel/public/img/flags/gb-nir.png differ diff --git a/tippspiel/public/img/flags/gb-sct.png b/tippspiel/public/img/flags/gb-sct.png new file mode 100644 index 0000000..4c6e104 Binary files /dev/null and b/tippspiel/public/img/flags/gb-sct.png differ diff --git a/tippspiel/public/img/flags/gb-wls.png b/tippspiel/public/img/flags/gb-wls.png new file mode 100644 index 0000000..0d4dc84 Binary files /dev/null and b/tippspiel/public/img/flags/gb-wls.png differ diff --git a/tippspiel/public/img/flags/gh.png b/tippspiel/public/img/flags/gh.png new file mode 100644 index 0000000..6cc9d8f Binary files /dev/null and b/tippspiel/public/img/flags/gh.png differ diff --git a/tippspiel/public/img/flags/gr.png b/tippspiel/public/img/flags/gr.png new file mode 100644 index 0000000..3fec1ae Binary files /dev/null and b/tippspiel/public/img/flags/gr.png differ diff --git a/tippspiel/public/img/flags/hr.png b/tippspiel/public/img/flags/hr.png new file mode 100644 index 0000000..32e2dc3 Binary files /dev/null and b/tippspiel/public/img/flags/hr.png differ diff --git a/tippspiel/public/img/flags/hu.png b/tippspiel/public/img/flags/hu.png new file mode 100644 index 0000000..5d67b38 Binary files /dev/null and b/tippspiel/public/img/flags/hu.png differ diff --git a/tippspiel/public/img/flags/ie.png b/tippspiel/public/img/flags/ie.png new file mode 100644 index 0000000..4fe751f Binary files /dev/null and b/tippspiel/public/img/flags/ie.png differ diff --git a/tippspiel/public/img/flags/il.png b/tippspiel/public/img/flags/il.png new file mode 100644 index 0000000..a760e5f Binary files /dev/null and b/tippspiel/public/img/flags/il.png differ diff --git a/tippspiel/public/img/flags/is.png b/tippspiel/public/img/flags/is.png new file mode 100644 index 0000000..b223deb Binary files /dev/null and b/tippspiel/public/img/flags/is.png differ diff --git a/tippspiel/public/img/flags/it.png b/tippspiel/public/img/flags/it.png new file mode 100644 index 0000000..1a15af4 Binary files /dev/null and b/tippspiel/public/img/flags/it.png differ diff --git a/tippspiel/public/img/flags/jp.png b/tippspiel/public/img/flags/jp.png new file mode 100644 index 0000000..ef075bc Binary files /dev/null and b/tippspiel/public/img/flags/jp.png differ diff --git a/tippspiel/public/img/flags/kr.png b/tippspiel/public/img/flags/kr.png new file mode 100644 index 0000000..5aaef19 Binary files /dev/null and b/tippspiel/public/img/flags/kr.png differ diff --git a/tippspiel/public/img/flags/li.png b/tippspiel/public/img/flags/li.png new file mode 100644 index 0000000..f80a658 Binary files /dev/null and b/tippspiel/public/img/flags/li.png differ diff --git a/tippspiel/public/img/flags/lv.png b/tippspiel/public/img/flags/lv.png new file mode 100644 index 0000000..ce27b5e Binary files /dev/null and b/tippspiel/public/img/flags/lv.png differ diff --git a/tippspiel/public/img/flags/mk.png b/tippspiel/public/img/flags/mk.png new file mode 100644 index 0000000..46d1cb0 Binary files /dev/null and b/tippspiel/public/img/flags/mk.png differ diff --git a/tippspiel/public/img/flags/mt.png b/tippspiel/public/img/flags/mt.png new file mode 100644 index 0000000..53d8c46 Binary files /dev/null and b/tippspiel/public/img/flags/mt.png differ diff --git a/tippspiel/public/img/flags/mx.png b/tippspiel/public/img/flags/mx.png new file mode 100644 index 0000000..b0f21fa Binary files /dev/null and b/tippspiel/public/img/flags/mx.png differ diff --git a/tippspiel/public/img/flags/nl.png b/tippspiel/public/img/flags/nl.png new file mode 100644 index 0000000..5aee842 Binary files /dev/null and b/tippspiel/public/img/flags/nl.png differ diff --git a/tippspiel/public/img/flags/no.png b/tippspiel/public/img/flags/no.png new file mode 100644 index 0000000..5606260 Binary files /dev/null and b/tippspiel/public/img/flags/no.png differ diff --git a/tippspiel/public/img/flags/pl.png b/tippspiel/public/img/flags/pl.png new file mode 100644 index 0000000..943a6dd Binary files /dev/null and b/tippspiel/public/img/flags/pl.png differ diff --git a/tippspiel/public/img/flags/pt.png b/tippspiel/public/img/flags/pt.png new file mode 100644 index 0000000..8f9b3dc Binary files /dev/null and b/tippspiel/public/img/flags/pt.png differ diff --git a/tippspiel/public/img/flags/qa.png b/tippspiel/public/img/flags/qa.png new file mode 100644 index 0000000..85c7993 Binary files /dev/null and b/tippspiel/public/img/flags/qa.png differ diff --git a/tippspiel/public/img/flags/ro.png b/tippspiel/public/img/flags/ro.png new file mode 100644 index 0000000..4abfb2c Binary files /dev/null and b/tippspiel/public/img/flags/ro.png differ diff --git a/tippspiel/public/img/flags/rs.png b/tippspiel/public/img/flags/rs.png new file mode 100644 index 0000000..53993ae Binary files /dev/null and b/tippspiel/public/img/flags/rs.png differ diff --git a/tippspiel/public/img/flags/ru.png b/tippspiel/public/img/flags/ru.png new file mode 100644 index 0000000..6139dbc Binary files /dev/null and b/tippspiel/public/img/flags/ru.png differ diff --git a/tippspiel/public/img/flags/se.png b/tippspiel/public/img/flags/se.png new file mode 100644 index 0000000..8173cf7 Binary files /dev/null and b/tippspiel/public/img/flags/se.png differ diff --git a/tippspiel/public/img/flags/si.png b/tippspiel/public/img/flags/si.png new file mode 100644 index 0000000..8a27e2f Binary files /dev/null and b/tippspiel/public/img/flags/si.png differ diff --git a/tippspiel/public/img/flags/sk.png b/tippspiel/public/img/flags/sk.png new file mode 100644 index 0000000..9258795 Binary files /dev/null and b/tippspiel/public/img/flags/sk.png differ diff --git a/tippspiel/public/img/flags/sm.png b/tippspiel/public/img/flags/sm.png new file mode 100644 index 0000000..04afc0a Binary files /dev/null and b/tippspiel/public/img/flags/sm.png differ diff --git a/tippspiel/public/img/flags/sn.png b/tippspiel/public/img/flags/sn.png new file mode 100644 index 0000000..4983ef7 Binary files /dev/null and b/tippspiel/public/img/flags/sn.png differ diff --git a/tippspiel/public/img/flags/sr.png b/tippspiel/public/img/flags/sr.png new file mode 100644 index 0000000..846fe29 Binary files /dev/null and b/tippspiel/public/img/flags/sr.png differ diff --git a/tippspiel/public/img/flags/tr.png b/tippspiel/public/img/flags/tr.png new file mode 100644 index 0000000..73a0bb9 Binary files /dev/null and b/tippspiel/public/img/flags/tr.png differ diff --git a/tippspiel/public/img/flags/ua.png b/tippspiel/public/img/flags/ua.png new file mode 100644 index 0000000..0387404 Binary files /dev/null and b/tippspiel/public/img/flags/ua.png differ diff --git a/tippspiel/public/img/flags/us.png b/tippspiel/public/img/flags/us.png new file mode 100644 index 0000000..058fd15 Binary files /dev/null and b/tippspiel/public/img/flags/us.png differ diff --git a/tippspiel/public/img/flags/uy.png b/tippspiel/public/img/flags/uy.png new file mode 100644 index 0000000..6226d59 Binary files /dev/null and b/tippspiel/public/img/flags/uy.png differ diff --git a/tippspiel/public/img/teams/1860-muenchen.png b/tippspiel/public/img/teams/1860-muenchen.png new file mode 100644 index 0000000..aa2feb2 Binary files /dev/null and b/tippspiel/public/img/teams/1860-muenchen.png differ diff --git a/tippspiel/public/img/teams/ac-milan.png b/tippspiel/public/img/teams/ac-milan.png new file mode 100644 index 0000000..3971ac7 Binary files /dev/null and b/tippspiel/public/img/teams/ac-milan.png differ diff --git a/tippspiel/public/img/teams/ajax.png b/tippspiel/public/img/teams/ajax.png new file mode 100644 index 0000000..7a6a9ee Binary files /dev/null and b/tippspiel/public/img/teams/ajax.png differ diff --git a/tippspiel/public/img/teams/alemannia-aachen.png b/tippspiel/public/img/teams/alemannia-aachen.png new file mode 100644 index 0000000..e7fcad3 Binary files /dev/null and b/tippspiel/public/img/teams/alemannia-aachen.png differ diff --git a/tippspiel/public/img/teams/arminia-bielefeld.png b/tippspiel/public/img/teams/arminia-bielefeld.png new file mode 100644 index 0000000..2cb2731 Binary files /dev/null and b/tippspiel/public/img/teams/arminia-bielefeld.png differ diff --git a/tippspiel/public/img/teams/arsenal.png b/tippspiel/public/img/teams/arsenal.png new file mode 100644 index 0000000..16153c2 Binary files /dev/null and b/tippspiel/public/img/teams/arsenal.png differ diff --git a/tippspiel/public/img/teams/as-monaco.png b/tippspiel/public/img/teams/as-monaco.png new file mode 100644 index 0000000..693fafc Binary files /dev/null and b/tippspiel/public/img/teams/as-monaco.png differ diff --git a/tippspiel/public/img/teams/as-roma.png b/tippspiel/public/img/teams/as-roma.png new file mode 100644 index 0000000..4e3c629 Binary files /dev/null and b/tippspiel/public/img/teams/as-roma.png differ diff --git a/tippspiel/public/img/teams/aston-villa.png b/tippspiel/public/img/teams/aston-villa.png new file mode 100644 index 0000000..f7683b7 Binary files /dev/null and b/tippspiel/public/img/teams/aston-villa.png differ diff --git a/tippspiel/public/img/teams/atalanta.png b/tippspiel/public/img/teams/atalanta.png new file mode 100644 index 0000000..1371b33 Binary files /dev/null and b/tippspiel/public/img/teams/atalanta.png differ diff --git a/tippspiel/public/img/teams/athletic-bilbao.png b/tippspiel/public/img/teams/athletic-bilbao.png new file mode 100644 index 0000000..7c4fa85 Binary files /dev/null and b/tippspiel/public/img/teams/athletic-bilbao.png differ diff --git a/tippspiel/public/img/teams/atletico-madrid.png b/tippspiel/public/img/teams/atletico-madrid.png new file mode 100644 index 0000000..87b3c4f Binary files /dev/null and b/tippspiel/public/img/teams/atletico-madrid.png differ diff --git a/tippspiel/public/img/teams/barcelona.png b/tippspiel/public/img/teams/barcelona.png new file mode 100644 index 0000000..00a53b8 Binary files /dev/null and b/tippspiel/public/img/teams/barcelona.png differ diff --git a/tippspiel/public/img/teams/basaksehir.png b/tippspiel/public/img/teams/basaksehir.png new file mode 100644 index 0000000..076a3a7 Binary files /dev/null and b/tippspiel/public/img/teams/basaksehir.png differ diff --git a/tippspiel/public/img/teams/bayer-leverkusen.png b/tippspiel/public/img/teams/bayer-leverkusen.png new file mode 100644 index 0000000..58d21c7 Binary files /dev/null and b/tippspiel/public/img/teams/bayer-leverkusen.png differ diff --git a/tippspiel/public/img/teams/bayreuth.png b/tippspiel/public/img/teams/bayreuth.png new file mode 100644 index 0000000..3d6070d Binary files /dev/null and b/tippspiel/public/img/teams/bayreuth.png differ diff --git a/tippspiel/public/img/teams/benfica.png b/tippspiel/public/img/teams/benfica.png new file mode 100644 index 0000000..c2fc574 Binary files /dev/null and b/tippspiel/public/img/teams/benfica.png differ diff --git a/tippspiel/public/img/teams/besiktas.png b/tippspiel/public/img/teams/besiktas.png new file mode 100644 index 0000000..32f82f9 Binary files /dev/null and b/tippspiel/public/img/teams/besiktas.png differ diff --git a/tippspiel/public/img/teams/bodo-glimt.png b/tippspiel/public/img/teams/bodo-glimt.png new file mode 100644 index 0000000..4443817 Binary files /dev/null and b/tippspiel/public/img/teams/bodo-glimt.png differ diff --git a/tippspiel/public/img/teams/bologna.png b/tippspiel/public/img/teams/bologna.png new file mode 100644 index 0000000..d343183 Binary files /dev/null and b/tippspiel/public/img/teams/bologna.png differ diff --git a/tippspiel/public/img/teams/borussia-dortmund.png b/tippspiel/public/img/teams/borussia-dortmund.png new file mode 100644 index 0000000..7a0fc12 Binary files /dev/null and b/tippspiel/public/img/teams/borussia-dortmund.png differ diff --git a/tippspiel/public/img/teams/borussia-moenchengladbach.png b/tippspiel/public/img/teams/borussia-moenchengladbach.png new file mode 100644 index 0000000..4dd94d3 Binary files /dev/null and b/tippspiel/public/img/teams/borussia-moenchengladbach.png differ diff --git a/tippspiel/public/img/teams/braga.png b/tippspiel/public/img/teams/braga.png new file mode 100644 index 0000000..4a900ec Binary files /dev/null and b/tippspiel/public/img/teams/braga.png differ diff --git a/tippspiel/public/img/teams/carl-zeiss-jena.png b/tippspiel/public/img/teams/carl-zeiss-jena.png new file mode 100644 index 0000000..0a7304a Binary files /dev/null and b/tippspiel/public/img/teams/carl-zeiss-jena.png differ diff --git a/tippspiel/public/img/teams/celtic.png b/tippspiel/public/img/teams/celtic.png new file mode 100644 index 0000000..83bc5a3 Binary files /dev/null and b/tippspiel/public/img/teams/celtic.png differ diff --git a/tippspiel/public/img/teams/chelsea.png b/tippspiel/public/img/teams/chelsea.png new file mode 100644 index 0000000..0f6c55d Binary files /dev/null and b/tippspiel/public/img/teams/chelsea.png differ diff --git a/tippspiel/public/img/teams/club-brugge.png b/tippspiel/public/img/teams/club-brugge.png new file mode 100644 index 0000000..46eacb3 Binary files /dev/null and b/tippspiel/public/img/teams/club-brugge.png differ diff --git a/tippspiel/public/img/teams/como.png b/tippspiel/public/img/teams/como.png new file mode 100644 index 0000000..b4b7592 Binary files /dev/null and b/tippspiel/public/img/teams/como.png differ diff --git a/tippspiel/public/img/teams/copenhagen.png b/tippspiel/public/img/teams/copenhagen.png new file mode 100644 index 0000000..27fbcde Binary files /dev/null and b/tippspiel/public/img/teams/copenhagen.png differ diff --git a/tippspiel/public/img/teams/crystal-palace.png b/tippspiel/public/img/teams/crystal-palace.png new file mode 100644 index 0000000..758446b Binary files /dev/null and b/tippspiel/public/img/teams/crystal-palace.png differ diff --git a/tippspiel/public/img/teams/darmstadt-98.png b/tippspiel/public/img/teams/darmstadt-98.png new file mode 100644 index 0000000..9bf0fce Binary files /dev/null and b/tippspiel/public/img/teams/darmstadt-98.png differ diff --git a/tippspiel/public/img/teams/dinamo-zagreb.png b/tippspiel/public/img/teams/dinamo-zagreb.png new file mode 100644 index 0000000..a330564 Binary files /dev/null and b/tippspiel/public/img/teams/dinamo-zagreb.png differ diff --git a/tippspiel/public/img/teams/dynamo-dresden.png b/tippspiel/public/img/teams/dynamo-dresden.png new file mode 100644 index 0000000..b494e5b Binary files /dev/null and b/tippspiel/public/img/teams/dynamo-dresden.png differ diff --git a/tippspiel/public/img/teams/dynamo-kyiv.png b/tippspiel/public/img/teams/dynamo-kyiv.png new file mode 100644 index 0000000..a7851bd Binary files /dev/null and b/tippspiel/public/img/teams/dynamo-kyiv.png differ diff --git a/tippspiel/public/img/teams/eintracht-braunschweig.png b/tippspiel/public/img/teams/eintracht-braunschweig.png new file mode 100644 index 0000000..857e2ec Binary files /dev/null and b/tippspiel/public/img/teams/eintracht-braunschweig.png differ diff --git a/tippspiel/public/img/teams/eintracht-frankfurt.png b/tippspiel/public/img/teams/eintracht-frankfurt.png new file mode 100644 index 0000000..78b2e5c Binary files /dev/null and b/tippspiel/public/img/teams/eintracht-frankfurt.png differ diff --git a/tippspiel/public/img/teams/energie-cottbus.png b/tippspiel/public/img/teams/energie-cottbus.png new file mode 100644 index 0000000..67fa3ff Binary files /dev/null and b/tippspiel/public/img/teams/energie-cottbus.png differ diff --git a/tippspiel/public/img/teams/erzgebirge-aue.png b/tippspiel/public/img/teams/erzgebirge-aue.png new file mode 100644 index 0000000..711814e Binary files /dev/null and b/tippspiel/public/img/teams/erzgebirge-aue.png differ diff --git a/tippspiel/public/img/teams/espanyol.png b/tippspiel/public/img/teams/espanyol.png new file mode 100644 index 0000000..8d7cb60 Binary files /dev/null and b/tippspiel/public/img/teams/espanyol.png differ diff --git a/tippspiel/public/img/teams/fc-augsburg.png b/tippspiel/public/img/teams/fc-augsburg.png new file mode 100644 index 0000000..038b5de Binary files /dev/null and b/tippspiel/public/img/teams/fc-augsburg.png differ diff --git a/tippspiel/public/img/teams/fc-bayern-muenchen.png b/tippspiel/public/img/teams/fc-bayern-muenchen.png new file mode 100644 index 0000000..eed7de5 Binary files /dev/null and b/tippspiel/public/img/teams/fc-bayern-muenchen.png differ diff --git a/tippspiel/public/img/teams/fc-heidenheim.png b/tippspiel/public/img/teams/fc-heidenheim.png new file mode 100644 index 0000000..eea3157 Binary files /dev/null and b/tippspiel/public/img/teams/fc-heidenheim.png differ diff --git a/tippspiel/public/img/teams/fc-homburg.png b/tippspiel/public/img/teams/fc-homburg.png new file mode 100644 index 0000000..14a46cb Binary files /dev/null and b/tippspiel/public/img/teams/fc-homburg.png differ diff --git a/tippspiel/public/img/teams/fc-koeln.png b/tippspiel/public/img/teams/fc-koeln.png new file mode 100644 index 0000000..9cdebbb Binary files /dev/null and b/tippspiel/public/img/teams/fc-koeln.png differ diff --git a/tippspiel/public/img/teams/fc-st-pauli.png b/tippspiel/public/img/teams/fc-st-pauli.png new file mode 100644 index 0000000..f951c0d Binary files /dev/null and b/tippspiel/public/img/teams/fc-st-pauli.png differ diff --git a/tippspiel/public/img/teams/fenerbahce.png b/tippspiel/public/img/teams/fenerbahce.png new file mode 100644 index 0000000..2bf4f79 Binary files /dev/null and b/tippspiel/public/img/teams/fenerbahce.png differ diff --git a/tippspiel/public/img/teams/ferencvaros.png b/tippspiel/public/img/teams/ferencvaros.png new file mode 100644 index 0000000..8a1d174 Binary files /dev/null and b/tippspiel/public/img/teams/ferencvaros.png differ diff --git a/tippspiel/public/img/teams/feyenoord.png b/tippspiel/public/img/teams/feyenoord.png new file mode 100644 index 0000000..c0502fa Binary files /dev/null and b/tippspiel/public/img/teams/feyenoord.png differ diff --git a/tippspiel/public/img/teams/fiorentina.png b/tippspiel/public/img/teams/fiorentina.png new file mode 100644 index 0000000..5ad8b63 Binary files /dev/null and b/tippspiel/public/img/teams/fiorentina.png differ diff --git a/tippspiel/public/img/teams/fortuna-duesseldorf.png b/tippspiel/public/img/teams/fortuna-duesseldorf.png new file mode 100644 index 0000000..e735808 Binary files /dev/null and b/tippspiel/public/img/teams/fortuna-duesseldorf.png differ diff --git a/tippspiel/public/img/teams/fortuna-koeln.png b/tippspiel/public/img/teams/fortuna-koeln.png new file mode 100644 index 0000000..05ca6d4 Binary files /dev/null and b/tippspiel/public/img/teams/fortuna-koeln.png differ diff --git a/tippspiel/public/img/teams/galatasaray.png b/tippspiel/public/img/teams/galatasaray.png new file mode 100644 index 0000000..cca2a2a Binary files /dev/null and b/tippspiel/public/img/teams/galatasaray.png differ diff --git a/tippspiel/public/img/teams/gent.png b/tippspiel/public/img/teams/gent.png new file mode 100644 index 0000000..392e25e Binary files /dev/null and b/tippspiel/public/img/teams/gent.png differ diff --git a/tippspiel/public/img/teams/getafe.png b/tippspiel/public/img/teams/getafe.png new file mode 100644 index 0000000..2a1753d Binary files /dev/null and b/tippspiel/public/img/teams/getafe.png differ diff --git a/tippspiel/public/img/teams/greuther-fuerth.png b/tippspiel/public/img/teams/greuther-fuerth.png new file mode 100644 index 0000000..69118bf Binary files /dev/null and b/tippspiel/public/img/teams/greuther-fuerth.png differ diff --git a/tippspiel/public/img/teams/hallescher-fc.png b/tippspiel/public/img/teams/hallescher-fc.png new file mode 100644 index 0000000..2c442eb Binary files /dev/null and b/tippspiel/public/img/teams/hallescher-fc.png differ diff --git a/tippspiel/public/img/teams/hamburger-sv.png b/tippspiel/public/img/teams/hamburger-sv.png new file mode 100644 index 0000000..9035188 Binary files /dev/null and b/tippspiel/public/img/teams/hamburger-sv.png differ diff --git a/tippspiel/public/img/teams/hannover-96.png b/tippspiel/public/img/teams/hannover-96.png new file mode 100644 index 0000000..134e934 Binary files /dev/null and b/tippspiel/public/img/teams/hannover-96.png differ diff --git a/tippspiel/public/img/teams/hansa-rostock.png b/tippspiel/public/img/teams/hansa-rostock.png new file mode 100644 index 0000000..dd13f34 Binary files /dev/null and b/tippspiel/public/img/teams/hansa-rostock.png differ diff --git a/tippspiel/public/img/teams/hertha-bsc.png b/tippspiel/public/img/teams/hertha-bsc.png new file mode 100644 index 0000000..a40b3c8 Binary files /dev/null and b/tippspiel/public/img/teams/hertha-bsc.png differ diff --git a/tippspiel/public/img/teams/holstein-kiel.png b/tippspiel/public/img/teams/holstein-kiel.png new file mode 100644 index 0000000..48dc203 Binary files /dev/null and b/tippspiel/public/img/teams/holstein-kiel.png differ diff --git a/tippspiel/public/img/teams/illertissen.png b/tippspiel/public/img/teams/illertissen.png new file mode 100644 index 0000000..6a28bb7 Binary files /dev/null and b/tippspiel/public/img/teams/illertissen.png differ diff --git a/tippspiel/public/img/teams/ingolstadt.png b/tippspiel/public/img/teams/ingolstadt.png new file mode 100644 index 0000000..811188a Binary files /dev/null and b/tippspiel/public/img/teams/ingolstadt.png differ diff --git a/tippspiel/public/img/teams/inter-milan.png b/tippspiel/public/img/teams/inter-milan.png new file mode 100644 index 0000000..a788356 Binary files /dev/null and b/tippspiel/public/img/teams/inter-milan.png differ diff --git a/tippspiel/public/img/teams/jahn-regensburg.png b/tippspiel/public/img/teams/jahn-regensburg.png new file mode 100644 index 0000000..0bbf6f0 Binary files /dev/null and b/tippspiel/public/img/teams/jahn-regensburg.png differ diff --git a/tippspiel/public/img/teams/juventus.png b/tippspiel/public/img/teams/juventus.png new file mode 100644 index 0000000..a98eea4 Binary files /dev/null and b/tippspiel/public/img/teams/juventus.png differ diff --git a/tippspiel/public/img/teams/kaiserslautern.png b/tippspiel/public/img/teams/kaiserslautern.png new file mode 100644 index 0000000..2234c6a Binary files /dev/null and b/tippspiel/public/img/teams/kaiserslautern.png differ diff --git a/tippspiel/public/img/teams/karlsruher-sc.png b/tippspiel/public/img/teams/karlsruher-sc.png new file mode 100644 index 0000000..5fd6539 Binary files /dev/null and b/tippspiel/public/img/teams/karlsruher-sc.png differ diff --git a/tippspiel/public/img/teams/kickers-offenbach.png b/tippspiel/public/img/teams/kickers-offenbach.png new file mode 100644 index 0000000..db1dca6 Binary files /dev/null and b/tippspiel/public/img/teams/kickers-offenbach.png differ diff --git a/tippspiel/public/img/teams/krasnodar.png b/tippspiel/public/img/teams/krasnodar.png new file mode 100644 index 0000000..5d1586a Binary files /dev/null and b/tippspiel/public/img/teams/krasnodar.png differ diff --git a/tippspiel/public/img/teams/lazio.png b/tippspiel/public/img/teams/lazio.png new file mode 100644 index 0000000..4c314d7 Binary files /dev/null and b/tippspiel/public/img/teams/lazio.png differ diff --git a/tippspiel/public/img/teams/lille.png b/tippspiel/public/img/teams/lille.png new file mode 100644 index 0000000..8de009a Binary files /dev/null and b/tippspiel/public/img/teams/lille.png differ diff --git a/tippspiel/public/img/teams/liverpool.png b/tippspiel/public/img/teams/liverpool.png new file mode 100644 index 0000000..7b350a9 Binary files /dev/null and b/tippspiel/public/img/teams/liverpool.png differ diff --git a/tippspiel/public/img/teams/lok-leipzig.png b/tippspiel/public/img/teams/lok-leipzig.png new file mode 100644 index 0000000..ce1701b Binary files /dev/null and b/tippspiel/public/img/teams/lok-leipzig.png differ diff --git a/tippspiel/public/img/teams/lokomotiv-moscow.png b/tippspiel/public/img/teams/lokomotiv-moscow.png new file mode 100644 index 0000000..752c278 Binary files /dev/null and b/tippspiel/public/img/teams/lokomotiv-moscow.png differ diff --git a/tippspiel/public/img/teams/lyon.png b/tippspiel/public/img/teams/lyon.png new file mode 100644 index 0000000..e282baf Binary files /dev/null and b/tippspiel/public/img/teams/lyon.png differ diff --git a/tippspiel/public/img/teams/maccabi-tel-aviv.png b/tippspiel/public/img/teams/maccabi-tel-aviv.png new file mode 100644 index 0000000..6e6e667 Binary files /dev/null and b/tippspiel/public/img/teams/maccabi-tel-aviv.png differ diff --git a/tippspiel/public/img/teams/magdeburg.png b/tippspiel/public/img/teams/magdeburg.png new file mode 100644 index 0000000..8132023 Binary files /dev/null and b/tippspiel/public/img/teams/magdeburg.png differ diff --git a/tippspiel/public/img/teams/mainz-05.png b/tippspiel/public/img/teams/mainz-05.png new file mode 100644 index 0000000..e6c14ba Binary files /dev/null and b/tippspiel/public/img/teams/mainz-05.png differ diff --git a/tippspiel/public/img/teams/manchester-city.png b/tippspiel/public/img/teams/manchester-city.png new file mode 100644 index 0000000..b0dd155 Binary files /dev/null and b/tippspiel/public/img/teams/manchester-city.png differ diff --git a/tippspiel/public/img/teams/manchester-united.png b/tippspiel/public/img/teams/manchester-united.png new file mode 100644 index 0000000..9164dc3 Binary files /dev/null and b/tippspiel/public/img/teams/manchester-united.png differ diff --git a/tippspiel/public/img/teams/marseille.png b/tippspiel/public/img/teams/marseille.png new file mode 100644 index 0000000..01e4a18 Binary files /dev/null and b/tippspiel/public/img/teams/marseille.png differ diff --git a/tippspiel/public/img/teams/midtjylland.png b/tippspiel/public/img/teams/midtjylland.png new file mode 100644 index 0000000..0381800 Binary files /dev/null and b/tippspiel/public/img/teams/midtjylland.png differ diff --git a/tippspiel/public/img/teams/molde.png b/tippspiel/public/img/teams/molde.png new file mode 100644 index 0000000..e2ac4a8 Binary files /dev/null and b/tippspiel/public/img/teams/molde.png differ diff --git a/tippspiel/public/img/teams/msv-duisburg.png b/tippspiel/public/img/teams/msv-duisburg.png new file mode 100644 index 0000000..df140f2 Binary files /dev/null and b/tippspiel/public/img/teams/msv-duisburg.png differ diff --git a/tippspiel/public/img/teams/napoli.png b/tippspiel/public/img/teams/napoli.png new file mode 100644 index 0000000..5340a83 Binary files /dev/null and b/tippspiel/public/img/teams/napoli.png differ diff --git a/tippspiel/public/img/teams/newcastle.png b/tippspiel/public/img/teams/newcastle.png new file mode 100644 index 0000000..04f7906 Binary files /dev/null and b/tippspiel/public/img/teams/newcastle.png differ diff --git a/tippspiel/public/img/teams/nice.png b/tippspiel/public/img/teams/nice.png new file mode 100644 index 0000000..9078bea Binary files /dev/null and b/tippspiel/public/img/teams/nice.png differ diff --git a/tippspiel/public/img/teams/nottingham-forest.png b/tippspiel/public/img/teams/nottingham-forest.png new file mode 100644 index 0000000..d14d81b Binary files /dev/null and b/tippspiel/public/img/teams/nottingham-forest.png differ diff --git a/tippspiel/public/img/teams/nuernberg.png b/tippspiel/public/img/teams/nuernberg.png new file mode 100644 index 0000000..2ce5294 Binary files /dev/null and b/tippspiel/public/img/teams/nuernberg.png differ diff --git a/tippspiel/public/img/teams/olympiacos.png b/tippspiel/public/img/teams/olympiacos.png new file mode 100644 index 0000000..977c0a2 Binary files /dev/null and b/tippspiel/public/img/teams/olympiacos.png differ diff --git a/tippspiel/public/img/teams/omonia.png b/tippspiel/public/img/teams/omonia.png new file mode 100644 index 0000000..a3390e8 Binary files /dev/null and b/tippspiel/public/img/teams/omonia.png differ diff --git a/tippspiel/public/img/teams/paok.png b/tippspiel/public/img/teams/paok.png new file mode 100644 index 0000000..85ae256 Binary files /dev/null and b/tippspiel/public/img/teams/paok.png differ diff --git a/tippspiel/public/img/teams/paris-saint-germain.png b/tippspiel/public/img/teams/paris-saint-germain.png new file mode 100644 index 0000000..69b28fc Binary files /dev/null and b/tippspiel/public/img/teams/paris-saint-germain.png differ diff --git a/tippspiel/public/img/teams/porto.png b/tippspiel/public/img/teams/porto.png new file mode 100644 index 0000000..6b2d47c Binary files /dev/null and b/tippspiel/public/img/teams/porto.png differ diff --git a/tippspiel/public/img/teams/preussen-muenster.png b/tippspiel/public/img/teams/preussen-muenster.png new file mode 100644 index 0000000..e96f55d Binary files /dev/null and b/tippspiel/public/img/teams/preussen-muenster.png differ diff --git a/tippspiel/public/img/teams/psv.png b/tippspiel/public/img/teams/psv.png new file mode 100644 index 0000000..93bb7ec Binary files /dev/null and b/tippspiel/public/img/teams/psv.png differ diff --git a/tippspiel/public/img/teams/qarabag.png b/tippspiel/public/img/teams/qarabag.png new file mode 100644 index 0000000..e4f9006 Binary files /dev/null and b/tippspiel/public/img/teams/qarabag.png differ diff --git a/tippspiel/public/img/teams/rangers.png b/tippspiel/public/img/teams/rangers.png new file mode 100644 index 0000000..46e96a4 Binary files /dev/null and b/tippspiel/public/img/teams/rangers.png differ diff --git a/tippspiel/public/img/teams/rayo-vallecano.png b/tippspiel/public/img/teams/rayo-vallecano.png new file mode 100644 index 0000000..ee0fa8c Binary files /dev/null and b/tippspiel/public/img/teams/rayo-vallecano.png differ diff --git a/tippspiel/public/img/teams/rb-leipzig.png b/tippspiel/public/img/teams/rb-leipzig.png new file mode 100644 index 0000000..86ae4d0 Binary files /dev/null and b/tippspiel/public/img/teams/rb-leipzig.png differ diff --git a/tippspiel/public/img/teams/rb-salzburg.png b/tippspiel/public/img/teams/rb-salzburg.png new file mode 100644 index 0000000..2f8182f Binary files /dev/null and b/tippspiel/public/img/teams/rb-salzburg.png differ diff --git a/tippspiel/public/img/teams/real-betis.png b/tippspiel/public/img/teams/real-betis.png new file mode 100644 index 0000000..a2586c3 Binary files /dev/null and b/tippspiel/public/img/teams/real-betis.png differ diff --git a/tippspiel/public/img/teams/real-madrid.png b/tippspiel/public/img/teams/real-madrid.png new file mode 100644 index 0000000..755cdb3 Binary files /dev/null and b/tippspiel/public/img/teams/real-madrid.png differ diff --git a/tippspiel/public/img/teams/real-sociedad.png b/tippspiel/public/img/teams/real-sociedad.png new file mode 100644 index 0000000..1b4ccf5 Binary files /dev/null and b/tippspiel/public/img/teams/real-sociedad.png differ diff --git a/tippspiel/public/img/teams/red-star-belgrade.png b/tippspiel/public/img/teams/red-star-belgrade.png new file mode 100644 index 0000000..b236fa4 Binary files /dev/null and b/tippspiel/public/img/teams/red-star-belgrade.png differ diff --git a/tippspiel/public/img/teams/rot-weiss-essen.png b/tippspiel/public/img/teams/rot-weiss-essen.png new file mode 100644 index 0000000..f2c0351 Binary files /dev/null and b/tippspiel/public/img/teams/rot-weiss-essen.png differ diff --git a/tippspiel/public/img/teams/saarbruecken.png b/tippspiel/public/img/teams/saarbruecken.png new file mode 100644 index 0000000..33814f1 Binary files /dev/null and b/tippspiel/public/img/teams/saarbruecken.png differ diff --git a/tippspiel/public/img/teams/sandhausen.png b/tippspiel/public/img/teams/sandhausen.png new file mode 100644 index 0000000..4975ea2 Binary files /dev/null and b/tippspiel/public/img/teams/sandhausen.png differ diff --git a/tippspiel/public/img/teams/sc-freiburg.png b/tippspiel/public/img/teams/sc-freiburg.png new file mode 100644 index 0000000..05439be Binary files /dev/null and b/tippspiel/public/img/teams/sc-freiburg.png differ diff --git a/tippspiel/public/img/teams/sc-paderborn.png b/tippspiel/public/img/teams/sc-paderborn.png new file mode 100644 index 0000000..6e7d4a3 Binary files /dev/null and b/tippspiel/public/img/teams/sc-paderborn.png differ diff --git a/tippspiel/public/img/teams/sc-verl.png b/tippspiel/public/img/teams/sc-verl.png new file mode 100644 index 0000000..6c28bd7 Binary files /dev/null and b/tippspiel/public/img/teams/sc-verl.png differ diff --git a/tippspiel/public/img/teams/schalke-04.png b/tippspiel/public/img/teams/schalke-04.png new file mode 100644 index 0000000..178b50a Binary files /dev/null and b/tippspiel/public/img/teams/schalke-04.png differ diff --git a/tippspiel/public/img/teams/schweinfurt-05.png b/tippspiel/public/img/teams/schweinfurt-05.png new file mode 100644 index 0000000..827334c Binary files /dev/null and b/tippspiel/public/img/teams/schweinfurt-05.png differ diff --git a/tippspiel/public/img/teams/sevilla.png b/tippspiel/public/img/teams/sevilla.png new file mode 100644 index 0000000..996fe95 Binary files /dev/null and b/tippspiel/public/img/teams/sevilla.png differ diff --git a/tippspiel/public/img/teams/shakhtar-donetsk.png b/tippspiel/public/img/teams/shakhtar-donetsk.png new file mode 100644 index 0000000..39da785 Binary files /dev/null and b/tippspiel/public/img/teams/shakhtar-donetsk.png differ diff --git a/tippspiel/public/img/teams/sheriff-tiraspol.png b/tippspiel/public/img/teams/sheriff-tiraspol.png new file mode 100644 index 0000000..c994847 Binary files /dev/null and b/tippspiel/public/img/teams/sheriff-tiraspol.png differ diff --git a/tippspiel/public/img/teams/slavia-prague.png b/tippspiel/public/img/teams/slavia-prague.png new file mode 100644 index 0000000..a8af3f3 Binary files /dev/null and b/tippspiel/public/img/teams/slavia-prague.png differ diff --git a/tippspiel/public/img/teams/slovan-bratislava.png b/tippspiel/public/img/teams/slovan-bratislava.png new file mode 100644 index 0000000..be3a21e Binary files /dev/null and b/tippspiel/public/img/teams/slovan-bratislava.png differ diff --git a/tippspiel/public/img/teams/sparta-prague.png b/tippspiel/public/img/teams/sparta-prague.png new file mode 100644 index 0000000..5784e5f Binary files /dev/null and b/tippspiel/public/img/teams/sparta-prague.png differ diff --git a/tippspiel/public/img/teams/sporting-cp.png b/tippspiel/public/img/teams/sporting-cp.png new file mode 100644 index 0000000..99019bc Binary files /dev/null and b/tippspiel/public/img/teams/sporting-cp.png differ diff --git a/tippspiel/public/img/teams/ssv-ulm.png b/tippspiel/public/img/teams/ssv-ulm.png new file mode 100644 index 0000000..b2f12e8 Binary files /dev/null and b/tippspiel/public/img/teams/ssv-ulm.png differ diff --git a/tippspiel/public/img/teams/sturm-graz.png b/tippspiel/public/img/teams/sturm-graz.png new file mode 100644 index 0000000..17a32f7 Binary files /dev/null and b/tippspiel/public/img/teams/sturm-graz.png differ diff --git a/tippspiel/public/img/teams/sv-elversberg.png b/tippspiel/public/img/teams/sv-elversberg.png new file mode 100644 index 0000000..cf41623 Binary files /dev/null and b/tippspiel/public/img/teams/sv-elversberg.png differ diff --git a/tippspiel/public/img/teams/sv-meppen.png b/tippspiel/public/img/teams/sv-meppen.png new file mode 100644 index 0000000..ac7345f Binary files /dev/null and b/tippspiel/public/img/teams/sv-meppen.png differ diff --git a/tippspiel/public/img/teams/sv-wehen-wiesbaden.png b/tippspiel/public/img/teams/sv-wehen-wiesbaden.png new file mode 100644 index 0000000..ee6c047 Binary files /dev/null and b/tippspiel/public/img/teams/sv-wehen-wiesbaden.png differ diff --git a/tippspiel/public/img/teams/tottenham.png b/tippspiel/public/img/teams/tottenham.png new file mode 100644 index 0000000..c013e28 Binary files /dev/null and b/tippspiel/public/img/teams/tottenham.png differ diff --git a/tippspiel/public/img/teams/tsg-hoffenheim-ii.png b/tippspiel/public/img/teams/tsg-hoffenheim-ii.png new file mode 100644 index 0000000..7a04db1 Binary files /dev/null and b/tippspiel/public/img/teams/tsg-hoffenheim-ii.png differ diff --git a/tippspiel/public/img/teams/tsg-hoffenheim.png b/tippspiel/public/img/teams/tsg-hoffenheim.png new file mode 100644 index 0000000..7a04db1 Binary files /dev/null and b/tippspiel/public/img/teams/tsg-hoffenheim.png differ diff --git a/tippspiel/public/img/teams/tuerkguecue-muenchen.png b/tippspiel/public/img/teams/tuerkguecue-muenchen.png new file mode 100644 index 0000000..ac5d120 Binary files /dev/null and b/tippspiel/public/img/teams/tuerkguecue-muenchen.png differ diff --git a/tippspiel/public/img/teams/uerdingen.png b/tippspiel/public/img/teams/uerdingen.png new file mode 100644 index 0000000..f421d5f Binary files /dev/null and b/tippspiel/public/img/teams/uerdingen.png differ diff --git a/tippspiel/public/img/teams/union-berlin.png b/tippspiel/public/img/teams/union-berlin.png new file mode 100644 index 0000000..ec9eb0e Binary files /dev/null and b/tippspiel/public/img/teams/union-berlin.png differ diff --git a/tippspiel/public/img/teams/unterhaching.png b/tippspiel/public/img/teams/unterhaching.png new file mode 100644 index 0000000..8c866c9 Binary files /dev/null and b/tippspiel/public/img/teams/unterhaching.png differ diff --git a/tippspiel/public/img/teams/valencia.png b/tippspiel/public/img/teams/valencia.png new file mode 100644 index 0000000..c6add08 Binary files /dev/null and b/tippspiel/public/img/teams/valencia.png differ diff --git a/tippspiel/public/img/teams/vfb-luebeck.png b/tippspiel/public/img/teams/vfb-luebeck.png new file mode 100644 index 0000000..75f503f Binary files /dev/null and b/tippspiel/public/img/teams/vfb-luebeck.png differ diff --git a/tippspiel/public/img/teams/vfb-stuttgart-ii.png b/tippspiel/public/img/teams/vfb-stuttgart-ii.png new file mode 100644 index 0000000..bbdb83f Binary files /dev/null and b/tippspiel/public/img/teams/vfb-stuttgart-ii.png differ diff --git a/tippspiel/public/img/teams/vfb-stuttgart.png b/tippspiel/public/img/teams/vfb-stuttgart.png new file mode 100644 index 0000000..bbdb83f Binary files /dev/null and b/tippspiel/public/img/teams/vfb-stuttgart.png differ diff --git a/tippspiel/public/img/teams/vfl-bochum.png b/tippspiel/public/img/teams/vfl-bochum.png new file mode 100644 index 0000000..78ec614 Binary files /dev/null and b/tippspiel/public/img/teams/vfl-bochum.png differ diff --git a/tippspiel/public/img/teams/vfl-oldenburg.png b/tippspiel/public/img/teams/vfl-oldenburg.png new file mode 100644 index 0000000..6ee2818 Binary files /dev/null and b/tippspiel/public/img/teams/vfl-oldenburg.png differ diff --git a/tippspiel/public/img/teams/vfl-osnabrueck.png b/tippspiel/public/img/teams/vfl-osnabrueck.png new file mode 100644 index 0000000..d27ac58 Binary files /dev/null and b/tippspiel/public/img/teams/vfl-osnabrueck.png differ diff --git a/tippspiel/public/img/teams/vfl-wolfsburg.png b/tippspiel/public/img/teams/vfl-wolfsburg.png new file mode 100644 index 0000000..a67e459 Binary files /dev/null and b/tippspiel/public/img/teams/vfl-wolfsburg.png differ diff --git a/tippspiel/public/img/teams/viktoria-koeln.png b/tippspiel/public/img/teams/viktoria-koeln.png new file mode 100644 index 0000000..33cf85f Binary files /dev/null and b/tippspiel/public/img/teams/viktoria-koeln.png differ diff --git a/tippspiel/public/img/teams/villarreal.png b/tippspiel/public/img/teams/villarreal.png new file mode 100644 index 0000000..73b71f4 Binary files /dev/null and b/tippspiel/public/img/teams/villarreal.png differ diff --git a/tippspiel/public/img/teams/vsg-altglienicke.png b/tippspiel/public/img/teams/vsg-altglienicke.png new file mode 100644 index 0000000..6fda87a Binary files /dev/null and b/tippspiel/public/img/teams/vsg-altglienicke.png differ diff --git a/tippspiel/public/img/teams/waldhof-mannheim.png b/tippspiel/public/img/teams/waldhof-mannheim.png new file mode 100644 index 0000000..ea535d3 Binary files /dev/null and b/tippspiel/public/img/teams/waldhof-mannheim.png differ diff --git a/tippspiel/public/img/teams/werder-bremen.png b/tippspiel/public/img/teams/werder-bremen.png new file mode 100644 index 0000000..0d438bb Binary files /dev/null and b/tippspiel/public/img/teams/werder-bremen.png differ diff --git a/tippspiel/public/img/teams/west-ham.png b/tippspiel/public/img/teams/west-ham.png new file mode 100644 index 0000000..0448a11 Binary files /dev/null and b/tippspiel/public/img/teams/west-ham.png differ diff --git a/tippspiel/public/img/teams/wolves.png b/tippspiel/public/img/teams/wolves.png new file mode 100644 index 0000000..06661d6 Binary files /dev/null and b/tippspiel/public/img/teams/wolves.png differ diff --git a/tippspiel/public/img/teams/wuerzburger-kickers.png b/tippspiel/public/img/teams/wuerzburger-kickers.png new file mode 100644 index 0000000..f58b96e Binary files /dev/null and b/tippspiel/public/img/teams/wuerzburger-kickers.png differ diff --git a/tippspiel/public/img/teams/young-boys.png b/tippspiel/public/img/teams/young-boys.png new file mode 100644 index 0000000..e51440d Binary files /dev/null and b/tippspiel/public/img/teams/young-boys.png differ diff --git a/tippspiel/public/img/teams/zenit.png b/tippspiel/public/img/teams/zenit.png new file mode 100644 index 0000000..bed3bc1 Binary files /dev/null and b/tippspiel/public/img/teams/zenit.png differ diff --git a/tippspiel/public/index.php b/tippspiel/public/index.php index d4ec60d..88b1dab 100644 --- a/tippspiel/public/index.php +++ b/tippspiel/public/index.php @@ -19,6 +19,7 @@ use App\Models\Payment; use App\Models\Quota; use App\Models\Roundmail; use App\Models\Setting; +use App\Models\Team; $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $page = $_GET['page'] ?? null; @@ -786,10 +787,20 @@ if ($page === 'reminder') { $ranking = []; $games = []; + $teamLogos = []; if ($selectedRound) { $result = Ranking::compute($currentSeason['id'], $selectedRound['id']); $ranking = Ranking::roundTable($result); $games = $result['rounds'][$selectedRound['id']]['games'] ?? []; + + $teamIds = []; + foreach ($games as $game) { + if (!empty($game['team1_id'])) $teamIds[] = (int)$game['team1_id']; + if (!empty($game['team2_id'])) $teamIds[] = (int)$game['team2_id']; + } + if (!empty($teamIds)) { + $teamLogos = Team::logoMap($teamIds); + } } require __DIR__ . '/../src/Views/ranking.php'; diff --git a/tippspiel/src/Models/Ranking.php b/tippspiel/src/Models/Ranking.php index ce9d520..9f6713c 100644 --- a/tippspiel/src/Models/Ranking.php +++ b/tippspiel/src/Models/Ranking.php @@ -146,6 +146,8 @@ class Ranking { $joker = $tipp ? (bool)$tipp['joker'] : false; $cells[$game['id']] = [ 'text' => ($tipp1 < 0 ? 'x' : $tipp1) . ':' . ($tipp2 < 0 ? 'x' : $tipp2), + 'score1' => $tipp1 < 0 ? 'x' : (string)$tipp1, + 'score2' => $tipp2 < 0 ? 'x' : (string)$tipp2, 'joker' => $joker, 'points' => Tipp::getScoreLocal((int)$game['score1'], (int)$game['score2'], $tipp1, $tipp2, $joker), 'color' => Tipp::getCol((int)$game['score1'], (int)$game['score2'], $tipp1, $tipp2, $joker), diff --git a/tippspiel/src/Models/Team.php b/tippspiel/src/Models/Team.php new file mode 100644 index 0000000..a2b2f25 --- /dev/null +++ b/tippspiel/src/Models/Team.php @@ -0,0 +1,227 @@ + 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss', + 'á' => 'a', 'à' => 'a', 'â' => 'a', 'ã' => 'a', + 'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e', + 'í' => 'i', 'ì' => 'i', 'î' => 'i', 'ï' => 'i', + 'ó' => 'o', 'ò' => 'o', 'ô' => 'o', 'õ' => 'o', + 'ú' => 'u', 'ù' => 'u', 'û' => 'u', 'ü' => 'ue', + 'ñ' => 'n', 'ç' => 'c', 'ø' => 'o', 'å' => 'a', + 'ł' => 'l', 'ı' => 'i', 'ş' => 's', 'ğ' => 'g', + 'č' => 'c', 'ć' => 'c', 'š' => 's', 'ž' => 'z', + 'đ' => 'd', 'ý' => 'y', 'æ' => 'ae', 'œ' => 'oe', + ]; + $name = strtr($name, $map); + + $name = preg_replace('/[^a-z0-9]+/', ' ', $name); + $name = preg_replace('/\s+/', ' ', $name); + + return trim($name); + } + + /** + * Sucht eine Mannschaft über den normalisierten Alias. + * + * @param string $name Freitext-Name + * @return array|false + */ + public static function findByAlias($name) { + $db = Database::getConnection(); + $stmt = $db->prepare( + "SELECT t.* FROM team_aliases a JOIN teams t ON t.id = a.team_id WHERE a.alias = ?" + ); + $stmt->execute([self::normalize($name)]); + return $stmt->fetch(); + } + + /** + * Ordnet einen Freitext-Namen eindeutig zu (nur exakter Alias-Treffer). + * Für unsichere Fälle liefert suggest() Vorschläge. + * + * @param string $name + * @return array|false + */ + public static function resolve($name) { + $normalized = self::normalize($name); + if ($normalized === '') { + return false; + } + if (array_key_exists($normalized, self::$resolveCache)) { + return self::$resolveCache[$normalized]; + } + + $db = Database::getConnection(); + $stmt = $db->prepare( + "SELECT t.* FROM team_aliases a JOIN teams t ON t.id = a.team_id WHERE a.alias = ?" + ); + $stmt->execute([$normalized]); + $team = $stmt->fetch(); + + self::$resolveCache[$normalized] = $team; + return $team; + } + + /** + * Liefert Vorschläge (Fuzzy) für einen nicht eindeutig zuordenbaren Namen. + * + * @param string $name + * @param int $limit + * @return array Liste von ['id','name','distance'] + */ + public static function suggest($name, $limit = 5) { + $normalized = self::normalize($name); + if ($normalized === '') { + return []; + } + + $db = Database::getConnection(); + $teams = $db->query("SELECT id, name FROM teams")->fetchAll(); + + $candidates = []; + foreach ($teams as $team) { + $distance = levenshtein($normalized, self::normalize($team['name'])); + $candidates[] = [ + 'id' => (int)$team['id'], + 'name' => $team['name'], + 'distance' => $distance, + ]; + } + usort($candidates, fn($a, $b) => $a['distance'] <=> $b['distance']); + + return array_slice($candidates, 0, $limit); + } + + /** + * @param int $id + * @return array|false + */ + public static function findById($id) { + $db = Database::getConnection(); + $stmt = $db->prepare("SELECT * FROM teams WHERE id = ?"); + $stmt->execute([(int)$id]); + return $stmt->fetch(); + } + + /** + * Öffentlicher Pfad zum Logo bzw. zur Flagge, oder null. + * + * @param array $team Zeile aus `teams` + * @return string|null z. B. '/img/teams/fc-bayern-muenchen.png' + */ + public static function logoUrl(array $team) { + return empty($team['logo']) ? null : '/img/' . $team['logo']; + } + + /** + * Prüft, ob die Logodatei tatsächlich vorhanden ist. + * + * @param array $team + * @return bool + */ + public static function logoExists(array $team) { + if (empty($team['logo'])) { + return false; + } + $path = dirname(__DIR__, 2) . '/public/img/' . $team['logo']; + return is_file($path); + } + + /** + * Liefert eine Map team_id => ['name' => ..., 'logo' => '/img/...'|null] + * für die Anzeige (Logo nur, wenn die Datei existiert). + * + * @param int[] $ids + * @return array + */ + public static function logoMap(array $ids) { + $ids = array_values(array_unique(array_map('intval', $ids))); + if (empty($ids)) { + return []; + } + $db = Database::getConnection(); + $placeholders = implode(',', array_fill(0, count($ids), '?')); + $stmt = $db->prepare("SELECT * FROM teams WHERE id IN ($placeholders)"); + $stmt->execute($ids); + + $map = []; + foreach ($stmt->fetchAll() as $team) { + $map[(int)$team['id']] = [ + 'name' => $team['name'], + 'logo' => self::logoExists($team) ? self::logoUrl($team) : null, + ]; + } + return $map; + } + + /** + * Ordnet alle Spiele einer Saison zu: füllt team1_id/team2_id für beide + * Team-Spalten. Liefert die nicht zuordenbaren Namen (für ein Review). + * + * @param int $seasonId + * @return array ['mapped' => int, 'unmatched' => string[]] + */ + public static function mapSeason($seasonId) { + $db = Database::getConnection(); + + $stmt = $db->prepare( + "SELECT g.id, g.team1, g.team2 FROM games g + JOIN rounds r ON r.id = g.round_id + WHERE r.season_id = ?" + ); + $stmt->execute([(int)$seasonId]); + $games = $stmt->fetchAll(); + + $update = $db->prepare("UPDATE games SET team1_id = ?, team2_id = ? WHERE id = ?"); + + $mapped = 0; + $unmatched = []; + foreach ($games as $game) { + $team1 = self::resolve($game['team1']); + $team2 = self::resolve($game['team2']); + $update->execute([ + $team1 ? $team1['id'] : null, + $team2 ? $team2['id'] : null, + $game['id'], + ]); + $mapped += ($team1 ? 1 : 0) + ($team2 ? 1 : 0); + if (!$team1) { + $unmatched[$game['team1']] = $game['team1']; + } + if (!$team2) { + $unmatched[$game['team2']] = $game['team2']; + } + } + + return [ + 'mapped' => $mapped, + 'unmatched' => array_values($unmatched), + ]; + } +} diff --git a/tippspiel/src/Views/admin/rounds.php b/tippspiel/src/Views/admin/rounds.php index 8aa53a9..2409113 100644 --- a/tippspiel/src/Views/admin/rounds.php +++ b/tippspiel/src/Views/admin/rounds.php @@ -1,10 +1,21 @@

Spiele & Ergebnisse eintragen

@@ -81,12 +92,16 @@ $failedRoundId = $failedForm ? (int)($failedForm['round_id'] ?? 0) : null; $gameId = (int)$game['id']; $in = $form['games'][$gameId] ?? null; $field = "games[$gameId]"; + $team1Name = $in['team1'] ?? $game['team1']; + $team2Name = $in['team2'] ?? $game['team2']; + $l1 = $teamLogo($team1Name); + $l2 = $teamLogo($team2Name); ?> - - + + diff --git a/tippspiel/src/Views/admin/seasons.php b/tippspiel/src/Views/admin/seasons.php index bd467bb..653bec4 100644 --- a/tippspiel/src/Views/admin/seasons.php +++ b/tippspiel/src/Views/admin/seasons.php @@ -3,6 +3,7 @@ $pageTitle = 'Saisons verwalten'; require __DIR__ . '/../partials/header.php'; ?> +

Saisons verwalten

@@ -125,8 +126,13 @@ require __DIR__ . '/../partials/header.php'; +