-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCode_Miscellaneous.php
95 lines (81 loc) · 3.33 KB
/
Code_Miscellaneous.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
include("dbconnect.php");
if($_SESSION["in"])
{
$uid=$_SESSION["in"];
}
$pname = mysql_query("select * from users where id = '$uid'");
$prow = mysql_fetch_assoc($pname);
?>
<!DOCTYPE html>
<html>
<title>MINYSTERY</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}
.w3-sidenav a,.w3-sidenav h4 {font-weight:bold}
</style>
<body class="w3-light-grey w3-content" style="max-width:1600px">
<!-- Sidenav/menu -->
<nav class="w3-sidenav w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="mySidenav"><br>
<div class="w3-container">
<a href="#" onclick="w3_close()" class="w3-hide-large w3-right w3-jumbo w3-padding" title="close menu">
<i class="fa fa-remove"></i>
</a>
<img src="http://airnativeextensions.com/images/extensions/icons/ane-gameservices-icon.png" style="width:45%;" class="w3-round"><br><br>
<h4 class="w3-padding-0"><b>Minystery</b></h4>
<p class="w3-text-grey">Series of mini-games</p>
</div>
<a href="index.php" class="w3-padding">Home</a>
<a href="Code_Login.php" class="w3-padding">Log In</a>
<a href="Code_Detective.php" class="w3-padding">Detective</a>
<a href="Code_Mathematics.php" class="w3-padding">Mathematics</a>
<a href="Code_Guessing.php" class="w3-padding">Guessing</a>
<a href="Code_Miscellaneous.php" class="w3-padding w3-text-teal">Miscellaneous</a>
<a href="Code_Score.php" class="w3-padding">Score</a>
<p>Welcome <?php
if ($_SESSION["in"]) {
echo $prow['name'] . "!, " . "<a href='logout.php'>Logout</a>";
echo "<a href='Code_Delete.php'>Delete account</a>";
}
else {
echo "Guest!";
}
?> </p>
</nav>
<!-- Overlay effect when opening sidenav on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px">
<!-- Header -->
<header class="w3-container">
<a href="#"><img src="img_avatar_g2.jpg" style="width:65px;" class="w3-circle w3-right w3-margin w3-hide-large w3-hover-opacity"></a>
<span class="w3-opennav w3-hide-large w3-xxlarge w3-hover-text-grey" onclick="w3_open()"><i class="fa fa-bars"></i></span>
<h1><b>Miscellaneous</b></h1>
</header>
<div class="w3-row-padding">
<div class="w3-third w3-container w3-margin-bottom">
<img src="http://www.primitivism.com/miscellaneous-ban.jpg" alt="Misc" style="width:100%" class="w3-hover-opacity">
<div class="w3-container w3-white">
<p align="left"><a href="magicSquares.php" align="center">Magic Squares</a></p>
</div>
</div>
</div>
<!-- End page content -->
</div>
<script>
// Script to open and close sidenav
function w3_open() {
document.getElementById("mySidenav").style.display = "block";
document.getElementById("myOverlay").style.display = "block";
}
function w3_close() {
document.getElementById("mySidenav").style.display = "none";
document.getElementById("myOverlay").style.display = "none";
}
</script>
</body>
</html>