-
Notifications
You must be signed in to change notification settings - Fork 3
/
new.php
226 lines (158 loc) · 4.6 KB
/
new.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
<?php
session_start();
if(isset($_SESSION['userid'])==false)
{
header("location:/project/index.html");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Visitor Registration Form</title>
</head>
<style>
/* Full-width input fields */
input[type=text], input[type=password], input[type=number], input[type=tel]{
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
border-radius: 10px;
}
/* Set a style for all buttons */
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
font-size:20px;
margin: 4px 20px;
border: none;
cursor: pointer;
border-radius: 10px;
width: 20%;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 7);
}
body {
background-image: url("back3.png");
background-repeat: no-repeat;
background-size: cover;
}
/* Extra styles for the cancel button */
/* Float cancel and signup buttons and add an equal width */
/* Add padding to container elements */
.container {
width:400px;padding: 20px;
}
.idcontainer{
position: relative;
left: 1250px;
top: -500px;
width:450px;
padding: 20px;
}
.clearfix
{
position: relative;
left: 20px;
top: -50px;
}
.address{
word-wrap: break-word;
}
/* Change styles for cancel button and signup button on extra small screens */
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 16px;
text-decoration: none;
height: 27px;
}
li a:hover {
background-color: #111111;
}
.topb{
position: relative;
top: -5px;
}
</style>
<body>
</style>
<body>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('txt').innerHTML =
h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
</head>
<body onload="startTime()">
<div class="topb">
<ul>
<li><a href="#">Contact</a></li>
<li><a href="http://localhost/project/about.php">About</a></li>
</ul>
</div>
<div style="position: relative;left: 1250px; top: 25px; width:170px;border-radius: 10px;font-size: 22px;color: white;top: -50px;">
<?php echo date('d-m-Y ||') ;?>
</div>
<div id="txt" style="position: relative;left: 1400px;top: -75px; width:100px;border-radius: 10px;font-size: 22px;color: white;"></div>
<form action="http://localhost/project/logout.php" method="post">
<button style="position: relative;left: 1690px;top: -50px; background-color: blue; width: 120px;" input type="submit" name="logout">Log Out</button>
</form>
<form action="http://localhost/project/profile.php" method="post">
<button style="position: relative;left: 1500px;top: -108px; background-color: blue; width: 155px;" input type="submit" name="profile">MY PROFILE</button>
</form>
<h2 style="position: relative; left: 30px; top: -50px;">Visitor Registration Form</h2>
<form action="http://localhost/project/visitorReg.php" method="post">
<div class="container" style="position: relative;top: -60px">
<label style="font-size: 22px;"><b>Name</b></label>
<input type="text" placeholder="Name" name="NAME" required style="text-transform:uppercase" re>
<label style="font-size: 22px;"><b>Address</b></label>
<input class="address" style= "height:100px;" type="text" placeholder="Address" name="ADDRESS" required="">
<label style="font-size: 22px;"><b>Id No.</b></label>
<input type="number" placeholder="ID number" name="ID_NO" required="">
<label style="font-size: 22px;"><b>Phone</b></label>
<input type="tel" placeholder="Phone Number" name="PHONE_NO" max="9999999999" required="">
<label style="font-size: 22px;"><b>Purpose</b></label>
<input type="text" placeholder="Visit Purpose" name="PURPOSE" required="" >
</div>
<div class="clearfix">
<button input type="submit" name="store" >Store Details</button>
</div>
</form>
<div class="idcontainer">
<h2>Check in .!</h2>
<form action="http://localhost/project/query.php" method="post">
<label style="font-size: 22px;"><b>ID number</b></label>
<input type="number" placeholder="Id Number" name="ID" required>
<center><button input type="submit" name="enter" >Enter</button></center>
</div>
</form>
</div>
</body>
</body>
</html>