-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
254 lines (205 loc) · 9.33 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!doctype html>
<html lang="en">
<head>
<title>Lost & Found</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<style>
/* Full-width input fields */
input[type=text], input[type=password],input[type=email] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
/* Set a style for all buttons */
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
}
button:hover {
opacity: 0.8;
}
/* Extra styles for the cancel button */
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Center the image and position the close button */
.container {
padding: 16px;
}
span.psw {
float: right;
padding-top: 16px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
/* The Close Button (x) */
.close {
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: red;
cursor: pointer;
}
.nav-link{
background-color: red;
}
</style>
</head>
<body>
<div class="container-fluid" >
<div class="card" style="border:none;">
<div class="card-header" style="background-image: url('img/icon.jpg'); margin-top:2%;">
<div class="row">
<div class="col-sm-6">
<div class="w3-container" >
<img src="img/auction1.jpg" class="w3-circle" alt="Norway" style="width:30%;margin-top:2%;"><h2>Lost And Found</h2>
</div>
</div>
<div class="col-sm-3"></div>
<div class="col-sm-3">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" href="#" onclick="document.getElementById('id01').style.display='block'" style="margin-top:4%; border:0px">Signup</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" onclick="document.getElementById('id02').style.display='block'" style="margin-top:4%; border:0px;">Login</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" onclick="document.getElementById('id03').style.display='block'" style="margin-top:4%; border:0px;">Admin Login</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<h3 style="background-color:red; color:white; text-align:center; margin-top:1%;"> BUY NOW OR CRY LATER!!! CHOICE IS YOURS!!!</h3>
<!-- for user registration -->
<div id="id01" class="modal">
<form class="modal-content animate" action="user/userRegister.php" method="POST">
<div class="container">
<h3>User Registration</h3>
<div class="form-group">
<div class="form-group">
<label for="userFname">First Name</label>
<input type="text" class="form-control" id="userFname" name="userFname" placeholder="First Name" required>
</div>
<div class="form-group">
<label for="userLname">Last Name</label>
<input type="text" class="form-control" id="userLname" name="userLname" placeholder="Last Name" >
</div>
<div class="form-group">
<label for="userEmail">Email</label>
<input type="email" class="form-control" id="userEmail" name="userEmail" placeholder="Email" required>
</div>
<label for="userPhone">Phone Number</label>
<input type="number" class="form-control" id="userPhone" name="userPhone" aria-describedby="emailHelp" placeholder="Mobile Number" required>
</div>
<div class="form-group">
<label for="userDob">Date Of Birth</label>
<input type="date" class="form-control" id="userDob" name="userDob" required>
</div>
<div class="form-group">
<label for="userPassword">Set Password</label>
<input type="password" class="form-control" id="userPassword" name="userPassword" required>
</div>
<button type="submit" name="submit">Submit</button>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!-- for user Login -->
<div id="id02" class="modal">
<form class="modal-content animate" action="login/userLogin.php" method="POST">
<div class="container">
<h3>User Login</h3>
<div class="form-group">
<div class="form-group">
<label for="userName">User Name/ Email</label>
<input type="text" class="form-control" id="userName" name="userName" placeholder="User Name" required>
</div>
<div class="form-group">
<label for="userPassword">Password</label>
<input type="password" class="form-control" id="userPassword" name="userPassword" placeholder="Password" required>
</div>
<button type="submit" name="submit">Submit</button>
</div>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id02').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!--Admin Login Form-->
<div id="id03" class="modal">
<form class="modal-content animate" action="login/adminLogin.php" method="POST">
<div class="container">
<h3>Admin Login</h3>
<div class="form-group">
<div class="form-group">
<label for="adminName">Admin Name/ Email</label>
<input type="text" class="form-control" id="adminName" name="adminName" placeholder="Admin Name" required>
</div>
<div class="form-group">
<label for="adminPassword">Password</label>
<input type="password" class="form-control" id="adminPassword" name="adminPassword" placeholder="Password" required>
</div>
<button type="submit" name="submit">Submit</button>
</div>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id02').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
</body>
</html>