index.html.php 892 B

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