Changeset 120 for trunk/Modules/ZdechovNET/UAboutPage.pas
- Timestamp:
- Sep 3, 2016, 11:19:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ZdechovNET/UAboutPage.pas
r118 r120 28 28 29 29 uses 30 UCore, UUtils, UWebSession ;30 UCore, UUtils, UWebSession, USqlDatabase; 31 31 32 32 { TAboutPage } … … 35 35 var 36 36 TextBlock: THtmlString; 37 DbRows: TDbRows; 38 I: Integer; 37 39 begin 38 40 with TWebSession(HandlerData) do begin 39 41 ModuleUser.LoadUserInfo; 40 42 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin 41 Text := '<img align="left" src="' + NavigationLink('/images/umisteni.gif') + '" alt="Umístění obce"/>' + 43 Text := '<table><tr><td style="vertical-align: top;">' + 44 '<img align="left" src="' + NavigationLink('/images/umisteni.gif') + '" alt="Umístění obce"/>' + 42 45 '<a href="' + NavigationLink('/images/pokryti.jpg') + '">' + 43 46 '<img align="right" src="' + NavigationLink('/images/pokryti_nahled.jpg') + '" width="303" height="238" alt="Pokrytí obce signálem"/></a>' + … … 61 64 '<li>Společné hraní síťových her</li>' + 62 65 '<li>Zprovoznění užitečných služeb (IPTV, VoIP, chat, aktuality, bazar, menu v jídelně, meteostanice, web kamery, aj.)</li>' + 63 '</ul><br/>'; 66 '</ul><br/>' + 67 '</td><td style="vertical-align: top;" class="News">'; 68 Text := Text + '<strong>Novinky:</strong><br/>'; 69 try 70 DbRows := TDbRows.Create; 71 Database.Query(DbRows, 'SELECT * FROM `News` ORDER BY `Time` DESC LIMIT 5'); 72 for I := 0 to DbRows.Count - 1 do begin 73 Text := Text + '<div><strong>' + 74 HumanDate(SQLToDateTime(DbRows[I].Values['Time'])) + '</strong><br/>' + 75 DbRows[I].Values['Text'] + '</div></br>'; 76 end; 77 finally 78 DbRows.Free; 79 end; 80 Text := Text + '</table>'; 81 82 Text := Text + '</td></tr></table>'; 64 83 65 84 Text := Text + '<br/>' +
Note:
See TracChangeset
for help on using the changeset viewer.