Commit e9a67d60 authored by PALVADI HEMA's avatar PALVADI HEMA
Browse files

Decision taking page

parent 16f6fb1c
<html>
<head>
<title>Do something</title>
</head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.button {
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-top: 10px;
font-size: 18px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background: linear-gradient(to right, #339933, #33cc33);
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
font-family: 'Ubuntu', sans-serif;
box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.04);
}
.button:hover {background-color: #3e8e41}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.button1 {
padding-left: 17px;
padding-right: 17px;
padding-bottom: 10px;
padding-top: 10px;
font-size: 18px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background: linear-gradient(to right, #ff0000, #ff4d4d);
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
font-family: 'Ubuntu', sans-serif;
box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.04);
}
.button1:hover {background-color: #3e8e41}
.button1:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
</style>
<style>
body {
background-color: #F3EBF6;
font-family: 'Ubuntu', sans-serif;
}
.main {
background-color: #FFFFFF;
width: 400px;
height: 550px;
margin: 7em auto;
border-radius: 1.5em;
box-shadow: 0px 11px 35px 2px rgba(0, 0, 0, 0.14);
}
.sign {
padding-top: 40px;
color: #8C55AA;
font-family: 'Ubuntu', sans-serif;
font-weight: bold;
font-size: 23px;
}
.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.02);
margin-bottom: 50px;
margin-left: 46px;
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: 2px 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 {
border: 2px solid rgba(0, 0, 0, 0.18) !important;
}
.submit {
cursor: pointer;
border-radius: 5em;
color: #fff;
background: linear-gradient(to right, #ff0000, #ff4d4d);
border: 0;
padding-left: 10px;
padding-right: 10px;
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);
}
.submit1 {
cursor: pointer;
border-radius: 5em;
color: #fff;
background: linear-gradient(to right, #339933, #33cc33);
border: 0;
padding-left: 10px;
padding-right: 10px;
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);
}
.forgot {
text-shadow: 0px 0px 3px rgba(117, 117, 117, 0.12);
color: #E1BEE7;
padding-top: 15px;
}
a {
text-shadow: 0px 0px 3px rgba(117, 117, 117, 0.12);
color: #E1BEE7;
text-decoration: none
}
@media (max-width: 600px) {
.main {
border-radius: 0px;
}
</style>
<body>
<center>
<div class="main">
<p class="sign" align="center">Approve or reject</p>
<form class="form1" method="POST" action=""><center>
<button class="button" type="submit" name="1search" value=" APPROVE ">APPROVE</button><br>
<br><br><br><br>
<button1 class="button1" type="submit" name="2search" value=" REJECT "> REJECT </button1><br>
<!--input class="submit1" type="submit" name="1search" value=" APPROVE " --><br><br><br>
<!input class="submit" type="submit" name="2search" value=" REJECT "></center>
<center>
<img src="kl.jpg" alt="Snow" style="width:228px;height:228px;">
</center>
</form>
<table>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$x=$_GET['id'];
if(isset($_POST['1search']))
{
$query = "UPDATE registrations SET status='Approved' WHERE ID=$x";
$query_run = mysqli_query($connection,$query);
session_start();
header("Location:okok.php");
}
else if(isset($_POST['2search'])){
$query = "UPDATE registrations SET status='Rejected' WHERE ID=$x";
$query_run = mysqli_query($connection,$query);
session_start();
header("Location:okok.php");
}
?>
</table></div></center></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