-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
181 lines (154 loc) · 6.5 KB
/
index.php
File metadata and controls
181 lines (154 loc) · 6.5 KB
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
177
178
179
180
181
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>All Courses</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,700|Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="css/styles-merged.css">
<link rel="stylesheet" href="css/style.min.css">
</head>
<body>
<!-- Fixed navbar -->
<?php include "include/navbar.php"; ?>
<section class="flexslider">
<ul class="slides">
<li style="background-image: url(img/slider_1.jpg);" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">BRIGHT AND VIBRANT SPACES</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_2.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">EDUCATIONAL EXPERIENCE WHICH INSPIRES AND ENCOURAGES</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_3.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">DEVELOPING INDIVIDUAL INTERESTS AND PASSIONS</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_4.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate"></h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_5.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">WE GUIDE YOU WITH EASY PROCESS AND TRANSITION</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_6.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">OPPORTUNITY TO PROGRESS AND PROSPER</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_7.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">DEVELOPING INDIVIDUAL INTERESTS AND PASSIONS</h1>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(img/slider_8.jpg)" class="overlay">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="probootstrap-slider-text text-center">
<h1 class="probootstrap-heading probootstrap-animate">CONNECT AND GATHER FOR LONG - TERM VALUE</h1>
</div>
</div>
</div>
</div>
</li>
</ul>
</section>
<section class="probootstrap-section">
<div class="container">
<div class="row">
<?php
$i=1;
$html=[];
$allCourses=displayAllCourse();
//check($allCourses);
if(is_array($allCourses))
{
foreach ($allCourses as $key => $value)
{
if($i==5)
{
break;
}
$words = explode(" ", $value['c_description']);
$words = array_slice($words, 0, 25);
$description=implode(" ", $words);
echo '<div class="col-md-6">
<div class="probootstrap-service-2 probootstrap-animate">
<div class="image">
<div class="image-bg">
<img src="img/course_img/'.$value['c_image'].'">
</div>
</div>
<div class="text">
<span class="probootstrap-meta"><i class="icon-calendar2"></i> '.formatDate($value['created_at']).'</span><br>
<span class="badge" style="background:#6fd96f">'.ucwords(htmlspecialchars($value['program'])).'</span>
<h3>'.ucwords(htmlspecialchars($value['c_name'])).'</h3>
<p>'.$description.'</p>
<p><a href="" p_id='.$value['p_id'].' c_id='.$value['id'].' data-target=".courseEnroll" class="btn btn-primary applyCourse" data-toggle="modal" >Enroll</a>
<a href="" c_id='.$value['id'].' class="btn btn-info detailCourse" data-target=".viewCourseDetail" data-toggle="modal" >Detail</a> </p></p>
</div>
</div>
</div>';
$i++;
}
}
?>
</div>
</div>
</section>
<?php include "include/footer.php"; ?>
</body>
</html>