fixed order of achievement title and count

This commit is contained in:
Daniel 2014-04-28 14:32:05 +02:00
commit df3dd6466c
3459 changed files with 594367 additions and 0 deletions

View file

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

View file

@ -0,0 +1,7 @@
<?php foreach($texts as $i => &$text) : ?>
<?php if($i > 0) : ?>
<span style="background-color:grey"><?=$regexs[$i-1]['answer']?></span>
<?php if($regexs[$i-1]['right']) : ?>✓<?php else: ?>✕<?php endif ?>
<?php endif ?>
<?=$t->t($text)?>
<?php endforeach ?>