index.html.php 810 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $this->styles($this->html->style("/css/login_signup.css"));
  3. if (isset($key))
  4. {
  5. echo "Confirmation Link: <a href=\"<?=$link ?>/<?=$key->key ?>\"> Link </a>";
  6. }
  7. else
  8. {
  9. $template = '<tr{:wrap}><td>{:label}</td><td>{:input}</td><td>{:error}</td></tr>';
  10. ?>
  11. <?= $this->flashMessage->output(); ?>
  12. <div id="login_signup">
  13. <?= $this->form->create($user); ?>
  14. <table>
  15. <?= $this->form->field('username',
  16. array('template' => $template, 'id' => 's_username')) ?>
  17. <?= $this->form->field('newpass',
  18. array('template' => $template, 'id' => 's_password', 'label' => 'Password', 'type' => 'password')) ?>
  19. <?= $this->form->field('email',
  20. array('template' => $template, 'id' => 's_email')) ?>
  21. </table>
  22. <?= $this->form->submit('Signup!'); ?>
  23. <?= $this->form->end(); ?>
  24. </div>
  25. <?php
  26. }
  27. ?>