if all show all
This commit is contained in:
parent
3917f006d2
commit
a1deb0878a
1 changed files with 3 additions and 2 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
<input type='submit' name='filter_by_match_type' value='event' class='btn'>
|
<input type='submit' name='filter_by_match_type' value='event' class='btn'>
|
||||||
<input type='hidden' name='selected_player' value='$player_name'>
|
<input type='hidden' name='selected_player' value='$player_name'>
|
||||||
</form><br>";
|
</form><br>";
|
||||||
|
|
||||||
|
|
||||||
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
|
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
|
||||||
$mapNames = array(
|
$mapNames = array(
|
||||||
|
|
@ -59,10 +59,11 @@
|
||||||
echo "<tr><th>Match Date</th><th>Game Mode</th><th>Match Type</th><th>Map</th><th>Kills</th><th>Damage Dealt</th><th>Time Survived</th><th>win Place</th></tr>";
|
echo "<tr><th>Match Date</th><th>Game Mode</th><th>Match Type</th><th>Map</th><th>Kills</th><th>Damage Dealt</th><th>Time Survived</th><th>win Place</th></tr>";
|
||||||
foreach ($player_data['player_matches'] as $match) {
|
foreach ($player_data['player_matches'] as $match) {
|
||||||
if (isset($_GET['filter_by_match_type'])) {
|
if (isset($_GET['filter_by_match_type'])) {
|
||||||
if ($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('+2 hours');
|
$date->modify('+2 hours');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue