Last change
on this file was 8, checked in by chronos, 18 months ago |
- Modified: Updated Common package.
- Modified: Form types made as separate FormManager package.
- Fixed: PHP 8.1 support.
|
File size:
920 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class PageMain extends Page
|
---|
4 | {
|
---|
5 | function Show(): string
|
---|
6 | {
|
---|
7 | if (array_key_exists('from', $_GET)) $PlaceFrom = $_GET['from'];
|
---|
8 | else $PlaceFrom = '';
|
---|
9 | if (array_key_exists('to', $_GET)) $PlaceTo = $_GET['to'];
|
---|
10 | else $PlaceTo = '';
|
---|
11 | if (array_key_exists('time', $_GET)) $Time = $_GET['time'];
|
---|
12 | else $Time = '';
|
---|
13 | $Output = '<table style="width: 100%; margin-top: 100px; margin-bottom: 100px;"><tr><td style="text-align: center">'.
|
---|
14 | '<div><h3>Vyhledat jízdu</h3>'.
|
---|
15 | '<form style="display: inline;" method="get" action="'.$this->System->Link('/jizdy/').'">'.
|
---|
16 | 'Odkud: <input type="text" name="from" value="'.$PlaceFrom.'"/> '.
|
---|
17 | 'Kam: <input type="text" name="to" value="'.$PlaceTo.'"/> '.
|
---|
18 | 'Čas: <input type="text" name="time" value="'.$Time.'"/> '.
|
---|
19 | '<input type="submit" value="Hledat"/>'.
|
---|
20 | '</form></div></td></tr></table>';
|
---|
21 | return $Output;
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.