-
Notifications
You must be signed in to change notification settings - Fork 1
/
details.php
executable file
·104 lines (82 loc) · 2.22 KB
/
details.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
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" href="main.css" type="text/css">
<title>Employee Performance Management</title>
</head>
<body>
<!-- wrap starts here -->
<div id="wrap">
<div id="header-photo">
<h1 id="logo-text"><a href="" title="">Employee Performance Management</a></h1>
<h2 id="slogan">Managing Employee Performance</h2>
</div>
<!-- navigation starts-->
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<?php
session_start();
if (!$_SESSION["valid_user"]) {
echo "<li><a href='register.php'>Register</a></li>";
}
else {
if ($_SESSION['emptype']==1) {
if(!$_SESSION["old_user"]) {
echo "<li><a href='details.php'>Insert Details</a></li>";
}
else {
echo "<li><a href='details.php'>View Details</a></li>";
}
}
else if($_SESSION['emptype']==2) {
echo "<li><a href='superv.php'>Employee Details</a></li>";
}
else if($_SESSION['emptype']==3) {
echo "<li><a href='manag.php'>Employee Details</a></li>";
}
else if($_SESSION['emptype']==4) {
echo "<li><a href='details.php'>View Details</a></li>";
}
}
?>
<li><a href="faq.php">FAQ</a></li>
<li><a href="about.php">About</a></li>
</ul>
<!-- navigation ends-->
</div>
<!-- content-wrap starts -->
<div id="content-wrap" class="two-col">
<div id="rightcolumn">
<?php
session_start();
if (!$_SESSION["valid_user"]) {
// User not logged in, redirect to login page
include ('Login.php');
}
else {
// Display Member information
echo "<p>Welcome " . $_SESSION["valid_user"] . "!";
echo "<p>Logged in: " . date("m/d/Y", $_SESSION["valid_time"]);
// Display logout link
echo "<p><a href='logout.php'>Click here to logout!</a></p>";
}
?>
</div>
<!-- content-wrap ends-->
<div id="main">
<?php
include('Details.php');
?>
</div>
</div>
<!-- footer starts -->
<div id="footer-wrap"><div id="footer">
<p>
DBMS project.
</p>
</div></div>
<!-- footer ends-->
<!-- wrap ends here -->
</div>
</body></html>