Advertisement
repente

Untitled

Jun 1st, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 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_palyer_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;"> ➡ skip the throw ⬅ </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. </div>
  33. </div>
  34. <hr>
  35. <?php if ($data["winner"]) : ?>
  36. <h2 align="center">WINNER 🌞 <?php echo $data["winner"]; ?> 🌞</h2>
  37. <p align="center"> <a href="start"><button> next new game </button></a></p>
  38. <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement