-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminhome.php
51 lines (48 loc) · 1.27 KB
/
adminhome.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
<?php include 'connection.php';?>
<?php
session_start();
if(!($_SESSION['logged_in'])){
//$_SESSION['header_loc']="adminhome.php";
session_unset();
session_destroy();
header('Location: login.php');
}
?>
<?php
if(!empty($_REQUEST["msg"]))
$msg=$_REQUEST["msg"];
//echo $id;
else
$msg="";
?>
<html>
<head>
<link rel="stylesheet" href="menu.css">
<title>Admin HomePage</title>
</head>
<body>
<ul class="top-level-menu">
<li><a href='#'>Navigation</a>
<ul class="second-level-menu">
<li><a id="" href="f2.php?module=AddForm&id=0" >Add Form</a><br></li>
<li><a href="viewform.php?module=ViewForm">View Form</a><br></li>
<li><a href="createpage.php">Create Form page</a></li>
<li><a href="login.php?module=AddForm&logout=1">LOGOUT</a></li>
</ul>
</li>
<li><a href='#'>Manage Users</a>
<ul class="second-level-menu">
<li><a href="adduser.php?module=AddForm">Add User</a><br></li>
<li><a href="viewuser.php?module=AddForm">View User</a><br></li>
<li><a href="accesscontrol.php?module=AddForm">Access Control</a><br></li>
</ul>
</li>
<li>
<a href="Home.php">Home</a><br>
</li>
</ul>
<br>
<br>
<div id="error"><h1><?php echo $msg; ?><h1></div>
</body>
</html>