Changeset 50 for trunk/Pages/UMainPage.pas
- Timestamp:
- Apr 30, 2011, 10:56:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UMainPage.pas
r48 r50 6 6 7 7 uses 8 Classes, SysUtils, USqlDatabase, UCore, U CustomApplication, UHtmlClasses,8 Classes, SysUtils, USqlDatabase, UCore, UMainModule, UHtmlClasses, 9 9 UHTTPServer, UWebObjects; 10 10 11 procedure Links(App: TCustomApplication; HandlerData: THTTPHandlerData); 12 procedure History(App: TCustomApplication; HandlerData: THTTPHandlerData); 13 procedure Internet(App: TCustomApplication; HandlerData: THTTPHandlerData); 14 procedure VoIP(App: TCustomApplication; HandlerData: THTTPHandlerData); 15 procedure Hosting(App: TCustomApplication; HandlerData: THTTPHandlerData); 16 procedure About(App: TCustomApplication; HandlerData: THTTPHandlerData); 17 procedure Documents(App: TCustomApplication; HandlerData: THTTPHandlerData); 18 procedure Contact(App: TCustomApplication; HandlerData: THTTPHandlerData); 19 procedure ServerInfo(App: TCustomApplication; HandlerData: THTTPHandlerData); 20 procedure WebCam(App: TCustomApplication; HandlerData: THTTPHandlerData); 21 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData); 22 procedure Plans(App: TCustomApplication; HandlerData: THTTPHandlerData); 23 procedure Network(App: TCustomApplication; HandlerData: THTTPHandlerData); 11 procedure Links(App: TMainModule; HandlerData: THTTPHandlerData); 12 procedure History(App: TMainModule; HandlerData: THTTPHandlerData); 13 procedure Internet(App: TMainModule; HandlerData: THTTPHandlerData); 14 procedure VoIP(App: TMainModule; HandlerData: THTTPHandlerData); 15 procedure Hosting(App: TMainModule; HandlerData: THTTPHandlerData); 16 procedure About(App: TMainModule; HandlerData: THTTPHandlerData); 17 procedure Documents(App: TMainModule; HandlerData: THTTPHandlerData); 18 procedure Contact(App: TMainModule; HandlerData: THTTPHandlerData); 19 procedure ServerInfo(App: TMainModule; HandlerData: THTTPHandlerData); 20 procedure WebCam(App: TMainModule; HandlerData: THTTPHandlerData); 21 procedure UserControl(App: TMainModule; HandlerData: THTTPHandlerData); 22 procedure Plans(App: TMainModule; HandlerData: THTTPHandlerData); 23 procedure Network(App: TMainModule; HandlerData: THTTPHandlerData); 24 24 25 25 26 implementation 26 27 27 procedure Links(App: T CustomApplication; HandlerData: THTTPHandlerData);28 procedure Links(App: TMainModule; HandlerData: THTTPHandlerData); 28 29 begin 29 30 App.HtmlDocument.Title := 'Odkazy'; … … 61 62 end; 62 63 63 procedure History(App: T CustomApplication; HandlerData: THTTPHandlerData);64 procedure History(App: TMainModule; HandlerData: THTTPHandlerData); 64 65 var 65 66 DbRows: TDbRows; … … 87 88 end; 88 89 89 procedure Plans(App: T CustomApplication; HandlerData: THTTPHandlerData);90 procedure Plans(App: TMainModule; HandlerData: THTTPHandlerData); 90 91 var 91 92 DbRows: TDbRows; … … 124 125 end; 125 126 126 procedure Internet(App: T CustomApplication; HandlerData: THTTPHandlerData);127 procedure Internet(App: TMainModule; HandlerData: THTTPHandlerData); 127 128 begin 128 129 with App do begin … … 150 151 end; 151 152 152 procedure WebCam(App: T CustomApplication; HandlerData: THTTPHandlerData);153 procedure WebCam(App: TMainModule; HandlerData: THTTPHandlerData); 153 154 const 154 155 WebCamImage = 'images/webcam/webcam.jpg'; … … 196 197 end; 197 198 198 procedure VoIP(App: T CustomApplication; HandlerData: THTTPHandlerData);199 procedure VoIP(App: TMainModule; HandlerData: THTTPHandlerData); 199 200 begin 200 201 with App do begin … … 230 231 end; 231 232 232 procedure Hosting(App: T CustomApplication; HandlerData: THTTPHandlerData);233 procedure Hosting(App: TMainModule; HandlerData: THTTPHandlerData); 233 234 var 234 235 I: Integer; … … 294 295 end; 295 296 296 procedure Network(App: T CustomApplication; HandlerData: THTTPHandlerData);297 procedure Network(App: TMainModule; HandlerData: THTTPHandlerData); 297 298 var 298 299 TextBlock: THtmlString; … … 309 310 end; 310 311 311 procedure About(App: T CustomApplication; HandlerData: THTTPHandlerData);312 procedure About(App: TMainModule; HandlerData: THTTPHandlerData); 312 313 var 313 314 TextBlock: THtmlString; … … 361 362 end; 362 363 363 procedure Documents(App: T CustomApplication; HandlerData: THTTPHandlerData);364 procedure Documents(App: TMainModule; HandlerData: THTTPHandlerData); 364 365 begin 365 366 with App do begin … … 385 386 end; 386 387 387 procedure Contact(App: T CustomApplication; HandlerData: THTTPHandlerData);388 procedure Contact(App: TMainModule; HandlerData: THTTPHandlerData); 388 389 begin 389 390 App.HtmlDocument.Title := 'Kontakt'; … … 403 404 end; 404 405 405 procedure UserControl(App: T CustomApplication; HandlerData: THTTPHandlerData);406 procedure UserControl(App: TMainModule; HandlerData: THTTPHandlerData); 406 407 var 407 408 PageName: string; … … 440 441 441 442 442 procedure ServerInfo(App: T CustomApplication; HandlerData: THTTPHandlerData);443 procedure ServerInfo(App: TMainModule; HandlerData: THTTPHandlerData); 443 444 begin 444 445 HandlerData.Session.Values['Test'] := 'Tst'; 445 App.HTTPServer.ServerInfo(HandlerData);446 MainModule.HTTPServer.ServerInfo(HandlerData); 446 447 end; 447 448
Note:
See TracChangeset
for help on using the changeset viewer.