Changeset 120
- Timestamp:
- Sep 3, 2016, 11:19:09 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 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/>' + -
trunk/ZdechovNET.lpi
r119 r120 55 55 <StackChecks Value="True"/> 56 56 </Checks> 57 <VerifyObjMethodCallValidity Value="True"/> 57 58 </CodeGeneration> 58 59 <Linking> … … 333 334 <SyntaxMode Value="Delphi"/> 334 335 <CStyleOperator Value="False"/> 336 <IncludeAssertionCode Value="True"/> 335 337 <AllowLabel Value="False"/> 336 338 <CPPInline Value="False"/> … … 345 347 <StackChecks Value="True"/> 346 348 </Checks> 349 <VerifyObjMethodCallValidity Value="True"/> 347 350 <Optimizations> 348 351 <OptimizationLevel Value="3"/> … … 350 353 </CodeGeneration> 351 354 <Linking> 355 <Debugging> 356 <GenerateDebugInfo Value="False"/> 357 </Debugging> 352 358 <LinkSmart Value="True"/> 353 359 </Linking>
Note:
See TracChangeset
for help on using the changeset viewer.