| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | // PageRegister class
|
|---|
| 4 | // Date: 2012-06-13
|
|---|
| 5 |
|
|---|
| 6 | include_once('Page.php');
|
|---|
| 7 | include_once('Form.php');
|
|---|
| 8 |
|
|---|
| 9 | class PageRegister extends Page
|
|---|
| 10 | {
|
|---|
| 11 |
|
|---|
| 12 | function __construct($Language)
|
|---|
| 13 | {
|
|---|
| 14 | parent::__construct('register',$Language);
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | protected function Generate() {
|
|---|
| 18 | //generation of the page
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | $Form = new Form(array(
|
|---|
| 22 | array('name' => 'Email',
|
|---|
| 23 | 'description' => 'Email',
|
|---|
| 24 | 'value' => '@',
|
|---|
| 25 | ),
|
|---|
| 26 | array('name' => 'RegUser',
|
|---|
| 27 | 'description' => 'Jméno',
|
|---|
| 28 | ),
|
|---|
| 29 | array('name' => 'RegPass',
|
|---|
| 30 | 'type' => 'password',
|
|---|
| 31 | 'description' => 'Heslo',
|
|---|
| 32 | 'value' => '',),
|
|---|
| 33 | array('name' => 'RegPass2',
|
|---|
| 34 | 'type' => 'password',
|
|---|
| 35 | 'description' => 'Povrzenà hesla',
|
|---|
| 36 | 'value' => '',),
|
|---|
| 37 | array('name' => 'button',
|
|---|
| 38 | 'type' => 'submit',
|
|---|
| 39 | 'value' => 'Registrovat',)
|
|---|
| 40 | ), 'Registrace nového uşivatele');
|
|---|
| 41 | $this->Content .= $Form->GetText();
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | parent::Generate($this->Content);
|
|---|
| 46 |
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | }
|
|---|
| 50 | ?>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.