-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice-post.php
More file actions
57 lines (55 loc) · 3.27 KB
/
service-post.php
File metadata and controls
57 lines (55 loc) · 3.27 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
<main>
<header class="about-header pt-5 mt-4" data-aos="fade-in">
<div class="about-heading d-flex justify-content-center">
<h1>SERVICES:</h1>
</div>
</header>
<section>
<div class="container-fluid" data-aos="zoom-in">
<div class="row">
<?php
$courseTitle = $_GET['courseTitle'];
$query = "SELECT * FROM services WHERE courseTitle = '$courseTitle' AND servicesStatus='Publish'";
$run = mysqli_query($conn, $query);
if (mysqli_num_rows($run) > 0) {
while ($row = mysqli_fetch_array($run)) {
$servicesId = $row['servicesId'];
$servicesTitle = $row['servicesTitle'];
$servicesDiscription = $row['servicesDiscription'];
$teacherUid = $row['teacherUid'];
$courseTitle = $row['courseTitle'];
$servicesImg = $row['servicesImg'];
?>
<div class="col-lg-6 mt-5">
<div class="services mb-5" id="purple">
<div class="container-fluid">
<div class="row">
<div class="col-lg-5"><img src="upload_img/<?= $row['servicesImg'] ?>" class="img-fluid" alt="service img"></div>
<div class="col-lg-7 d-flex flex-column justify-content-center">
<h4 class="font-weight-bold"><?php echo $servicesTitle ?></h4>
<p><?php echo $servicesDiscription; ?></p>
<p>Creator: <?php echo $teacherUid; ?></p>
<div class="star-rating">
<span class="fa fa-star-o" data-rating="1"></span>
<span class="fa fa-star-o" data-rating="2"></span>
<span class="fa fa-star-o" data-rating="3"></span>
<span class="fa fa-star-o" data-rating="4"></span>
<span class="fa fa-star-o" data-rating="5"></span>
<input type="hidden" name="whatever1" class="rating-value" value="2.56">
</div>
<div class="hero-btn pt-3">
<a class="btn btn-primary px-4" href="./videos.php?servicesTitle=<?php echo $servicesTitle ?>&teacherUid=<?php echo $teacherUid ?>" role="button">Start Watching</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
}
} else {
echo "<center><h2>No Services Available</h2></center>";
}
?>
</section>
</main>