-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enroll-history.php
122 lines (96 loc) · 4.56 KB
/
enroll-history.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
<!-- favicon -->
<link rel="shortcut icon" type="image/jpg" href="studentphoto\Stu_Reg.png"/>
<?php
session_start();
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Enroll History</title>
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
</head>
<body>
<?php include('includes/header.php');?>
<?php if($_SESSION['login']!="")
{
include('includes/menubar.php');
}
?>
<div class="content-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-head-line">Enroll History </h1>
</div>
</div>
<div class="row" >
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
Enroll History
</div>
<div class="panel-body">
<div class="table-responsive table-bordered">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Course Name </th>
<th>Session </th>
<th> Department</th>
<th>Year</th>
<th>Semester</th>
<th>Enrollment Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($bd, "select courseenrolls.course as cid, course.courseName as courname,session.session as session,department.department as dept,year.year as year,courseenrolls.enrollDate as edate ,semester.semester as sem from courseenrolls join course on course.id=courseenrolls.course join session on session.id=courseenrolls.session join department on department.id=courseenrolls.department join year on year.id=courseenrolls.year join semester on semester.id=courseenrolls.semester where courseenrolls.studentRegno='".$_SESSION['login']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo htmlentities($row['courname']);?></td>
<td><?php echo htmlentities($row['session']);?></td>
<td><?php echo htmlentities($row['dept']);?></td>
<td><?php echo htmlentities($row['year']);?></td>
<td><?php echo htmlentities($row['sem']);?></td>
<td><?php echo htmlentities($row['edate']);?></td>
<td>
<a href="print.php?id=<?php echo $row['cid']?>" target="_blank">
<button class="btn btn-default"><i class="fa fa-print "></i> Print</button> </a>
</td>
</tr>
<?php
$cnt++;
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.11.1.js"></script>
<script src="assets/js/bootstrap.js"></script>
</body>
</html>
<?php } ?>