|
Server IP : 2a02:4780:11:1017:0:31f1:b895:8 / Your IP : 216.73.216.163 Web Server : LiteSpeed System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u837925013 ( 837925013) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include("conn.php");
if($_POST['type']==1){
$get_brand= mysqli_fetch_array($con->query("select * from feedback WHERE id='".$_POST['id']."'"));
?>
<table class="ajax_show_table">
<tr>
<th>Name</th>
<td>: <?php echo $get_brand['name']; ?></td>
</tr>
<tr>
<th>Email</th>
<td>: <?php echo $get_brand['email']; ?></td>
</tr>
<tr>
<th>Phone</th>
<td>: <?php echo $get_brand['phone']; ?></td>
</tr>
<tr>
<th>Order ID</th>
<td>: <?php echo $get_brand['order_id']; ?></td>
</tr>
<tr>
<th>Feedback Reason</th>
<td>: <?php echo $get_brand['feedback_reason']; ?></td>
</tr>
</table>
<hr>
<h4>Rating--</h4>
<div class="ajax-rating">
<p>How would you rate your experience at REPAIR?</p>
<span>
<?php
$rating = $get_brand['stars']-1;
$color = 'active-star';
$html ="";
for ($i = 0; $i < 5; $i++) {
if($i <= $rating){
echo $html = '<i class="fa fa-star '.$color.'"></i>';
}else{
echo $html = '<i class="fa fa-star"></i>';
}
}
?>
</span>
<p>The store communicated expectations about my device throughout the repair process.</p>
<span>
<?php
$rating1 = $get_brand['stars1']-1;
$color1 = 'active-star';
$html1 ="";
for ($i1 = 0; $i1 < 5; $i1++) {
if($i1 <= $rating1){
echo $html1 = '<i class="fa fa-star '.$color1.'"></i>';
}else{
echo $html1 = '<i class="fa fa-star"></i>';
}
}
?>
</span>
<p>The store staff was courteous and helpful throughout my repair process</p>
<span>
<?php
$rating2 = $get_brand['stars2']-1;
$color2 = 'active-star';
$html2 ="";
for ($i2 = 0; $i2 < 5; $i2++) {
if($i2 <= $rating2){
echo $html2 = '<i class="fa fa-star '.$color2.'"></i>';
}else{
echo $html2 = '<i class="fa fa-star"></i>';
}
}
?>
</span>
<p>My device functions and feels as good or better than expected after my repair</p>
<span>
<?php
$rating3 = $get_brand['stars3']-1;
$color3 = 'active-star';
$html3 ="";
for ($i3 = 0; $i3 < 5; $i3++) {
if($i3 <= $rating3){
echo $html3 = '<i class="fa fa-star '.$color3.'"></i>';
}else{
echo $html3 = '<i class="fa fa-star"></i>';
}
}
?>
</span>
<p>How likely are you to refer a friend or family member to REPAIR?</p>
<span>
<?php
$rating4 = $get_brand['stars4']-1;
$color4 = 'active-star';
$html4 ="";
for ($i4 = 0; $i4 < 5; $i4++) {
if($i4 <= $rating4){
echo $html4 = '<i class="fa fa-star '.$color4.'"></i>';
}else{
echo $html4 = '<i class="fa fa-star"></i>';
}
}
?>
</span>
</div>
<?php } ?>