Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <?php
  2. echo "testttt" ;
  3. echo "here i want try to show the value but nothing work ";
  4.  
  5. ?>
  6.  
  7. <?php if ($reviews) { ?>
  8. <?php foreach ($reviews as $review) {
  9.  
  10. ?>
  11.  
  12. <table class="table table-striped table-bordered">
  13.  
  14. <tr>
  15. <td style="width: 50%;"><strong><?php echo $review['author']; ?></strong></td>
  16. <td class="text-right"><?php echo $review['date_added']; ?></td>
  17. </tr>
  18. <tr>
  19. <td colspan="2"><p><?php echo $review['text']; ?></p>
  20. <div class="rating">
  21. <div class="rating-stars">
  22. <?php for ($i = 1; $i <= 5; $i++) { ?>
  23. <?php if ($review['rating'] < $i) { ?>
  24. <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
  25. <?php } else { ?>
  26. <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
  27. <?php } ?>
  28. <?php } ?>
  29. </div>
  30. </div>
  31. </td>
  32. </tr>
  33. </table>
  34. <?php } ?>
  35. <div class="pagination-results">
  36. <div class="text-right"><?php echo $pagination; ?></div>
  37. </div>
  38. <?php } else { ?>
  39. <p><?php echo $text_no_reviews; ?></p>
  40. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement