-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedbackdisplay.php
More file actions
134 lines (108 loc) · 6.04 KB
/
feedbackdisplay.php
File metadata and controls
134 lines (108 loc) · 6.04 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
<!-- Customer feedback_tb -->
<div class="">
<div class="container text-center border-bottom">
<h2 style="margin-top:30px;" class="text-center text-dark">Consumers Feedback</h2></div></div>
<?php
include('dbConnection.php');
$sql="SELECT feed_name,feed_desc,feed_tag,feed_rate FROM `feedback_tb` ";
$result = $conn->query($sql);
if($result->num_rows>0){
echo '<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">';
echo '<div class="carousel-inner" style="">';
while($row=$result->fetch_assoc()){
echo '<div class="carousel-item active mt-5" style="overflow:hidden; border-radius:10px;" data-bs-interval="2000">';
echo '<div class="container shadow-lg bg-danger" style="height:50vh; width:50vw; border-radius:10px; display:grid; align-items:center;">';
echo '<div>';
echo '<h1 class="text-center text-light">`'.$row['feed_name'].'`</h1>';
echo '<h3 class="text-center text-light">'.$row['feed_tag'].'</h3>';
echo '<p class="text-center text-light">'.$row['feed_desc'].'</p>';
echo '<p class="text-center text-light">Rating by Customer : '.$row['feed_rate'].'</p>';
echo '</div>';
echo '</div>';
echo '</div>';
}
// echo '<div class="carousel-item" style="overflow:hidden;" data-bs-interval="10000">';
// echo '<div class="container" style="background-color:pink; height:50vh; width:50vw; display:grid; align-items:center;">';
// echo '<div>';
// echo '<h1 class="text-center">1nd slide label</h1>';
// echo '<p class="text-center">Some representative placeholder content for the third slide.</p>';
// echo '</div>';
// echo '</div>';
// echo '</div>';
echo '</div>';
echo ' <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls"
data-bs-slide="prev">';
echo ' <span class="carousel-control-prev-icon bg-danger" aria-hidden="true">';
echo '</span>';
echo '<span class="visually-hidden">Previous</span>';
echo ' </button>';
echo ' <button class="carousel-control-next " type="button" data-bs-target="#carouselExampleControls"
data-bs-slide="next">';
echo ' <span class="carousel-control-next-icon bg-danger" aria-hidden="true">';
echo '</span>';
echo '<span class="visually-hidden">Next</span>';
echo ' </button>';
echo '</div>';
// echo 'Request ID:'.$row['request_id'];
// echo '</div>';
// echo '<div class="card-body">';
// echo '<h5 class="card-title">Request Info: '.$row['request_info'];
// echo '</h5>';
// echo '<p class="card-text">'.$row['request_desc'];
// echo '</p>';
// echo '<p class="card-text">'.$row['request_date'];
// echo '</p>';
// echo '<div style="float:right;">';
// echo '<form action="" method="POST">';
// echo '<input type="hidden" name="id" value='.$row["request_id"].'>';
// echo '<input type="submit" class="btn btn-danger" style="margin-right:6px;" value="View" name="view">';
// echo '<input type="submit" class="btn btn-secondary" value="Close" name="close">';
// echo '</form>';
// echo '</div>';
// echo '</div>';
// echo '</div>';
}
?>
<!--
<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner" style="">
<div class="carousel-item active" style="overflow:hidden;" data-bs-interval="10000">
<div class="container" style="background-color:green; height:50vh; width:50vw; display:grid; align-items:center;">
<div> <h1 class="text-center">2nd slide label</h1>
<p class="text-center">Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<div class="carousel-item" style="overflow:hidden;" data-bs-interval="10000">
<div class="container" style="background-color:pink; height:50vh; width:50vw; display:grid; align-items:center;">
<div> <h1 class="text-center">first slide label</h1>
<p class="text-center">Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<div class="carousel-item" style="overflow:hidden;" data-bs-interval="10000">
<div class="container" style="background-color:blue; height:50vh; width:50vw; display:grid; align-items:center;">
<div> <h1 class="text-center">first slide label</h1>
<p class="text-center">Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<div class="carousel-item" style="overflow:hidden;" data-bs-interval="10000">
<div class="container" style="background-color:red; height:50vh; width:50vw; display:grid; align-items:center;">
<div> <h1 class="text-center">first slide label</h1>
<p class="text-center">Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div> -->