-
Notifications
You must be signed in to change notification settings - Fork 0
/
fifteen_puzzle.php
76 lines (74 loc) · 1.8 KB
/
fifteen_puzzle.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<?php
session_start();
if (!isset($_SESSION['user'])) {
header('Location: index.php');
}
?>
<meta charset="UTF-8">
<title>Fifteen Puzzle</title>
<link href="fifteen_puzzle.css" rel="stylesheet">
<script src="fifteen_puzzle.js"></script>
<div id="side1">
<table id="score-pad">
<tr>
<th></th>
<th>username</th>
<th>time cost</th>
</tr>
</table>
</div>
<div id="main">
<div id="timer-container">
<label for="timer" id="timer-label"></label>
<input disabled id="timer" value="0:00:00.000"/>
</div>
<div id="board"></div>
<div id="start-game-container">
<button id="start-game">start game</button>
<button disabled id="reset-game">reset game</button>
<label for="select-stage"> select stage:</label>
<select id="select-stage">
<option selected value="2">1</option>
</select>
</div>
<p id="ranking-page-link-text">
<a href="ranking.html" id="ranking-page-link">click</a>
to ge to the ranking page</p>
</div>
<div id="side2">
<table id="user-info">
<tr>
<th>username</th>
<th id="username-data"></th>
</tr>
<tr>
<td>signup date</td>
<td id="signup-date-data"></td>
</tr>
<tr>
<td>last login</td>
<td id="last-login-data"></td>
</tr>
<tr>
<td>login count</td>
<td id="login-count-data"></td>
</tr>
<tr>
<td>games played</td>
<td id="games-played-data"></td>
</tr>
<tr>
<td>games won</td>
<td id="games-won-data"></td>
</tr>
<tr>
<td>highest level beaten</td>
<td id="highest-level-beaten-data"></td>
</tr>
</table>
</div>
<form id="logout-container" action='SessionController.php' method='POST'>
<input type='submit' id='Logout' name='Logout' value='Log Out'>
</form>