-
Notifications
You must be signed in to change notification settings - Fork 0
/
aps.php
73 lines (70 loc) · 3.06 KB
/
aps.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
<?php
session_start();
if(!isset($_SESSION["favcolor"])){
echo "<script>
window.location.href='admin.php';
alert('YOU NEED TO LOGIN FIRST TO ACCESS THIS PAGE!!! ');
</script>";
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin</title>
<link rel="stylesheet" href="./styles/style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous" />
</head>
<body>
<nav>
<div class="logo">
<h4>CRIME STACK</h4>
</div>
<ul class="nav-links">
<li><a href="index.php" >Home</a></li>
<!-- <li><a href="user.php" >User</a></li> -->
<li><a href="police.php" >Police</a></li>
<li class="current"><a href="admin.php">Admin</a></li>
</ul>
</nav>
<section class='showcase-user'>
<section class='side-menu'>
<ul>
<li class='current'><i class="fas fa-home"></i><a href="admindash.php">Dashboard</a></li>
<li><i class="fas fa-file-contract"></i><a href="#">Police Station</a>
<ul>
<li><a href="aps.php">Add Police Station</a></li>
<li><a href="manageposstn.php">Manage Police Station</a></li>
</ul>
</li>
<li><i class="fas fa-user-tie"></i><a href="#">Police</a>
<ul>
<li><a href="ap.php">Add Police</a></li>
<li><a href="managepoloff.php">Manage Police</a></li>
</ul>
</li>
<li><i class="fas fa-clipboard-list"></i><a href="viewcriminal.php">View Criminals</a></li>
<li><i class="fas fa-clipboard-list"></i><a href="#">View FIR</a></li>
<li><i class="fas fa-sign-out-alt"></i><a href="logout.php">Log Out</a></li>
</ul>
</section>
<section class='aps'>
<h2>Add Police Station Detail</h2><br><br>
<form action="aps.inc.php" method="post">
<label for="pscode">Police Station Code *</label>
<input type="text" id="pscode" name="pscode" value="" required ><br><br>
<label for="psname">Police Station Name *</label>
<input type="text" id="psname" name="psname" value="" required ><br><br>
<input type="submit" name = "submitted" value="ADD" class='btn'>
</form>
</section>
</section>
<footer>
<p>Criminal Record Management System , Copyright © 2023</p>
</footer>
</body>
</html>