show correct answer only with link (Issue #46)

This commit is contained in:
coderkun 2014-03-22 21:19:25 +01:00
commit 1cf1e86ff7
10 changed files with 48 additions and 41 deletions

View file

@ -1,11 +1,11 @@
<form method="post">
<?php foreach($texts as $i => &$text) : ?>
<?php if($i > 0) : ?>
<input type="text" name="answers[<?=$i-1?>]" value="<?=$regexs[$i-1]['answer']?>" <?=($solved) ? 'disabled="disabled"' : '' ?>/>
<input type="text" name="answers[<?=$i-1?>]" value="<?=$regexs[$i-1]['answer']?>" />
<?php endif ?>
<?=\hhu\z\Utils::t($text)?>
<?php endforeach ?>
<br /><br />
<input type="submit" name="submit" value="<?=_('solve')?>" <?=($solved) ? 'disabled="disabled"' : '' ?> />
<input type="submit" name="submit" value="<?=_('solve')?>" />
</form>