Advertisement
repente

Untitled

Jun 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Anax\View;
  4.  
  5. ?>
  6.  
  7. <h1><?php print $data["h1"]; ?></h1>
  8. <p>You text</p>
  9.  
  10. <div style="display: flex; justify-content: space-around;">
  11. <div style="display: flex; flex-direction: column;">
  12. <div>Player 🎲 <?php echo $data["name_player_move"]; ?> throws</div>
  13. <form action="" method="GET">
  14. <button name="btn" value="trow" style="margin-top: 20px;"> ➑ THROW β¬… </button>
  15. <?php if ($data["type_player"] == 'human') : ?>
  16. <button name="continue" value="trow" style="margin-top: 20px;"> ➑ ☝save total☝ β¬… </button>
  17. <?php endif ?>
  18. <?php
  19.  
  20. $result = '<div style="font-size:40px;">';
  21. for ($i = 0; $i < 2; $i++) {
  22. $result .= '&#x268' . ($data['trows'][$i] - 1);
  23. }
  24. $result .= '</div>';
  25. echo $result;
  26.  
  27. ?>
  28. </form>
  29. </div>
  30. <div class="block-statistics">
  31. <?php print $data["statistics"]; ?>
  32. Current total: <?php echo $data["current"]; ?>
  33. </div>
  34. </div>
  35. <hr>
  36. <div>
  37. <?php if (array_key_exists("histogram", $data)): ?>
  38. <?php echo $data["histogram"]; ?>
  39. <?php endif ?>
  40. </div>
  41. <hr>
  42. <?php if ($data["winner"]) : ?>
  43. <h2 align="center">WINNER 🌞 <?php echo $data["winner"]; ?> 🌞</h2>
  44. <p align="center"> <a href="start"><button> next new game </button></a></p>
  45. <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement