Line | |
---|
1 | unit ContactPage;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, FileUtil, WebPage, HTTPServer, HtmlClasses, ModuleUser;
|
---|
7 |
|
---|
8 | type
|
---|
9 |
|
---|
10 | { TContactPage }
|
---|
11 |
|
---|
12 | TContactPage = class(TWebPage)
|
---|
13 | procedure DataModuleProduce(HandlerData: THTTPHandlerData);
|
---|
14 | end;
|
---|
15 |
|
---|
16 | var
|
---|
17 | ContactPage: TContactPage;
|
---|
18 |
|
---|
19 |
|
---|
20 | implementation
|
---|
21 |
|
---|
22 | {$R *.lfm}
|
---|
23 |
|
---|
24 | uses
|
---|
25 | Core, WebSession;
|
---|
26 |
|
---|
27 | procedure TContactPage.DataModuleProduce(HandlerData: THTTPHandlerData);
|
---|
28 | var
|
---|
29 | ModuleUser: TModuleUser;
|
---|
30 | begin
|
---|
31 | with TWebSession(HandlerData), HtmlDocument.Body, SubItems.AddString do begin
|
---|
32 | ModuleUser := TModuleUser(ModuleManager.FindModuleByName('User'));
|
---|
33 | if Request.Path.Count > 1 then begin
|
---|
34 | PageNotFound;
|
---|
35 | Exit;
|
---|
36 | end;
|
---|
37 |
|
---|
38 | ModuleUser.LoadUserInfo;
|
---|
39 | Text := '<strong>Kontaktní informace</strong><br/>' +
|
---|
40 | 'Provozovatel: <strong>Ing. Jiří Hajda</strong><br/>' +
|
---|
41 | 'Adresa: <strong>Zděchov 208, 75607</strong><br/>' +
|
---|
42 | 'Telefon: <strong>737785792</strong><br/>' +
|
---|
43 | 'E-mail: <a href="mailto: robie@centrum.cz">robie@centrum.cz</a><br/>' +
|
---|
44 | 'Jabber: <strong>chronos@jabbim.cz</strong><br/>' +
|
---|
45 | 'IČ: <strong>75904535</strong><br/>' +
|
---|
46 | 'DIČ: <strong>CZ8303255884</strong> (neplátce DPH)<br/>' +
|
---|
47 | 'Bankovní spojení pro platby v CZK v ČR: <strong>2600134781 / 2010</strong><br/>' +
|
---|
48 | 'Bankovní spojení IBAN pro platby v EUR v SR: <strong>CZ20 2010 0000 0026 0013 4781</strong><br/>' +
|
---|
49 | 'Datová schránka: <strong>crkayqe</strong><br/>';
|
---|
50 | GeneratePage(Self);
|
---|
51 | end;
|
---|
52 | end;
|
---|
53 |
|
---|
54 | end.
|
---|
55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.