Changeset 36 for trunk/Pages/UMainPage.pas
- Timestamp:
- Oct 29, 2010, 10:44:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UMainPage.pas
r35 r36 19 19 procedure ServerInfo(App: TCustomApplication; HandlerData: THTTPHandlerData); 20 20 procedure WebCam(App: TCustomApplication; HandlerData: THTTPHandlerData); 21 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData); 21 22 22 23 implementation … … 159 160 '<br /><div align="center"><img name="theImage" src="" idth="640" height="480" alt="Webcam image"><br>Poslední aktualizace: ' + 160 161 DateTimeToStr(FileDateToDateTime(FileAge(WebCamImage))) + '<br>Obnovování po ' + IntToStr(RefreshInterval) + ' sekundách</div><br />'; 161 end else Text := '<br />Obrázek nenalezen.<br /><br />';162 end else Text := Text + '<br />Obrázek nenalezen.<br /><br />'; 162 163 Text := Text + '</td></tr></table>'; 163 164 end; … … 316 317 'Provozovatel: Ing. Jiří Hajda<br/>' + 317 318 'Adresa: Zděchov 208, 75607<br/>' + 318 'Telef ón: 737785792<br/>' +319 'Telefon: 737785792<br/>' + 319 320 'E-mail: <a href="mailto: robie@centrum.cz">robie@centrum.cz</a><br/>' + 321 'ICQ: <a href="http://www.icq.com/people/277158770">277158770</a><br/>' + 320 322 'IČ: 75904535<br/>' + 321 323 'DIČ: CZ8303255884<br/>' + … … 324 326 end; 325 327 328 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData); 329 var 330 PageName: string; 331 begin 332 App.HtmlDocument.Title := 'Uživatel'; 333 334 if HandlerData.Request.QueryParts.Count > 1 then PageName := HandlerData.Request.QueryParts[1] 335 else PageName := ''; 336 with App.HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin 337 if PageName = 'prihlaseni' then begin 338 Text := 'Login'; 339 340 end else Text := ''; 341 end; 342 end; 343 344 326 345 procedure ServerInfo(App: TCustomApplication; HandlerData: THTTPHandlerData); 327 346 begin
Note:
See TracChangeset
for help on using the changeset viewer.