-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb10gen.php
81 lines (78 loc) · 2.35 KB
/
bb10gen.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
<?php
session_start();
require_once('dbconfig/config.php');
?>
<htmL>
<head>
<style>
.fo{
border-radius : 20px;
background-color: white;
border: 3px solid #000000;
width: 500px;
margin: 0 auto;
margin-bottom:20px;
font-weight:bold;
font-size:15px;
padding:10px;
}
}
</style>
</head>
<body>
<div class="fo">
<?php
if(isset($_POST['s'])){
$con=connect();
$em=$_SESSION['em'];
$sql="SELECT * from busb10 where em='$em'";
$result = $con->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo "<br>";
echo "Application Number: " . $row["apn"]."<br><br>";
echo "<u><b><h3>Student Details <br></H3></u></b>";
echo "Name : " . $row["un"]."<br>";
echo "Father's/Guardian Name: " . $row["fn"]."<br>" ;
echo "Date Of Birth : " . $row["dob"]."<br>";
echo "Gender : " . $row["gen"]."<br>";
echo "Age : " . $row["age"]."<br>";
echo "Aadhar Number :" . $row["aad"]."<br>";
echo "E-Mail ID: " . $row["em"]."<br>";
echo "<u><b><h3><br>Residential Address<br></h3></u></b>";
echo "Address : " . $row["addr"]."<br>";
echo "City : " . $row["cy"]."<br>";
echo "Taluk : " . $row["tk"]."<br>";
echo "District : " . $row["ds"]."<br>";
echo "Pin : " . $row["pin"]."<br>";
echo "<u><b><h3><br>Institution Details<br></h3></B></u>";
echo "Institution Name : " . $row["ina"]."<br>";
echo "Address : " . $row["iaddr"]."<br>";
echo "City : " . $row["icy"]."<br>";
echo "Taluk : " . $row["itk"]."<br>";
echo "District : " . $row["ids"]."<br>";
echo "Pin : " . $row["ipin"]."<br>";
echo "<u><b><h3><br>Route Details<br></h3></u></b>";
echo "From: " . $row["from"]."<br>";
echo "To:" . $row["to"]."<br>";
echo "Pass duration: " . $row["m"]." months.<br>";
echo "Pass Generated Date: " . $row["dat"]."<br>";
echo "Renew Date:" . $row["renewd"]."<br>";
echo "fare: Rs." . $row["fare"]."<br>";
echo "<u><b><h3><br>Payment Details<br></h3></u></b>";
$p=$row["py"];
if($p){
echo " Payment Paid";}
else{
echo "Payment Not yet paid";
}
}
}
else {
echo "No User Found ";
}
}
?></div>
<br><a href="bsb.php"><center> Back To Bus pass Home page </center></a></body>
<br><a href="pay.php"><center> Payment not paid proceed to pay</center></a></body>
</html>