Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
KLUGLUG
KL Hostel Outing Automation
Commits
43fdf55e
Commit
43fdf55e
authored
Dec 19, 2020
by
VELAGAPUDI VIKAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
page to mark that student returned
parent
b2eeeb10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
188 additions
and
0 deletions
+188
-0
nouse.php
nouse.php
+188
-0
No files found.
nouse.php
0 → 100644
View file @
43fdf55e
<html>
<head>
<style>
table
{
border-collapse
:
collapse
;
width
:
80%
;
color
:
#588c7e
;
font-family
:
monospace
;
font-size
:
25px
;
text-align
:
left
;
}
.submit2
{
cursor
:
pointer
;
border-radius
:
5em
;
color
:
#fff
;
background
:
linear-gradient
(
to
right
,
#9C27B0
,
#E040FB
);
border
:
0
;
padding-left
:
60px
;
padding-right
:
60px
;
padding-bottom
:
10px
;
padding-top
:
10px
;
font-family
:
'Ubuntu'
,
sans-serif
;
margin-left
:
70%
;
margin-right
:
9%
;
font-size
:
13px
;
box-shadow
:
0
0
20px
1px
rgba
(
0
,
0
,
0
,
0.04
);
}
a
{
text-shadow
:
0px
0px
3px
rgba
(
117
,
117
,
117
,
0.12
);
color
:
#FFFFFF
;
font-size
:
13px
;
text-decoration
:
none
}
.un
{
width
:
76%
;
color
:
rgb
(
38
,
50
,
56
);
font-weight
:
700
;
font-size
:
14px
;
letter-spacing
:
1px
;
background
:
rgba
(
136
,
126
,
126
,
0.04
);
padding
:
10px
20px
;
border
:
none
;
border-radius
:
20px
;
outline
:
none
;
box-sizing
:
border-box
;
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
50px
;
margin-left
:
46px
;
text-align
:
center
;
margin-bottom
:
27px
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
.un1
{
width
:
76%
;
color
:
rgb
(
38
,
50
,
56
);
font-weight
:
700
;
font-size
:
14px
;
letter-spacing
:
1px
;
background
:
rgba
(
136
,
126
,
126
,
0.04
);
padding
:
10px
20px
;
border
:
none
;
border-radius
:
20px
;
outline
:
none
;
box-sizing
:
border-box
;
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
50px
;
margin-left
:
9px
;
text-align
:
center
;
margin-bottom
:
27px
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
form
.form1
{
padding-top
:
40px
;
}
.pass
{
width
:
76%
;
color
:
rgb
(
38
,
50
,
56
);
font-weight
:
700
;
font-size
:
14px
;
letter-spacing
:
1px
;
background
:
rgba
(
136
,
126
,
126
,
0.04
);
padding
:
10px
20px
;
border
:
none
;
border-radius
:
20px
;
outline
:
none
;
box-sizing
:
border-box
;
border
:
6px
solid
rgba
(
0
,
0
,
0
,
0.02
);
margin-bottom
:
50px
;
margin-left
:
46px
;
text-align
:
center
;
margin-bottom
:
27px
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
.un
:focus
,
.pass
:focus
,
.un1
:focus
{
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.18
)
!important
;
}
th
{
background-color
:
#9C27B0
;
color
:
white
;
font-family
:
"Times New Roman"
,
Times
,
serif
;
}
tr
:nth-child
(
even
)
{
background-color
:
#f2f2f2
}
.submit1
{
cursor
:
pointer
;
border-radius
:
5em
;
color
:
#fff
;
background
:
linear-gradient
(
to
right
,
#339933
,
#33cc33
);
border
:
0
;
padding-left
:
10px
;
padding-right
:
5px
;
padding-bottom
:
10px
;
padding-top
:
10px
;
font-family
:
'Ubuntu'
,
sans-serif
;
margin-left
:
7%
;
font-size
:
13px
;
box-shadow
:
0
0
20px
1px
rgba
(
0
,
0
,
0
,
0.04
);
}
.submit
{
cursor
:
pointer
;
border-radius
:
5em
;
color
:
#fff
;
background
:
linear-gradient
(
to
right
,
#9C27B0
,
#E040FB
);
border
:
0
;
padding-left
:
40px
;
padding-right
:
40px
;
padding-bottom
:
10px
;
padding-top
:
10px
;
font-family
:
'Ubuntu'
,
sans-serif
;
margin-left
:
35%
;
font-size
:
13px
;
box-shadow
:
0
0
20px
1px
rgba
(
0
,
0
,
0
,
0.04
);
}
</style>
<title>
Confirmation
</title>
</head>
<body
bgcolor=
"#EEFDEF"
>
<p
class=
"submit2"
align=
"center"
>
<?php
echo
'<a href="security.html">Go to security main page</a>'
?>
</p>
<?php
$connection
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
$db
=
mysqli_select_db
(
$connection
,
'test'
);
$query
=
"SELECT * FROM registrations where status='Left' "
;
$query_run
=
mysqli_query
(
$connection
,
$query
);
?>
<h2>
<center>
Students who have left
</center>
</h2>
<?php
echo
"<table border='1' align='center'>
<tr>
<th>Id</th>
<th>Name</th>
<th>Room</th>
<th>Phone</th>
<th>Out Time</th>
<th>Status</th>
<th>Action</th>
</tr>"
;
while
(
$row
=
mysqli_fetch_array
(
$query_run
))
{
?>
<tr><br>
<td>
<?php
echo
$row
[
'ID'
];
?>
</td>
<td>
<?php
echo
$row
[
'NAME'
];
?>
</td>
<td>
<?php
echo
$row
[
'ROOM'
];
?>
</td>
<td>
<?php
echo
$row
[
'PHONE'
];
?>
</td>
<td>
<?php
echo
$row
[
'OUT_TIME'
];
?>
</td>
<td>
<?php
echo
'Left'
;
?>
</td>
<td>
<form
class=
"form1"
action=
"nouse2.php?id=
<?php
echo
$row
[
'ID'
];
?>
"
method=
"post"
>
<button
class=
"submit1"
>
Submit
</button></td>
</form>
<?php
}
echo
"</table>"
;
?>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment