signup.html.php 1.1 KB

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