-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
40 lines (40 loc) · 1.19 KB
/
home.php
File metadata and controls
40 lines (40 loc) · 1.19 KB
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
<script src="myJS.js"></script>
</script>
<?php
session_start();
if(!isset($_SESSION["loggedin"]))
{
$_SESSION["error"] = "You have not logged in. Please log in first";
header("Location: login.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<div align="right" class="mainmenu" href="homestyle.css" onclick="logout();">
Logout
</div>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="CSS/homestyle.css">
<title>Document</title>
</head>
<body>
<fieldset>
<h1>Welcome to My Signup, <?= $_SESSION["firstname"]?> <?= $_SESSION["lastname"]?></h1>
<div id="displayCourses">Courses: <img src="img/add.ico" alt="Add" style="width:20px;height:20px;" onclick="javascript:showAddClassMenu()">
<img src="img/drop.png" alt="Drop" style="width:20px;height:20px;" onclick="javascript:showDropClassMenu()">
<ul id="classElements">
</ul>
</div>
<div id="mainInfo">
</div>
<div id="notification" style="display: none;">
<span class="dismiss"><a title="dismiss">X</a></span>
<text id="text"></text>
</div>
</fieldset>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="JS/studentPage.js"></script>
</body>
</html>