-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecord.php
37 lines (33 loc) · 1.51 KB
/
record.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/record.css">
<title>Breakout-Record</title>
<style>
</style>
</head>
<body>
<header>
<h1>Record</h1>
<h3><a href="index.php">Back Index</a></h3>
</header>
<form action="record.php" method="post">
<label>Sort By</label>
<select name="sortBy" onchange="this.form.submit();">
<option value="lastloginTS">Last Login</option>
<option value="totalPlayTime" <?php echo (isset($_POST['sortBy']) && $_POST['sortBy'] === 'totalPlayTime') ? 'selected' : ''; ?> >Total Play Time</option>
<option value="win" <?php echo (isset($_POST['sortBy']) && $_POST['sortBy'] === 'win') ? 'selected' : ''; ?> >Win</option>
<option value="lose" <?php echo (isset($_POST['sortBy']) && $_POST['sortBy'] === 'lose') ? 'selected' : ''; ?> >Lose</option>
<option value="_id" <?php echo (isset($_POST['sortBy']) && $_POST['sortBy'] === '_id') ? 'selected' : ''; ?> >Username</option>
</select>
<select name="order" onchange="this.form.submit();">
<option value="-1">Desc</option>
<option value="1" <?php echo (isset($_POST['order']) && $_POST['order'] === '1') ? 'selected' : ''; ?> >Asc</option>
</select>
</form>
<?php require 'php/allrecord.php' ?>
</body>
</html>