-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.php
More file actions
55 lines (49 loc) · 1.71 KB
/
game.php
File metadata and controls
55 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require 'include.php';
$players = get_players($pdo);
?>
<html>
<head>
<title>Kicker Tracker</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id='root'>
<div class='box header'>
<div class='title'>
Kicker Elo
</div>
<div class='config'>
<div class='new_game'>
Entering 1v1 game...
</div>
</div>
</div>
<form action="/index.php" class='box add_game'>
<div class='add_game_label'>
<label for="field_winner">Winner:</label>
</div>
<div class='add_game_list'>
<input autofocus type="text" required="required" value="" id="field_winner" name="winner" class="field" list="players" pattern="^(<?php regex_print_players($players); ?>)$">
</div>
<div class='add_game_label'>
<label for="field_loser">Loser:</label>
</div>
<div class='add_game_list'>
<input type="text" required="required" value="" id="field_winner" name="loser" class="field" list="players" pattern="^(<?php regex_print_players($players); ?>)$">
<datalist id="players">
<?php
foreach ($players as $player) {
echo "<option value='$player->name'>";
}
?>
</datalist>
</div>
<div class='add_game_ack'>
<input type="submit" value="Go!" class="submit">
</div>
</form>
</div>
</body>
</html>