signup.html.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php if (isset($key)): ?>
  2. Confirmation Link: <a href="<?=$link ?>/<?=$key->key ?>"> Link </a>
  3. <?php else: ?>
  4. <?php if(isset($user)): ?>
  5. <?=$this->form->create($user); ?>
  6. <?php else: ?>
  7. <?=$this->form->create(); ?>
  8. <?php endif; ?>
  9. <?=$this->form->field('username'); ?>
  10. <?=$this->form->field('newpass', array('type' => 'password', 'label' => 'password')); ?>
  11. <?=$this->form->field('email'); ?>
  12. <?=$this->form->submit('Signup!'); ?>
  13. <?=$this->form->end(); ?>
  14. <?php endif; ?>
  15. <!--
  16. <div id="signup">
  17. <h2>Sign up:</h2>
  18. <form method="post" action="/users/signup">
  19. <table>
  20. <tr>
  21. <td><label for="username">Username</label></td>
  22. <td><input type="text" name="username" id="username">
  23. </tr>
  24. <tr>
  25. <td><label for="password">Password</label></td>
  26. <td><input type="password" id="password" name="password"></td>
  27. </tr>
  28. <tr>
  29. <td><label for="email">Email</label></td>
  30. <td><input type="text" id="email" name="email"></td>
  31. </tr>
  32. </table>
  33. <input class="button green" type="submit" value="Sign up">
  34. </form>
  35. </div>
  36. -->