-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
50 lines (48 loc) · 1.8 KB
/
admin.php
File metadata and controls
50 lines (48 loc) · 1.8 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
<?php
session_start();
if(!isset($_SESSION["username"])){
header("locatin:http://localhost/project/login.php");
}else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="admin.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center" id="header">
<h1> Parking Lot Management System</h1>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="record.php">All Record</a></li>
<li><a href="admin.php">Make Parking Admin</a></li>
<li><a href="logout.php" style="color: orange;">Logout <?php echo $_SESSION['username'];?></a></li>
</ul>
</div>
</div>
</div>
<div class="form">
<div class="admin-form">
<h1>Admin Form</h1>
<form action="registration.php" method="POST">
<label for="">Username:</label>
<input type="text" name="username" placeholder="Username"/> <br> <br>
<label for="">Password:</label>
<input type="password" name="password" placeholder="Password"/> <br> <br>
<label for="">Confirm Password:</label>
<input type="password" name="co-password" placeholder="Conform password"/> <br> <br>
<input type="submit" class="submit" value= "Submit"> <br><br>
</form>
</div>
</div>
</body>
</html>
<?php
}
?>