PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/yii/demos/hangman/protected/views/game/guess.php

https://bitbucket.org/codevarun/zurmo-invoice-example
PHP | 21 lines | 15 code | 6 blank | 0 comment | 2 complexity | e748db5de2c33cd1188152d7b3675017 MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause, LGPL-2.1, BSD-2-Clause
  1. <h2>Please make a guess</h2>
  2. <h3 style="letter-spacing: 4px;"><?php echo $this->guessWord; ?></h3>
  3. <p>You have made <?php echo $this->misses; ?> bad guesses out of a maximum of <?php echo $this->level; ?>.</p>
  4. <?php echo CHtml::statefulForm(); ?>
  5. <p>Guess:
  6. <?php
  7. for($i=ord('A');$i<=ord('Z');++$i)
  8. {
  9. if(!$this->isGuessed(chr($i)))
  10. echo "\n".CHtml::linkButton(chr($i),array('submit'=>array('guess','g'=>chr($i))));
  11. }
  12. ?>
  13. </p>
  14. <p><?php echo CHtml::linkButton('Give up?',array('submit'=>array('giveup'))); ?></p>
  15. </form>