fix
This commit is contained in:
parent
d53a2de62c
commit
9bd4c304b8
1 changed files with 9 additions and 11 deletions
|
|
@ -9,10 +9,10 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include './includes/navigation.php';
|
include './includes/navigation.php';
|
||||||
include './includes/header.php';
|
include './includes/header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -26,9 +26,9 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
// Display buttons for each player
|
// Display buttons for each player
|
||||||
echo "<form method='get' action=''>";
|
echo "<form method='get' action=''>";
|
||||||
foreach ($players['clanMembers'] as $player) {
|
foreach ($players['clanMembers'] as $player) {
|
||||||
|
|
||||||
echo "<button type='submit' name='selected_player' value='$player' class='btn'>$player</button>";
|
echo "<button type='submit' name='selected_player' value='$player' class='btn'>$player</button>";
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "</form><br>";
|
echo "</form><br>";
|
||||||
$selected_player = $_GET['selected_player'] ?? $players[0];
|
$selected_player = $_GET['selected_player'] ?? $players[0];
|
||||||
|
|
@ -63,12 +63,10 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
foreach ($players_matches as $match) {
|
foreach ($players_matches as $match) {
|
||||||
if ($match['stats']['name'] === $selected_player) {
|
if ($match['stats']['name'] === $selected_player) {
|
||||||
|
|
||||||
|
|
||||||
foreach ($player_data['player_matches'] as $match) {
|
if (isset($_GET['filter_by_match_type'])) {
|
||||||
if (isset($_GET['filter_by_match_type'])) {
|
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
||||||
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$date = new DateTime($match['createdAt']);
|
$date = new DateTime($match['createdAt']);
|
||||||
$date->modify('+1 hours');
|
$date->modify('+1 hours');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue