-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaddition.php
More file actions
36 lines (33 loc) · 852 Bytes
/
addition.php
File metadata and controls
36 lines (33 loc) · 852 Bytes
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
<style>
#welcome{
margin: 0px 0px 0px 10px;
}
#button{
display: inline-block;
}
</style>
<?php
require_once 'menu_bar.php';
$user = $_SESSION["username"];
echo <<<_END
<div id="welcome">
Welcome to addition game, $user
<br><br>Here are the rules:
<br>An addition problem will appear on the screen. Enter in the correct sum and you will get a question right, building the first part of your burger! Get ten question right to complete your delicious food!
</div>
_END;
echo <<<_END
<li id = "button">
<a href="./additionplaygame.php?user=$_SESSION[username]" class="link">Play!</a>
</li>
</li>
<br>
_END;
if($_SESSION['user_type'] == "teacher"){
echo <<<_END
<li id ="button">
<a href="./add_remove_addition.php?user=$_SESSION[username]" class="link">Add or Remove a Problem</a>
</li>
_END;
}
?>