-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent.php
More file actions
executable file
·55 lines (45 loc) · 1.17 KB
/
Copy pathstudent.php
File metadata and controls
executable file
·55 lines (45 loc) · 1.17 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require_once 'classes/validate.php';
require_once 'classes/mysql.php';
// confirm that user's login is valid
$validate = new validate();
$validate->confirm_student();
// getting userid
$mysql = new mysql();
$userid = $mysql->get_userinfo($_SESSION['user'], 'userid');
$name = $mysql->get_userinfo($_SESSION['user'], 'name');
// header
include("studentpages/header.php");
$getpage = isset($_GET['page']) ? $_GET['page'] : "";
switch($getpage){
case NULL:
include("studentpages/home.php");
break;
case "home":
include("studentpages/home.php");
break;
case "index":
include("studentpages/home.php");
break;
case "fieldtrip":
include("studentpages/fieldtrip.php");
break;
case "request":
include("studentpages/request.php");
break;
case "about":
include("studentpages/about.php");
break;
}
// footer
include("adminpages/footer.php");
?>
<html>
<head>
<link rel="stylesheet" href="css/user.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans|Raleway:300' rel='stylesheet' type='text/css'>
<title>Student | Field Trip Manager</title>
</head>
<body>
</body>
</html>