Created
October 9, 2019 14:20
-
-
Save simoncourtenage/8f06f1c93b58707190e83a615bb43df9 to your computer and use it in GitHub Desktop.
Answer View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body style="padding:20px"> | |
<div> | |
<!-- | |
Display the image using the image url sent back by the model. | |
--> | |
<img src="<?php echo $image ?>" width=400> | |
</div> <!-- div/img --> | |
<div> | |
<?php | |
if ($iscorrect === true) { | |
// they guess correctly | |
?> | |
<h2 class="bg-success"> | |
Correct! It's <?php echo $name ?>! | |
</h2> | |
<?php | |
} | |
else { | |
// they guessed wrongly | |
?> | |
<h2 class="bg-warning"> | |
Wrong! It's not <?php echo $name ?>! | |
</h2> | |
<?php | |
} | |
?> | |
<a href="/codeig/index.php/Guesser/guess"><button class="btn btn-primary btn-sm">Next<button></a> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment