Changeset 138 for trunk/Modules/ZdechovNET/UHostingPage.pas
- Timestamp:
- Sep 9, 2022, 8:20:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.