-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
126 lines (80 loc) · 3.31 KB
/
index.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php include_once("signupbackend.php"); ?>
<?php include_once("signinbackend.php"); ?>
<?php
if($_SESSION["username"]) {
header("Location:home.php");
}
else{
?>
<html>
<head>
<title>Police File Tracker</title>
<link rel = "icon" href="up_police_icon.ico" type = "image/x-icon">
<script src="linksfunctionality.js"></script>
<link rel="stylesheet" href="indexstyle.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
.container{
text-align: center;
margin-top: 160px;
width: 400px;
}
/*body {
background-image:url(Column_2-696x464.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
}*/
</style>
</head>
<body>
<div class="container">
<h1>Personnel Login</h1>
<div id="signup">
<form method="post" class="margin" autocomplete="off">
<fieldset class="form-group">
<label for="uname">Enter the UserName</label>
<input type="text" required class="form-control centre" id="uname" name="uname">
<label for="pass">Enter the Password</label>
<input type="password" required class="form-control centre" id="pass" name="pass">
</fieldset>
<button type="submit" class="btn btn-default">Sign Up</button>
</form>
<b><p>Have an account? Click here to <a href="#" onclick='myFunction()'>Sign In</a>.</p></b>
</div>
<div id="signin">
<form method="post" class="margin" autocomplete="off">
<fieldset class="form-group">
<label for="uname2">Enter the UserName</label>
<input type="text" required class="form-control centre" id="uname2" name="uname2">
<label for="pass2">Enter the Password</label>
<input type="password" required class="form-control centre" id="pass2" name="pass2">
</fieldset>
<button type="submit" class="btn btn-default">Sign In</button>
</form>
<b><p>Don't have an account? Click here to <a href="#" onclick='myFunction()'>Sign Up</a>.</p></b>
</div>
<?php
if(isset($msg)){ ?>
<div class="alert alert-success margin">
<?php
echo $msg;
?>
</div>
<?php } ?>
<?php
if(isset($msg5)){ ?>
<div class="alert alert-danger margin">
<?php
echo $msg5;
?>
</div>
<?php } ?>
</div>
</body>
</html>
<?php } ?>