Commit 5efc0b7c authored by VELAGAPUDI VIKAS's avatar VELAGAPUDI VIKAS
Browse files

page to mark that student left

parent e1bec895
<html>
<head>
<style>
.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
}
table {
border-collapse: collapse;
width: 80%;
color: #588c7e;
font-family: monospace;
font-size: 25px;
text-align: left;
}
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: 24px;
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);
}
</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='Approved' ";
$query_run = mysqli_query($connection,$query);
?> <h2> <center> Students whose Request is approved </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 'Approved';?></td>
<td> <a href="resub2.php?id=<?php echo $row['ID']; ?>"><form class="submit1"> Left</form></a> </td>
</form>
<?php
}
echo "</table>";
?>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment