-
Notifications
You must be signed in to change notification settings - Fork 0
/
students.php
77 lines (69 loc) · 1.66 KB
/
students.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
<?php include('server.php');
//redirect to student home page if user isn't the teacher
if ($_SESSION['email']!=$admin) {
header('location: index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Intern's Portal</title>
<link rel="stylesheet" type="text/css" href="style2.css">
<style type="text/css">
.reflections1 {
border: 3px inset #ff9933;
background-color: white;
width: 20%;
word-wrap: break-word;
margin-top: 100px;
margin-left: 20%;
text-align: center;
}
.buttonhome {
width: auto;
color: #ff9933;
background: #ffe6cc;
position: fixed;
text-align: center;
text-decoration: none;
font-size: 60px;
font-family: Georgia, serif;
border: 3px solid orange;
border-radius: 20px 20px 20px 20px;
padding: 15px;
margin-top: -20%;
margin-left: 60%;
}
.buttonhome:hover{
cursor: pointer;
color: #e62e00;
background: #ff944d;
border-color: #e62e00;
transition: 0.5s;
}
</style>
</head>
<body>
<div>
<h2 class="header">Students</h2>
<a href="index1.php?logout='1'" class="logout">Log out</a>
</div>
<a href="index1.php" class="backarrow"></a>
<table class="reflections1">
<tr>
<th>Students</th>
</tr>
<?php
$email = $_SESSION['email'];
$sql = "SELECT * FROM users WHERE email!='$email'";
$result = mysqli_query($link, $sql);
while($row=mysqli_fetch_assoc($result)) {
echo "<tr><td><a href=reflections1.php?phpvar=$row[email]>".$row['email']."</a></td></tr>";
}
?>
</table>
<div>
<a class="buttonhome" href="last5days.php">Last 5 days</a>
</div>
</body>
</html>