-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
290 lines (198 loc) · 10.5 KB
/
index.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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?php
$title="Taalem | Online Course Learning";
require_once 'header.php';
?>
<div id="myCarousel" class="carousel slide mycs" data-ride="carousel" data-interval="5000">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img class="first-slide img-responsive sliderimage imgr" src="assests/img/1.jpg" width="100%" height="600px" alt="First slide">
<div class="carousel-caption slide1-cap">
<h1 class="abfont animated slideInDown" style="font-size: 130px;text-align:left;margin-bottom:-20px;">Taalem.</h1>
<h2 class="animated fadeInUp" style="text-align: left;"><span class="highlight">Intelligent</span> that is the <span class="highlight">goal</span> of the education.</h2>
</div>
</div>
<div class="carousel-item">
<img class="second-slide img-responsive imgr" src="assests/img/2.jpg" width="100%" height="600px" alt="Second slide">
<div class="carousel-caption slide2-cap">
<h1 class="animated fadeInUp" style="text-align: left;font-size:72px;"><span class="highlight">BeSmart</span> with <br>our <span class="highlight">Courses</span></h1>
</div>
</div>
<div class="carousel-item">
<img class="second-slide img-responsive sliderimage imgr" src="assests/img/3.jpg" width="100%" height="600px" alt="Second slide">
<div class="carousel-caption slide2-cap">
<h1 class="animated fadeInUp" style="text-align: left;font-size:72px;"><span class="highlight">Learn</span> more <br><span class="highlight">Earn</span> more.</h1>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row m-4">
<div class="col-md-12 mt-4">
<div class="text-center">
<h1 class="display-2 text-center">Welcome To </h1>
<img src="assests/img/taalem-512.png" alt="dasd">
<hr class="mx-auto style13">
<p class="mx-auto" style="width: 60%;">Welcome to Taalem collection of world-class online learning opportunities. The Taalem Online Learning portal provides a gateway for the public to access Taalem's extensive learning content. </p>
</div>
<div class="row m-5">
<div class="col-md-4 text-center">
<i class="fas fa-graduation-cap fa-5x mb-5 wow bounce" data-wow-offset="150"></i>
<h3>Facility of Scholarship</h3>
<p>Online and inside campus programs for all teachers, principal, administrator, and the policy makers for free.</p>
</div>
<div class="col-md-4 text-center">
<i class="fas fa-desktop fa-5x mb-5 wow bounce" data-wow-offset="150"></i>
<h3>Learn Courses Online</h3>
<p>Online and inside campus programs for all teachers, principal, administrator, and the policy makers for free.</p>
</div>
<div class="col-md-4 text-center">
<i class="fas fa-book fa-5x mb-5 wow bounce" data-wow-offset="150"></i>
<h3>Notes And books </h3>
<p>Online and inside campus programs for all teachers, principal, administrator, and the policy makers for free.</p>
</div>
</div>
</div>
</div>
<div class="counter-section" >
<div class="row">
<?php
$gets = $dc->getRow("select count(studid) as tstud from student");
$geti = $dc->getRow("select count(instid) as tinst from instructor");
$getc = $dc->getRow("select count(courseid) as tcourse from course");
?>
<div class="col-md-4 col-xs-12 text-center" style="color:white">
<i class="fas fa-graduation-cap fa-5x mb-2"></i>
<h2><span class="count"><?= $gets['tstud'] ?></span>+ Students</h2>
</div>
<div class="col-md-4 col-xs-12 text-center" style="color:white">
<i class="fas fa-user fa-5x mb-2"></i>
<h2><span class="count"><?= $geti['tinst'] ?></span>+ Instructor</h2>
</div>
<div class="col-md-4 col-xs-12 text-center" style="color:white">
<i class="fas fa-desktop fa-5x mb-2" ></i>
<h2><span class="count"><?= $getc['tcourse'] ?></span>+ Courses</h2>
</div>
</div>
</div>
</div>
<div class="container mb-5">
<div class="row mx-4">
<div class="col-md-12 mt-4">
<div class="text-center">
<h1 class="display-4">Courses</h1>
<hr class="mx-auto style13">
<p class="mx-auto" style="width: 60%;">Find online courses and a wide range of related learning content from across Educamp’s online store, schools, initiatives, and programs. </p>
<div class="float-right" style="width: 20%">
<select class="form-control" id="btns">
<option value="1" data-filter="rec" selected="selected">Recent</option>
<option value="2" data-filter="fea">Featured</option>
</select>
<!-- <button class="btn btn-primary btns" data-filter="rec">Recent</button>
<button class="btn btn-primary btns" data-filter="fea">Featured</button> -->
</div>
<div class="clearfix"></div>
</div>
<div class="row mt-4">
<?php
$coursed = $dc->getTable("select c.*,i.instname from course c,instructor i where c.instid=i.regid order by courseid desc limit 4");
while ($rw= mysqli_fetch_assoc($coursed)) {
?>
<div class="col-md-3 col-sm-6 mb-3 rec">
<div class="card single-card" style="width: 15rem;height: auto">
<img class="card-img-top imgr" src="content/<?= $rw['thumbnailurl'] ?>" alt="Card image cap" height="120px">
<div class="card-body">
<p class="card-title"><a class="a-black" href="singlecourse.php?id=<?= $rw['courseid'] ?>"><?= $rw['coursename'] ?></a></p>
<p class="card-text"><span class="text-muted"> <?= $rw['instname'] ?></span></p>
<hr/>
<?php if ($rw['coursetype'] == 'free'): ?>
<a href="singlecourse.php?id=<?= $rw['courseid'] ?>" class="btn btn-primary mr-2"><?= $rw['coursetype'] ?></a>
<?php else: ?>
<a href="singlecourse.php?id=<?= $rw['courseid'] ?>" class="btn btn-primary mr-2"><?= $rw['price'] ?></a>
<?php endif ?>
<?php $totalenroll = $dc->getRow("select count(enrollid) as total from courseenroll where courseid='$rw[courseid]'"); ?>
<span class="mx-2"><i class="fas fa-user"></i> <?= $totalenroll['total'] ?></span>
<?php $totalrv = $dc->getRow("select count(revid) as total from review where courseid='$rw[courseid]'"); ?>
<span class="mx-2"><i class="fas fa-comments"></i> <?= $totalrv['total'] ?> </span>
</div>
</div>
</div>
<?php } ?>
<?php $coursed = $dc->getTable("select c.*,i.instname from course c,instructor i where c.instid=i.regid order by rand() limit 4");
while ($rw= mysqli_fetch_assoc($coursed)){ ?>
<div class="col-md-3 col-sm-6 col-xs-12 mb-3 fea">
<div class="card single-card" style="width: 15rem;height: auto">
<img class="card-img-top imgr" src="content/<?= $rw['thumbnailurl'] ?>" alt="Card image cap" height="120px">
<div class="card-body">
<p class="card-title"><a class="a-black" href="singlecourse.php?id=<?= $rw['courseid'] ?>"><?= $rw['coursename'] ?></a></p>
<p class="card-text"><span class="text-muted"> <?= $rw['instname'] ?></span></p>
<hr/>
<?php if ($rw['coursetype'] == 'free'): ?>
<a href="singlecourse.php?id=<?= $rw['courseid'] ?>" class="btn btn-primary mr-2"><?= $rw['coursetype'] ?></a>
<?php else: ?>
<a href="singlecourse.php?id=<?= $rw['courseid'] ?>" class="btn btn-primary mr-2"><?= $rw['price'] ?></a>
<?php endif ?>
<?php $totalenroll = $dc->getRow("select count(enrollid) as total from courseenroll where courseid='$rw[courseid]'"); ?>
<span class="mx-2"><i class="fas fa-user"></i> <?= $totalenroll['total'] ?></span>
<?php $totalrv = $dc->getRow("select count(revid) as total from review where courseid='$rw[courseid]'"); ?>
<span class="mx-2"><i class="fas fa-comments"></i> <?= $totalrv['total'] ?> </span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<div id="carouselExampleControls" class="carousel slide " data-ride="carousel">
<div class="carousel-inner btcs" role="listbox">
<?php
$getfbdt = $dc->getTable("select f.fbid,f.detail,f.star,r.username,sih from feedback f,register r where f.regid=r.regid and sih=1");
$k=1;
while ($fbrw = mysqli_fetch_assoc($getfbdt)) {
?>
<div class="carousel-item csci <?php if($k == 1){echo 'active';} ?>">
<div class="carousel-caption csca">
<p class="animated fadeInDown bfont"><?= $fbrw['detail'] ?></p>
<div>
<?php
for ($i = 1; $i <=$fbrw['star'] ; $i++){
echo '<i class="fa fa-star" style="color:#f4c150;"></i>';
}
?>
</div>
<p class="bfont pl-2" style="letter-spacing:2px;"><?= $fbrw['username'] ?></p>
</div>
</div>
<?php $k++;} ?>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="container-fluid" >
<div class="row m-4">
<div class="col-md-12" style="margin-top: 50px">
<div class="text-center">
<h1 class="display-3 text-center wow flipInX">Become A Instructor</h1>
<hr class="mx-auto style13">
<p class="mx-auto" style="width: 60%;">Join our creative community to spread your skill over world</p>
<a href="instructor/" class="btn btn-primary btn-lg"> Get Start Now</a>
</div>
</div>
</div>
</div>
<?php require_once 'footer.php'; ?>
</body>
</html>