-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoursesCompleted.php
80 lines (77 loc) · 3.94 KB
/
coursesCompleted.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
<?php
include('header.php')
?>
<div class="main-panel">
<div class="content-wrapper">
<div class="row" id="proBanner">
<div class="col-8">
</div>
<div class="col-4">
<span class="d-flex align-items-center search-popup">
<form class="d-flex align-items-center h-100" action="search.php" method="GET">
<div class="input-group">
<div class="input-group-prepend bg-white">
<i class="input-group-text border-0 mdi mdi-magnify"></i>
</div>
<input type="text" name="term" class="form-control bg-white border-0" placeholder="Search courses">
<div class="input-group-append bg-white">
<button type="submit" name="submit" class="btn btn-primary">Search</button>
</div>
</div>
</form>
</span>
</div>
</div><br><br>
<div class="d-xl-flex justify-content-between align-items-start">
<h2 class="text-dark font-weight-bold mb-2"><i style="font-size: 20px;" class="text-secondary mdi mdi-book-open-variant icon-md"></i> COMPLETED COURSES </h2>
<div class="d-sm-flex justify-content-xl-between align-items-center mb-2">
<div class="dropdown ml-0 ml-md-4 mt-2 mt-lg-0">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="d-sm-flex justify-content-between align-items-center transparent-tab-border">
</div>
<div class="tab-content tab-transparent-content">
<div class="tab-pane fade show active" id="dashboard-1" role="tabpanel" aria-labelledby="dashboard-tab">
<div class="row">
<?php foreach($CompleteCourses as $course){
$idd = $course['course'];
$sql = "SELECT * FROM courses WHERE id = '$idd'";
$rn = mysqli_query($conn,$sql);
$course = mysqli_fetch_all($rn,MYSQLI_ASSOC);
$course = $course[0];
?>
<div class="col-xl-3 col-lg-6 col-sm-6 grid-margin">
<div class="card">
<div class="card-body">
<div style="display: flex; align-items: center; flex-direction: row; gap: 20px">
<div class="mb-3"><i style="font-size: 40px;" class="text-success mdi mdi-check icon-md"></i></div>
<h5 class="text-primary">
<b class="font-weight-bold"> <?php echo $course['courseCode'] ?> </b>
<hr>
<?php echo $course['courseName'] ?>
</h5>
</div>
<hr>
<p class="text-start" style="text-align: left ;"><?php echo $course['courseDesc'] ?></p> <br>
<a class="btn btn-link w-100 text-dark">
<i class="mdi mdi-check"></i> COMPLETED
</a>
<br>
<hr>
<a href="courses/<?php echo $course['courseCode']?>.pdf" class="btn btn-dark w-100">
VIEW COURSE
</a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('footer.php');?>