-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview.php
283 lines (243 loc) · 9.17 KB
/
preview.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Preview</title>
<link rel="stylesheet" href=" css/style.css">
<style>
body{
background-color:grey;
}
.text {
display:grid;
padding:2px;
}
p{
text-align: center;
background-color: #b1c9be;
}
.bu input{
background-color:#b1c9be;
font-size:300%;
align:center;
}
table,tr,td{
margin:2%;
padding:20px;
border:1px solid black;
background-color:white;
}
table{
background-color:#eef1a7;
width:95%;
}
</style>
</head>
<body >
<section>
<nav>
<h1>Schorlarship</h1>
<div class="navlink">
<ul>
<li><a href="about.html">About</a></li>
<li><a href="home.php">Home</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</nav>
</section>
<?php
session_start();
require_once("connect.php");
if(empty($_SESSION['email']))
{
header("location:login.php"); }
$aa=$_SESSION['aadh'];
$sql="SELECT * FROM `personal_details` WHERE aadhaar= '$aa' ";
$result=mysqli_query($connect,$sql);
$a=$result->fetch_assoc();
$sql="SELECT * FROM `college_details` WHERE aadhaar= '$aa' ";
$result=mysqli_query($connect,$sql);
$b=$result->fetch_assoc();
$sql="SELECT * FROM `bank_details` WHERE aadhaar= '$aa' ";
$result=mysqli_query($connect,$sql);
$c=$result->fetch_assoc();
$sql="SELECT * FROM `attachment` WHERE aadhaar= '$aa' ";
$result=mysqli_query($connect,$sql);
$d=$result->fetch_assoc();
?>
<section class='header' >
<p>Personal Details</p>
<div class="form">
<table>
<tr>
<td>Name</td>
<td><?php echo $a['name'];?></td>
</tr>
<tr>
<td>Email</td>
<td><?php echo $a['email'];?></td>
</tr>
<tr>
<td>Aadhaar Number</td>
<td><?php echo $a['aadhaar'];?></td>
</tr>
<tr>
<td>Phone</td>
<td><?php echo $a['number'];?></td>
</tr>
<tr>
<td>Address</td>
<td><?php echo $a['address'];?></td>
</tr>
<tr>
<td>Gender</td>
<td><?php echo $a['gender'];?></td>
</tr>
<tr>
<td>Date of Birth</td>
<td><?php echo $a['dob'];?></td>
</tr>
<tr>
<td>Caste</td>
<td><?php echo $a['caste'];?></td>
</tr>
<tr>
<td>Annual Income</td>
<td><?php echo $a['income'];?></td>
</tr>
</table>
</div>
</section>
<section class='header'>
<p>College Details</p>
<div class="form">
<table>
<tr>
<td>USN</td>
<td><?php echo $b['usn'];?></td>
</tr>
<tr>
<td>University</td>
<td><?php echo $b['university'];?></td>
</tr>
<tr>
<td>College Name</td>
<td><?php echo $b['collegename'];?></td>
</tr>
<tr>
<td>College Taluka</td>
<td><?php echo $b['collegetaluka'];?></td>
</tr>
<tr>
<td>College District</td>
<td><?php echo $b['collegedistrict'];?></td>
</tr>
<tr>
<td>Course</td>
<td><?php echo $b['course'];?></td>
</tr>
<tr>
<td>Seat Type</td>
<td><?php echo $b['seattype'];?></td>
</tr>
<tr>
<td>Which year are you studying?</td>
<td><?php echo $b['presentyear'];?></td>
</tr>
<tr>
<td>Fees</td>
<td><?php echo $b['fees'];?></td>
</tr>
<tr>
<td>Previous studying year</td>
<td><?php echo $b['previousyear'];?></td>
</tr>
<tr>
<td>Previous year marks</td>
<td><?php echo $b['marks'];?></td>
</tr>
<tr>
<td>Previous year percentage</td>
<td><?php echo $b['percentage'];?></td>
</tr>
</table>
</div>
</section>
<section class='header'>
<p>Bank Details</p>
<div class="form">
<table>
<tr>
<td>Name as per Passbook </td>
<td><?php echo $c['passbookname'];?></td>
</tr>
<tr>
<td>Account Number</td>
<td><?php echo $c['accountnumber'];?></td>
</tr>
<tr>
<td>Bank Name</td>
<td><?php echo $c['bankname'];?></td>
</tr>
<tr>
<td>Branch</td>
<td><?php echo $c['branch'];?></td>
</tr>
<tr>
<td>Bank District</td>
<td><?php echo $c['bankdistrict'];?></td>
</tr>
<tr>
<td>IFSE code</td>
<td><?php echo $c['ifsc'];?></td>
</tr>
</table>
</div>
</section>
<section class='header'>
<p>Attachment</p>
<div class="form">
<table>
<tr>
<td>Passport size photo </td>
<td><img src="<?=$d['passportimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Aadhar card </td>
<td><img src="<?=$d['aadhaarimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Passbook</td>
<td><img src="<?=$d['passbookimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Caste/Income Certificate</td>
<td><img src="<?=$d['incomeimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Fees Recipt</td>
<td><img src="<?=$d['feesimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Marks Sheet</td>
<td><img src="<?=$d['markssheetimg']?>" width=200 height=200></td>
</tr>
<tr>
<td>Hostel Fees Recipt</td>
<td><img src="<?=$d['hostelfeesimg']?>" width=200 height=200></td>
</tr>
</table>
</div>
</section>
<div class="bu" >
<form action="acknowledgement.php" method="post" enctype='multipart/form-data'>
<center><input type='submit' value='Download Acknowledgement' name='next4' ></center>
</div>
<div class="bu" >
</form>
</div>
</body>
</html>