-
Notifications
You must be signed in to change notification settings - Fork 0
/
student_list.php
103 lines (89 loc) · 3 KB
/
student_list.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
<?php
include_once 'header.php';
?>
<div class="login">
<div class="col-sm-1"></div>
<div class="col-sm-12">
<?php
//$AD=" SELECT * FROM `Academic-Details` ";
$PD=" SELECT * FROM `stud_personal_info`";
if ($PD_query_run=mysqli_query($con,$PD) )
{
echo '<table class="table table-bordered">';
echo '<tr>';
echo '<th>First-Name</th>';
echo '<th>Last-Name</th>';
echo '<th>Address</th>';
echo '<th>City</th>';
echo '<th>State</th>';
echo '<th>Pin-Code </th>';
echo '<th>Gender </th>';
echo '<th>View Academic-Details </th>';
echo '<th>Approve </th>';
echo '</tr>';
while ($query_execute=mysqli_fetch_assoc($PD_query_run))
{
echo '<tr>';
echo '<td>'.$query_execute['stud_fname'].'</td>';
echo '<td>'.$query_execute['stud_lname'].'</td>';
echo '<td>'.$query_execute['stud_address'].'</td>';
echo '<td>'.$query_execute['stud_city'].'</td>';
echo '<td>'.$query_execute['stud_state'].'</td>';
echo '<td>'.$query_execute['stud_pincode'].'</td>';
echo '<td>'.$query_execute['stud_gender'].'</td>';
echo '<td><button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#mymodal">View</button></a></td>';
echo '<td><a href="status_c.php?id='.$query_execute['stud_id'].'&&val= 2"><button type="button" class="btn btn-info">Approve</button></a></td>';
echo '</tr>';
}
}
echo '</table>';
?><?php
$PDd=" SELECT * FROM `stud_academics`";
if ($PDd_query_run=mysqli_query($con,$PDd) )
{
while ($query_executee=mysqli_fetch_assoc($PDd_query_run))
{
echo '
<div class="modal fade" id="mymodal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Academic details</h4>
</div>
<div class="modal-body">';
echo '<table class="table table-bordered">';
echo '<tr>';
echo '<th>Current-College</th>';
echo '<th>Current-Degree</th>';
echo '<th>Fees</th>';
echo '<th>Previous-Marks</th>';
echo '<th>Family Income</th>';
echo '<th>Total_Requirements</th>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$query_executee['stud_college'].'</td>';
echo '<td>'.$query_executee['stud_currentdegree'].'</td>';
echo '<td>'.$query_executee['stud_fees'].'</td>';
echo '<td>'.$query_executee['stud_previousmarks'].'</td>';
echo '<td>'.$query_executee['stud_familyincome'].'</td>';
echo '<td>'.$query_executee['stud_totalamtrequired'].'</td>';
echo '</tr>';
echo '</table>';
echo'</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>';
}
}
?>
</div>
<div class="col-sm-1"></div>
</div>
<?php
include_once 'footer.php';
?>