123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class EmailRegistrationForm extends Form
- {
- protected $email;
- function __construct($out, $email)
- {
- parent::__construct($out);
- $this->email = $email;
- }
- function formData()
- {
- $this->out->element('p', 'instructions',
-
- _m('Enter your email address to register for an account.'));
- $this->out->elementStart('fieldset', array('id' => 'new_bookmark_data'));
- $this->out->elementStart('ul', 'form_data');
- $this->li();
- $this->out->input('email',
-
- _m('LABEL','E-mail address'),
- $this->email);
- $this->unli();
- $this->out->elementEnd('ul');
- $this->out->elementEnd('fieldset');
- }
- function method()
- {
- return 'post';
- }
-
- function formActions()
- {
-
- $this->out->submit('submit', _m('BUTTON', 'Register'));
- }
-
- function id()
- {
- return 'form_email_registration';
- }
-
- function action()
- {
- return common_local_url('register');
- }
- function formClass()
- {
- return 'form_email_registration form_settings';
- }
- }
|