-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudents.php
176 lines (165 loc) · 8.82 KB
/
students.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
<?php
include("db.php");
// include("loadDump.php");
//include("dbremote.php");
?>
<?php
include 'header.php';
?>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/people.css">
<div class="bg-secondary rounded-0 text-white">
<div class="container p-3">
<div class="row justify-content-center">
<div class="col-sm-12">
<h3 class="fw-bold faculty-heading">STUDENTS</h3>
</div>
</div>
</div>
</div>
<section class="bg-grey p-3">
<div class="event-schedule-area-two bg-color pad100">
<div class="container">
<!-- row end-->
<div class="row">
<div class="col-lg-12">
<ul class="nav custom-tab" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active show" id="home-taThursday" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Ph.D.</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">I-Ph.D.</a>
</li>
<li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Dual Degree</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade active show" id="home" role="tabpanel">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Field</th>
<th class="text-center" scope="col">Email Id</th>
</tr>
</thead>
<tbody>
<?php
$sqlFetchStudents = "SELECT * FROM students WHERE degree='phd'";
$result = $conn->query($sqlFetchStudents);
while ($row = $result->fetch_assoc()) {
echo '<tr class="inner-box">
<td>
<div class="event-wrap">
<span>' . $row['name'] . '</span>
</div>
</td>
<td>
<div class="r-no">
<span>' . $row['field'] . '</span>
</div>
</td>
<td>
<div class="primary-btn">
<span>' . $row['email'] . '</span>
</div>
</td>
</tr>';
}
?>
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Field</th>
<th class="text-center" scope="col">Email Id</th>
</tr>
</thead>
<tbody>
<?php
$sqlFetchStudents = "SELECT * FROM students WHERE degree='i-phd'";
$result = $conn->query($sqlFetchStudents);
while ($row = $result->fetch_assoc()) {
echo '<tr class="inner-box">
<td>
<div class="event-wrap">
<span>' . $row['name'] . '</span>
</div>
</td>
<td>
<div class="r-no">
<span>' . $row['field'] . '</span>
</div>
</td>
<td>
<div class="primary-btn">
<span>' . $row['email'] . '</span>
</div>
</td>
</tr>';
}
?>
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Field</th>
<th class="text-center" scope="col">Email Id</th>
</tr>
</thead>
<tbody>
<?php
$sqlFetchStudents = "SELECT * FROM students WHERE degree='dual'";
$result = $conn->query($sqlFetchStudents);
while ($row = $result->fetch_assoc()) {
echo '<tr class="inner-box">
<td>
<div class="event-wrap">
<span>' . $row['name'] . '</span>
</div>
</td>
<td>
<div class="r-no">
<span>' . $row['field'] . '</span>
</div>
</td>
<td>
<div class="primary-btn">
<span>' . $row['email'] . '</span>
</div>
</td>
</tr>';
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /col end-->
</div>
<!-- /row end-->
</div>
</div>
</section>
<?php
include 'footer.php';
?>