| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | // PageLogin class
|
|---|
| 4 | // Date: 2012-06-13
|
|---|
| 5 |
|
|---|
| 6 | include_once('Page.php');
|
|---|
| 7 | include_once('Form.php');
|
|---|
| 8 |
|
|---|
| 9 | class PageLogin extends Page
|
|---|
| 10 | {
|
|---|
| 11 |
|
|---|
| 12 | function __construct($Language)
|
|---|
| 13 | {
|
|---|
| 14 | parent::__construct('login',$Language);
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | protected function Generate() {
|
|---|
| 18 | //generation of the page
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | $Form = new Form(array(
|
|---|
| 22 | array('name' => 'LoginUser',
|
|---|
| 23 | 'description' => 'Jméno',
|
|---|
| 24 | ),
|
|---|
| 25 | array('name' => 'LoginPass',
|
|---|
| 26 | 'type' => 'password',
|
|---|
| 27 | 'description' => 'Heslo',
|
|---|
| 28 | 'value' => '',),
|
|---|
| 29 | array('name' => 'button',
|
|---|
| 30 | 'type' => 'submit',
|
|---|
| 31 | 'value' => 'PÅihlásit',
|
|---|
| 32 | 'description' => '<a href="?register">Registrace</a>',)), 'PÅihlášenÃ');
|
|---|
| 33 | $this->Content .= $Form->GetText();
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | parent::Generate($this->Content);
|
|---|
| 38 |
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | }
|
|---|
| 42 | ?>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.