Merge pull request #109 from OpzekerIT/dev
post to get and clickable month %
This commit is contained in:
commit
aa2e567f6d
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
|
|
||||||
echo "<tr>
|
echo "<tr>
|
||||||
<td>$player_name</td>
|
<td><a href='https://dev.dtch.online/latestmatches.php?selected_player=$player_name'>$player_name</a></td>
|
||||||
<td>$winratio</td>
|
<td>$winratio</td>
|
||||||
<td>$KD_H</td>
|
<td>$KD_H</td>
|
||||||
<td>$KD_ALL</td>
|
<td>$KD_ALL</td>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ error_reporting(E_ALL);
|
||||||
$players_matches = json_decode(file_get_contents('./data/player_matches.json'), true);
|
$players_matches = json_decode(file_get_contents('./data/player_matches.json'), true);
|
||||||
|
|
||||||
// Display buttons for each player
|
// Display buttons for each player
|
||||||
echo "<form method='post' action=''>";
|
echo "<form method='get' action=''>";
|
||||||
foreach ($players_matches as $player_data) {
|
foreach ($players_matches as $player_data) {
|
||||||
if (isset($player_data['playername'])) {
|
if (isset($player_data['playername'])) {
|
||||||
$player_name = $player_data['playername'];
|
$player_name = $player_data['playername'];
|
||||||
|
|
@ -32,7 +32,7 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
echo "</form><br>";
|
echo "</form><br>";
|
||||||
|
|
||||||
$selected_player = $_POST['selected_player'] ?? $players_matches[0]['playername'];
|
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
|
||||||
$mapNames = array(
|
$mapNames = array(
|
||||||
"Baltic_Main" => "Erangel",
|
"Baltic_Main" => "Erangel",
|
||||||
"Chimera_Main" => "Paramo",
|
"Chimera_Main" => "Paramo",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue