-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoursesArchived.php
85 lines (81 loc) · 4.21 KB
/
coursesArchived.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
<?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> ARCHIVED 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($Archivecourses as $courses){
$idd = $courses['course'];
$sql = "SELECT * FROM courses WHERE id = '$idd'";
$rn = mysqli_query($conn,$sql);
$course = mysqli_fetch_all($rn,MYSQLI_ASSOC);
// print_r($course);
$course = $course[0];
?>
<div class="col-xl-3 col-lg-6 col-sm-6 grid-margin">
<div class="card" style="background-color: #36093845;">
<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-dark mdi mdi-book-open-variant icon-md"></i></div>
<h5 class="text-primary text-left">
<b class="font-weight-bold"> <?php echo $course['courseCode'] ?> </b>
<hr>
<?php echo $course['courseName'] ?>
</h5>
</div>
<hr>
<p class="text-dark text-left"> <?php echo $course['courseDesc'] ?></p> <br>
<a onclick="unarch('<?php echo $idd?>')" class="btn btn-dark w-100">
UNARCHIVE
</a>
<br>
<hr>
<span class="text-dark">Archived on </span>
<br>
<b for="" class="text-secondary text-left" style="text-align: left;">
<i class="mdi mdi-clock"></i>
<?php echo simpleDate($courses['dateAdded']) ?></b>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('footer.php');?>