-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathalumni_view.php
147 lines (133 loc) · 5.84 KB
/
alumni_view.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
<?php
include('session.php');
include('db.php');
$page = 'alumni';
$req_course = $_REQUEST['course'];
$req_year = $_REQUEST['year'];
if ($login_level == '1')
{
$result = mysqli_query($con,"SELECT * FROM `user_student_detail` WHERE student_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['student_img'];
}
else if ($login_level == '2')
{
$result = mysqli_query($con,"SELECT * FROM `user_teacher_detail` WHERE teacher_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['teacher_img'];
}
else if ($login_level == '3')
{
$result = mysqli_query($con,"SELECT * FROM `user_admin_detail` WHERE admin_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['admin_img'];
}
else
{
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include('meta.php');?>
<?php include('style_css.php');?>
<title>Dashboard</title>
</head>
<body class=" menu-affix">
<div class="bg-dark dk" id="wrap">
<div id="top">
<?php include ('top_navbar.php');?>
</div>
<!-- /#top -->
<?php
if ($login_level == '1')
{
include('sidebar_student.php');
}
else if ($login_level == '2')
{
include('sidebar_teacher.php');
}
else if ($login_level == '3')
{
include('sidebar_admin.php');
}
else
{
}
?>
<!-- /#left -->
<div id="content">
<div class="outer">
<header class="head">
<div class="main-bar">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="alumni.php">Dashboard</a></li>
<li class="breadcrumb-item "><a href="alumni.php"> Alumni</a></li>
<li class="breadcrumb-item active"> Alumni View</li>
</ol>
</div>
<!-- /.main-bar -->
</header>
<div class="inner bg-light lter">
<div class="col-sm-12">
<h2 class="text-center">
<?php
if ($req_course == 1) {
echo "Computer Science";
}
if ($req_course == 2) {
echo "Information Technology";
}
if ($req_course == 3) {
echo "Office Addministration";
}
?>
</h2>
<h1 class="text-center">Batch of <?php echo $req_year?></h1>
<hr>
<a class="btn btn-info pull-right" href="assets/lib/FPDF/alumnibatchprint.php?course=<?php echo $req_course?>&year=<?php echo $req_year?>" target="_BLANK">PRINT</a>
<br><br>
<table class="table table-bordered table-advance table-hover ">
<thead>
<th>Names</th>
<th>Student Number</th>
</thead>
<tbody>
<?php
$query = mysqli_query($con,"SELECT * FROM `user_student_detail` WHERE student_department = $req_course AND student_year_grad LIKE '%$req_year%' ORDER BY `student_fName` ASC");
$no = 1;
while ($data = mysqli_fetch_array($query)) {
$data['student_fName']
?>
<tr>
<td><?php echo $no ?>. <?php echo $data['student_fName']." ".$data['student_mName']." ". $data['student_lName']?></td>
<td><?php echo $data['student_IDNumber']?></td>
</tr>
<?php
$no = $no + 1;
}
?>
</tbody>
<tfoot>
<tr>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- /.inner -->
</div>
<!-- /.outer -->
</div>
<!-- /#content -->
<!-- /#right -->
</div>
<!-- /#wrap -->
<?php include('footer.php');?>
<!-- /#footer -->
<?php include ('script.php');?>
</body>
</html>