CasperSecurity
<!DOCTYPE html>
<?php
include'con.php';
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AMEBI College Automation | Dashboard</title>
<link rel="stylesheet" href="bootstraplink/bootstrap.min.css">
<link rel="stylesheet" href="bootstraplink/newcss.css">
<script src="bootstraplink/bootstrap.min.js"></script>
<script src="bootstraplink/jquery.min.js"></script>
<script src="bootstraplink/popper.min.js"></script>
<style>
body{
background-color:#66b3ff;
}
h1{
color:white;
font-size:50px;
margin-left:60px;
font-weight:bold;
}
h2{
color:white;
font-size:32px;
margin-left:60px;
}
.backcl{
background-color:#0aa090;
padding:30px;
}
select,input[type=text]{
margin-top:13px;
margin-bottom:13px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
input[type=submit]{
margin-top: 12px;
margin-bottom: 15px;
color: white;
font-weight: bold;
padding: 8px 25px;
border: none;
border-radius: 0;
cursor: pointer;
background-color: #ffd200;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
text-shadow: 2px 2px 4px #000000;
</style>
</head>
<body id="boddy" class="hold-transition skin-blue sidebar-mini fixed sidebar-mini-expand-feature">
<div class="container">
<form action="printres.php" method ="post">
<div class="box-body">
<div class="row" style="margin-top:160px;">
<div class="col-md-6" style="margin-top:60px;">
<h1>GET RESULT</h1>
<h2>Please fill up the form,<br> you will get result.</h2>
</div>
<div class="col-lg-6 backcl" >
<div class="row">
<div class="col-lg-12">
<select style="border-radius:0;width:100%;"class="form-control" name="exam" required>
<option value=""selected disabled>--Please Select The Year of Exam--</option>
<?php
$selectex="SELECT exam_name FROM result_xl GROUP BY exam_name";
$queryex = mysqli_query($con, $selectex);
$ccdex=mysqli_num_rows($queryex);
for($iex=1;$iex<=$ccdex;$iex++){
$resultex=mysqli_fetch_assoc($queryex);
?>
<option value="<?php echo $resultex['exam_name'];?>"><?php echo $resultex['exam_name'];?></option>
<?php
}
?>
</select>
</div>
<div class="col-lg-12">
<select style="border-radius:0;width:100%;"class="form-control" name="branch" required>
<option value=""selected disabled>--Please Select The Branch--</option>
<?php
$cllselect="SELECT * FROM branchs WHERE is_active = 'yes'";
$querycll = mysqli_query($con, $cllselect);
$cc=mysqli_num_rows($querycll);
for($j=1;$j<=$cc;$j++){
$cllresult=mysqli_fetch_assoc($querycll);
?>
<option value="<?php echo $cllresult['branch_name'];?>"><?php echo $cllresult['branch_name'];?></option>
<?php
}
?>
</select>
</div>
<div class="col-lg-12">
<select style="border-radius:0;width:100%;"class="form-control" name="sem" required>
<option value=""selected disabled>--Please Select The Semester--</option>
<?php
$select="SELECT * FROM semester ";
$query = mysqli_query($con, $select);
$ccd=mysqli_num_rows($query);
for($jd=1;$jd<=$ccd;$jd++){
$result=mysqli_fetch_assoc($query);
?>
<option value="<?php echo $result['semester_name'];?>"><?php echo $result['semester_name'];?></option>
<?php
}
?>
</select>
</div>
<div class="col-lg-8">
<input type="text" name="rollno" class="form-control" style="border-radius:0" placeholder="--Registration Number--">
</div>
<div class="col-lg-4">
<input type="submit" class="btn btn-primary btn-md " name="next" value="GET RESULT" >
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</body>
</html>