Changeset 138 for trunk/Modules/ZdechovNET
- Timestamp:
- Sep 9, 2022, 8:20:25 PM (2 years ago)
- Location:
- trunk/Modules/ZdechovNET
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ZdechovNET/UAboutPage.lfm
r97 r138 1 1 object AboutPage: TAboutPage 2 2 OldCreateOrder = False 3 Raw = False 3 4 Caption = 'Úvod' 4 5 OnProduce = DataModuleProduce 5 Height = 206 6 HorizontalOffset = 259 7 VerticalOffset = 250 8 Width = 407 6 Height = 309 7 HorizontalOffset = 389 8 VerticalOffset = 375 9 Width = 611 10 PPI = 144 9 11 end -
trunk/Modules/ZdechovNET/UAboutPage.pas
r137 r138 12 12 TAboutPage = class(TWebPage) 13 13 procedure DataModuleProduce(HandlerData: THTTPHandlerData); 14 private15 { private declarations }16 14 public 17 15 ModuleUser: TModuleUser; … … 39 37 with TWebSession(HandlerData) do begin 40 38 ModuleUser.LoadUserInfo; 41 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin39 with HtmlDocument.Body, SubItems.AddString do begin 42 40 Text := '<table><tr><td style="vertical-align: top;">' + 43 41 '<a href="' + NavigationLink('/images/pokryti.jpg') + '">' + … … 88 86 for I := 0 to DbRows.Count - 1 do begin 89 87 Text := Text + '<div>' + 90 '<strong>' + DbRows[I]. Values['Title'] + '</strong> ' +91 '<strong>(' + HumanDate(SQLToDateTime(DbRows[I]. Values['Time'])) + ')</strong>' +88 '<strong>' + DbRows[I].Items['Title'] + '</strong> ' + 89 '<strong>(' + HumanDate(SQLToDateTime(DbRows[I].Items['Time'])) + ')</strong>' + 92 90 '<br/>' + 93 DbRows[I]. Values['Text'] + '</div></br>';91 DbRows[I].Items['Text'] + '</div></br>'; 94 92 end; 95 93 finally -
trunk/Modules/ZdechovNET/UContactPage.lfm
r97 r138 1 1 object ContactPage: TContactPage 2 2 OldCreateOrder = False 3 Raw = False 3 4 Caption = 'Kontakt' 4 5 OnProduce = DataModuleProduce 5 Height = 186 6 HorizontalOffset = 295 7 VerticalOffset = 245 8 Width = 496 6 Height = 279 7 HorizontalOffset = 443 8 VerticalOffset = 368 9 Width = 744 10 PPI = 144 9 11 end -
trunk/Modules/ZdechovNET/UContactPage.pas
r135 r138 31 31 procedure TContactPage.DataModuleProduce(HandlerData: THTTPHandlerData); 32 32 begin 33 with TWebSession(HandlerData), HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin33 with TWebSession(HandlerData), HtmlDocument.Body, SubItems.AddString do begin 34 34 ModuleUser.LoadUserInfo; 35 35 Text := '<strong>Kontaktní informace</strong><br/>' + -
trunk/Modules/ZdechovNET/UDocumentsPage.pas
r135 r138 35 35 with TWebSession(HandlerData) do begin 36 36 ModuleUser.LoadUserInfo; 37 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin37 with HtmlDocument.Body, SubItems.AddString do begin 38 38 Text := Text + '<strong>Úřední dokumenty:</strong><br/>' + 39 39 IconedLink(NavigationLink('/docs/rozhrani.pdf'), 'Technická specifikace účastnických rozhraní') + ' ' + -
trunk/Modules/ZdechovNET/UHistoryPage.pas
r135 r138 39 39 with TWebSession(HandlerData) do begin 40 40 ModuleUser.LoadUserInfo; 41 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin41 with HtmlDocument.Body, SubItems.AddString do begin 42 42 Text := '<table>'; 43 43 try … … 46 46 for I := 0 to DbRows.Count - 1 do begin 47 47 Text := Text + '<tr><td style="text-align: right; vertical-align: top;">' + 48 HumanDate(SQLToDateTime(DbRows[I]. Values['Date'])) + ' - </td><td>' +49 DbRows[I]. Values['Text'] + '</td></tr>';48 HumanDate(SQLToDateTime(DbRows[I].Items['Date'])) + ' - </td><td>' + 49 DbRows[I].Items['Text'] + '</td></tr>'; 50 50 end; 51 51 finally -
trunk/Modules/ZdechovNET/UHostingPage.pas
r135 r138 39 39 with TWebSession(HandlerData) do begin 40 40 ModuleUser.LoadUserInfo; 41 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin41 with HtmlDocument.Body, SubItems.AddString do begin 42 42 Text := 'V nabídce je provoz virtualizovaných Linuxových serverů dle dohodnutých parameterů.<br/><br/>' + 43 43 '<strong>Standardní varianty:</strong><br/>' + … … 48 48 Database.Query(DbRows, 'SELECT * FROM VPSHosting ORDER BY Price DESC'); 49 49 for I := 0 to DbRows.Count - 1 do 50 Text := Text + '<tr><td>' + DbRows[I]. Values['Name'] + '</td><td align="center">' +51 DbRows[I]. Values['Internet'] + '</td><td align="center">' + DbRows[I].Values['Memory'] +52 '</td><td align="center">' + DbRows[I]. Values['Space'] + '</td><td align="center">' +53 DbRows[I]. Values['CPU'] + '</td><td align="center">' + DbRows[I].Values['Price'] + '</td></tr>';50 Text := Text + '<tr><td>' + DbRows[I].Items['Name'] + '</td><td align="center">' + 51 DbRows[I].Items['Internet'] + '</td><td align="center">' + DbRows[I].Items['Memory'] + 52 '</td><td align="center">' + DbRows[I].Items['Space'] + '</td><td align="center">' + 53 DbRows[I].Items['CPU'] + '</td><td align="center">' + DbRows[I].Items['Price'] + '</td></tr>'; 54 54 finally 55 55 DbRows.Free; … … 69 69 Database.Query(DbRows, 'SELECT * FROM `HostedProject` WHERE `Active`=1 AND `WebHosting`=0'); 70 70 for I := 0 to DbRows.Count - 1 do 71 if DbRows[I]. Values['Homepage'] <> '' then72 Text := Text + '<li><a href="' + DbRows[I]. Values['Homepage'] + '">' +73 DbRows[I]. Values['Name'] + '</a></li>'74 else Text := Text + '<li>' + DbRows[I]. Values['Name'] + '</li>';71 if DbRows[I].Items['Homepage'] <> '' then 72 Text := Text + '<li><a href="' + DbRows[I].Items['Homepage'] + '">' + 73 DbRows[I].Items['Name'] + '</a></li>' 74 else Text := Text + '<li>' + DbRows[I].Items['Name'] + '</li>'; 75 75 Text := Text + '</ul>'; 76 76 finally … … 83 83 Database.Query(DbRows, 'SELECT * FROM `HostedProject` WHERE `Active`=1 AND `WebHosting`=1'); 84 84 for I := 0 to DbRows.Count - 1 do 85 Text := Text + '<li><a href="' + DbRows[I]. Values['Homepage'] + '">' +86 DbRows[I]. Values['Name'] + '</a></li>';85 Text := Text + '<li><a href="' + DbRows[I].Items['Homepage'] + '">' + 86 DbRows[I].Items['Name'] + '</a></li>'; 87 87 Text := Text + '</ul>'; 88 88 finally -
trunk/Modules/ZdechovNET/UIPTVPage.pas
r137 r138 89 89 with TWebSession(HandlerData) do begin 90 90 ModuleUser.LoadUserInfo; 91 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin91 with HtmlDocument.Body, SubItems.AddString do begin 92 92 Channels := TChannels.Create; 93 93 with Channels do begin -
trunk/Modules/ZdechovNET/UInternetPage.pas
r135 r138 35 35 with TWebSession(HandlerData) do begin 36 36 ModuleUser.LoadUserInfo; 37 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin37 with HtmlDocument.Body, SubItems.AddString do begin 38 38 Text := Text + 'V síti je možné využít také doplňkovou nabídku výhodného připojení k internetu. ' + 39 39 'Tarify se liší v základu minimální a maximální rychlostí. U všech placených tarifů je také k dispozici bonusová sdílená rychlost z volné kapacity sítě.<br/><br/>' + -
trunk/Modules/ZdechovNET/ULinksPage.pas
r135 r138 33 33 procedure TLinksPage.DataModuleProduce(HandlerData: THTTPHandlerData); 34 34 begin 35 with TWebSession(HandlerData), HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin35 with TWebSession(HandlerData), HtmlDocument.Body, SubItems.AddString do begin 36 36 ModuleUser.LoadUserInfo; 37 37 Text := '<strong>Odkazy související s obcí:</strong><br/>' + 38 38 39 '<a href="http ://www.zdechov.cz/">Obec Zděchov</a> - oficiální stránky obce<br/>' +40 '<a href="http ://zdechovskagrapa.sweb.cz/">Zděchovská grapa</a> - místní motokrosové závody<br/>' +41 '<a href="http ://skiareal.zdechov.net/">Skiareál</a> - areál se sjezdovkou pro lyžaře i snowboardisty<br/>' +42 '<a href="http ://sdh.zdechov.net/">SDH Zděchov</a> - Sbor Dobrovolných Hasičů Zděchov<br/>' +43 '<a href="http ://fotbal.zdechov.net/">TJ Sokol Zděchov</a> - stránky věnované Zděchovskému fotbalovému týmu<br/>' +44 '<a href="http ://farnost.zdechov.net/">Farnost Zděchov</a> - informace k místní farnosti<br/>' +39 '<a href="https://www.zdechov.cz/">Obec Zděchov</a> - oficiální stránky obce<br/>' + 40 '<a href="https://motokros.zdechov.net/">Zděchovská grapa</a> - místní motokrosové závody<br/>' + 41 '<a href="https://skiareal.zdechov.net/">Skiareál</a> - areál se sjezdovkou pro lyžaře i snowboardisty<br/>' + 42 '<a href="https://sdh.zdechov.net/">SDH Zděchov</a> - Sbor Dobrovolných Hasičů Zděchov<br/>' + 43 '<a href="https://fotbal.zdechov.net/">TJ Sokol Zděchov</a> - stránky věnované Zděchovskému fotbalovému týmu<br/>' + 44 '<a href="https://farnost.zdechov.net/">Farnost Zděchov</a> - informace k místní farnosti<br/>' + 45 45 '<br/>' + 46 46 47 47 '<strong>Odkazy související s okolím:</strong><br/>' + 48 '<a href="http ://www.valassko-hornovsacko.cz/">Valašsko - Horní Vsacko</a> - informační stránky oblasti<br/>' +48 '<a href="https://www.valassko-hornovsacko.cz/">Valašsko - Horní Vsacko</a> - informační stránky oblasti<br/>' + 49 49 '<br/>' + 50 50 … … 57 57 58 58 '<strong>Komunitní sítě v okolí:</strong><br/>' + 59 '<a href="http ://www.hovnet.cz/">Hovnet</a> - síť v Hovězí, Janové, Huslenkách a dalších obcích<br/>' +59 '<a href="https://www.hovnet.cz/">Hovnet</a> - síť v Hovězí, Janové, Huslenkách a dalších obcích<br/>' + 60 60 //'<a href="http://czvk3.net/">czvk3net</a> - síť ve Valašských Kloboucích<br/>' + 61 '<a href="http ://hvfree.net/">HvFree.net</a> - síť v Tylovicích, Hážovicích, Viganticích a Hutisku<br/>' +61 '<a href="https://hvfree.net/">HvFree.net</a> - síť v Tylovicích, Hážovicích, Viganticích a Hutisku<br/>' + 62 62 '<a href="http://www.ustinet.cz/">Ústí.Net</a> - síť v Ústí u Vsetína<br/>' + 63 63 '<br/>'; -
trunk/Modules/ZdechovNET/UModuleZdechovNET.pas
r137 r138 264 264 procedure TModuleZdechovNET.Upgrade; 265 265 begin 266 inherited Upgrade;266 inherited; 267 267 end; 268 268 … … 277 277 begin 278 278 with Session do 279 with TXmlTag(HtmlDocument.Body.SubItems.AddNew(TXmlTag.Create)) do begin 280 Name := 'ul'; 281 Attributes.Values['class'] := 'Footer'; 282 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin 283 Name := 'li'; 284 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin 285 Text := TCore(MainModule).Admin; 279 with HtmlDocument.Body.SubItems.AddList do begin 280 ClassId := 'Footer'; 281 with SubItems.AddString do begin 282 Text := TCore(MainModule).Admin; 283 end; 284 with SubItems.AddString do begin 285 Text := TCore(MainModule).AdminEmail; 286 end; 287 if TCore(MainModule).ShowRuntimeInfo then begin 288 with SubItems.AddString do begin 289 Text := 'Doba generování: ' + 290 FloatToStr(Round(((Now - TimeStart) / OneMillisecond) * 100) / 100) + ' s / '; // + ini_get('max_execution_time') + ' s'; 291 end; 292 with SubItems.AddString do begin 293 //Text := 'Použitá paměť: ' + System.PrefixMultiplier.AddPrefixMultipliers(memory_get_peak_usage(FALSE), 'B').' / '.ini_get('memory_limit').'B'; 286 294 end; 287 295 end; 288 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin289 Name := 'li';290 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin291 Text := TCore(MainModule).AdminEmail;292 end;293 end;294 if TCore(MainModule).ShowRuntimeInfo then begin295 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin296 Name := 'li';297 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin298 Text := 'Doba generování: ' +299 FloatToStr(Round(((Now - TimeStart) / OneMillisecond) * 100) / 100) + ' s / '; // + ini_get('max_execution_time') + ' s';300 end;301 end;302 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin303 Name := 'li';304 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin305 //Text := 'Použitá paměť: ' + System.PrefixMultiplier.AddPrefixMultipliers(memory_get_peak_usage(FALSE), 'B').' / '.ini_get('memory_limit').'B';306 end;307 end;308 end;309 296 end; 310 297 end; 311 298 312 299 procedure TModuleZdechovNET.TopMenu(Session: TWebSession); 313 begin 314 with Session, THtmlString(HtmlDocument.Body.SubItems.InsertNew(1, THtmlString.Create)) do begin 300 var 301 Output: THtmlString; 302 begin 303 Output := THtmlString.Create; 304 Session.HtmlDocument.Body.SubItems.Insert(1, Output); 305 with Output do begin 315 306 Text := '<div class="Navigation">'; 316 307 // Visitor … … 326 317 '<li>' + MakeLink('Kamery', NavigationLink('/kamery/')) + '</li>' + 327 318 '<li><a href="https://mail.zdechov.net/">Pošta</a></li>' + 328 '<li><a href="http ://wiki.zdechov.net/">Wiki</a></li>' +319 '<li><a href="https://wiki.zdechov.net/">Wiki</a></li>' + 329 320 '</ul><ul class="MenuItem2">'; //<li> </li>'; 330 321 if False and Assigned(ModuleBase.Pages.FindByName('uzivatel')) then begin … … 356 347 with ASession do begin 357 348 if Page.Raw then begin 358 Response.Content.WriteString( THtmlString(HtmlDocument.Body.SubItems[0]).Text);349 Response.Content.WriteString(HtmlDocument.Body.AsXmlElement.AsString); 359 350 end else begin 360 351 HtmlDocument.ContentLanguage := 'cs'; -
trunk/Modules/ZdechovNET/UNetworkPage.pas
r135 r138 37 37 with TWebSession(HandlerData) do begin 38 38 ModuleUser.LoadUserInfo; 39 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin39 with HtmlDocument.Body, SubItems.AddString do begin 40 40 Text := MakeLink('Dokumenty', NavigationLink('/dokumenty/')) + '<br/>' + 41 41 MakeLink('Historie', NavigationLink('/historie/')) + '<br/>' + -
trunk/Modules/ZdechovNET/UPlansPage.pas
r135 r138 39 39 with TWebSession(HandlerData) do begin 40 40 ModuleUser.LoadUserInfo; 41 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin41 with HtmlDocument.Body, SubItems.AddString do begin 42 42 Text := '<table>'; 43 43 try … … 47 47 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NULL) AND (`Public`=1) ORDER BY `TimeCreate`'); 48 48 for I := 0 to DbRows.Count - 1 do begin 49 Text := Text + '<li>' + DbRows[I]. Values['Description'] + '</li>';49 Text := Text + '<li>' + DbRows[I].Items['Description'] + '</li>'; 50 50 end; 51 51 Text := Text + '</ul></div><br/>'; … … 55 55 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NOT NULL) AND (`Public`=1) ORDER BY `TimeCreate`'); 56 56 for I := 0 to DbRows.Count - 1 do begin 57 Text := Text + '<li>' + DbRows[I]. Values['Description'] + '<br/>' +58 '<i style="padding-left: 30px;">' + DbRows[I]. Values['Conclusion'] + '</i></li>';57 Text := Text + '<li>' + DbRows[I].Items['Description'] + '<br/>' + 58 '<i style="padding-left: 30px;">' + DbRows[I].Items['Conclusion'] + '</i></li>'; 59 59 end; 60 60 Text := Text + '</ul></div><br/>'; -
trunk/Modules/ZdechovNET/UProjectsPage.pas
r135 r138 39 39 with TWebSession(HandlerData) do begin 40 40 ModuleUser.LoadUserInfo; 41 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin41 with HtmlDocument.Body, SubItems.AddString do begin 42 42 try 43 43 DbRows := TDbRows.Create; … … 47 47 Database.Query(DbRows, 'SELECT * FROM `Plans` ORDER BY `TimeCreate` DESC'); 48 48 for I := 0 to DbRows.Count - 1 do begin 49 Text := Text + '<tr><td>' + DbRows[I]. Values['TimeCreate'] + '</td>' +50 '<td>' + DbRows[I]. Values['TimeFinished'] + '</td>' +51 '<td>' + DbRows[I]. Values['Description'] + '</td>' +52 '<td>' + DbRows[I]. Values['Public'] + '</td></tr>';49 Text := Text + '<tr><td>' + DbRows[I].Items['TimeCreate'] + '</td>' + 50 '<td>' + DbRows[I].Items['TimeFinished'] + '</td>' + 51 '<td>' + DbRows[I].Items['Description'] + '</td>' + 52 '<td>' + DbRows[I].Items['Public'] + '</td></tr>'; 53 53 end; 54 54 Text := Text + '</table>'; -
trunk/Modules/ZdechovNET/URobotsPage.pas
r137 r138 37 37 with TWebSession(HandlerData) do begin 38 38 ModuleUser.LoadUserInfo; 39 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin39 with HtmlDocument.Body, SubItems.AddString do begin 40 40 Text := 'User-agent: *' + LineEnding + 41 41 'Disallow: /*?'; -
trunk/Modules/ZdechovNET/UVoIPPage.pas
r135 r138 35 35 with TWebSession(HandlerData) do begin 36 36 ModuleUser.LoadUserInfo; 37 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin37 with HtmlDocument.Body, SubItems.AddString do begin 38 38 Text := 'Volejte levněji do pevných a mobilních sítí s sekundovou tarifikací a bez měsíčního paušálu.' + 39 39 ' A v rámci sítě a těch co mají v obci VoIP od stejného operátora dokonce zdarma. <br/>' + -
trunk/Modules/ZdechovNET/UWebCamPage.pas
r137 r138 45 45 Value: Integer; 46 46 NotFound: Boolean; 47 WidthValue: string; 47 48 begin 48 49 with TWebSession(HandlerData) do begin 49 50 ModuleUser.LoadUserInfo; 50 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin51 with HtmlDocument.Body, SubItems.AddString do begin 51 52 Text := ''; 52 53 CameraId := -1; … … 64 65 //HandlerData.Request.Query.Values['W'] := 'dsd'; 65 66 //HandlerData.Request.Query.Values['H'] := 'dsd'; 66 if (HandlerData.Request.Query.SearchKey('W') = -1) then begin 67 ImageWidth := 640; 68 end else begin 69 ImageWidth := StrToInt(HandlerData.Request.Query.Values['W']); 70 end; 67 if HandlerData.Request.Query.TryGetValue('W', WidthValue) then 68 ImageWidth := StrToInt(WidthValue) 69 else ImageWidth := 640; 71 70 72 71 Text := Text + '<table style="width: 100%"><tr><td style="width: 20%" valign="top">' + … … 84 83 Database.Query(DbRows, 'SELECT * FROM `Webcam` WHERE `Enabled`=1'); 85 84 for I := 0 to DbRows.Count - 1 do begin 86 Text := Text + MakeLink(DbRows[I]. Values['Name'], NavigationLink(87 '/kamery/' + DbRows[I]. Values['Id'] + '/?W=' + IntToStr(ImageWidth))) + '<br/>';85 Text := Text + MakeLink(DbRows[I].Items['Name'], NavigationLink( 86 '/kamery/' + DbRows[I].Items['Id'] + '/?W=' + IntToStr(ImageWidth))) + '<br/>'; 88 87 end; 89 88 finally … … 125 124 ImageWidthThumb := 160; 126 125 for I := 0 to DbRows.Count - 1 do begin 127 ImageHeightThumb := Round(ImageWidthThumb * StrToInt(DbRows[I]. Values['Height']) / StrToInt(DbRows[I].Values['Width']));128 WebCamImage := 'images/webcam/' + DbRows[I]. Values['ImageName'];126 ImageHeightThumb := Round(ImageWidthThumb * StrToInt(DbRows[I].Items['Height']) / StrToInt(DbRows[I].Items['Width'])); 127 WebCamImage := 'images/webcam/' + DbRows[I].Items['ImageName']; 129 128 Result := Result + '<span align="center" valign="middle" style="vertical-align: middle;">' + //DbRows[I].Values['Name'] + '<br/>' + 130 '<a href="' + NavigationLink('/kamery/' + DbRows[I]. Values['Id'] + '/?W=' + IntToStr(ImageWidth)) + '">' +129 '<a href="' + NavigationLink('/kamery/' + DbRows[I].Items['Id'] + '/?W=' + IntToStr(ImageWidth)) + '">' + 131 130 '<img name="theImage" src="' + NavigationLink('/' + WebCamImage) + '" width="' + 132 131 IntToStr(ImageWidthThumb) + '" height="' + IntToStr(ImageHeightThumb) + '" alt="' + 133 DbRows[I]. Values['Name'] + '"/></a></span> ';132 DbRows[I].Items['Name'] + '"/></a></span> '; 134 133 end; 135 134 finally … … 153 152 IntToStr(Id) + ') AND (`Enabled`=1)'); 154 153 if DbRows.Count > 0 then begin 155 WebCamImage := 'images/webcam/' + DbRows[0]. Values['ImageName'];156 RefreshInterval := StrToInt(DbRows[0]. Values['ImagePeriod']);157 ImageHeight := Round(ImageWidth * StrToInt(DbRows[0]. Values['Height']) / StrToInt(DbRows[0].Values['Width']));154 WebCamImage := 'images/webcam/' + DbRows[0].Items['ImageName']; 155 RefreshInterval := StrToInt(DbRows[0].Items['ImagePeriod']); 156 ImageHeight := Round(ImageWidth * StrToInt(DbRows[0].Items['Height']) / StrToInt(DbRows[0].Items['Width'])); 158 157 159 158 if FileExists(WebCamImage) then begin … … 181 180 '</script>' + #13#10 + 182 181 183 '<br /><div align="center">' + DbRows[0]. Values['Name'] + '<br/>' +182 '<br /><div align="center">' + DbRows[0].Items['Name'] + '<br/>' + 184 183 '<img name="theImageTemp" src="' + NavigationLink('/' + WebCamImage) + '" width="0" height="0" alt="Temp image"/>' + 185 184 '<img name="theImage" src="' + NavigationLink('/' + WebCamImage) + '" width="' + IntToStr(ImageWidth) + 186 185 '" height="' + IntToStr(ImageHeight) + '" alt="' + 187 DbRows[0]. Values['Name'] + '"/></div>';186 DbRows[0].Items['Name'] + '"/></div>'; 188 187 end else Result := Result + '<br />Obrázek nenalezen.<br /><br />'; 189 188 Result := Result + '<br/><div align="center">'; 190 189 if LastFileDate <> '' then Result := Result + 'Aktualizace: <span id="lasttime">' + 191 190 LastFileDate + '</span>, '; 192 Result := Result + 'Perioda: ' + IntToStr(RefreshInterval) + ' sekund, Typ: ' + DbRows[0].Values['DeviceType'] + '<br />' + 193 '<br/>' + DbRows[0].Values['Description']; 194 Result := Result + GetVideoArchive(DbRows[0].Values['Id']) + '</div>'; 191 Result := Result + 'Perioda: ' + IntToStr(RefreshInterval) + ' sekund, Typ: ' + 192 DbRows[0].Items['DeviceType'] + '<br />' + 193 '<br/>' + DbRows[0].Items['Description']; 194 Result := Result + GetVideoArchive(DbRows[0].Items['Id']) + '</div>'; 195 195 end else Result := Result + '<br />Id kamery nenalezeno.<br/><br>'; 196 196 finally
Note:
See TracChangeset
for help on using the changeset viewer.