Changeset 38 for trunk/Pages/UMainPage.pas
- Timestamp:
- Nov 13, 2010, 4:32:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UMainPage.pas
r36 r38 80 80 Text := '<table>'; 81 81 try 82 DbRows := Database.Query('SELECT * FROM History ORDER BY Date DESC'); 82 DbRows := TDbRows.Create; 83 Database.Query(DbRows, 'SELECT * FROM History ORDER BY Date DESC'); 83 84 for I := 0 to DbRows.Count - 1 do begin 84 85 Text := Text + '<tr><td style="text-align: right; vertical-align: top;">' + … … 214 215 '<tr><th>Označení</th><th>Rychlost</th><th>Vyhrazená paměť</th><th>Pevný disk</th><th>Procesor</th><th>Cena [Kč/měsíc]</th></tr>'; 215 216 try 216 DbRows := Database.Query('SELECT * FROM VPSHosting ORDER BY Price DESC'); 217 DbRows := TDbRows.Create; 218 Database.Query(DbRows, 'SELECT * FROM VPSHosting ORDER BY Price DESC'); 217 219 for I := 0 to DbRows.Count - 1 do 218 220 Text := Text + '<tr><td>' + DbRows[I].Values['Name'] + '</td><td align="center">' + … … 229 231 '<br/>' + 230 232 '<i>Aktualizováno: 1.7.2010</i>'; 233 234 Text := Text + '<br/><br/><strong>Projekty využívající VPS hosting</strong><br/><ul>'; 235 try 236 DbRows := TDbRows.Create; 237 Database.Query(DbRows, 'SELECT * FROM `HostedProject` WHERE `Active`=1 AND `WebHosting`=0'); 238 for I := 0 to DbRows.Count - 1 do 239 Text := Text + '<li><a href="' + DbRows[I].Values['Homepage'] + '">' + 240 DbRows[I].Values['Name'] + '</a></li>'; 241 Text := Text + '</ul>'; 242 finally 243 DbRows.Free; 244 end; 245 246 Text := Text + '<br/><strong>Projekty využívající web hosting</strong><br/><ul>'; 247 try 248 DbRows := TDbRows.Create; 249 Database.Query(DbRows, 'SELECT * FROM `HostedProject` WHERE `Active`=1 AND `WebHosting`=1'); 250 for I := 0 to DbRows.Count - 1 do 251 Text := Text + '<li><a href="' + DbRows[I].Values['Homepage'] + '">' + 252 DbRows[I].Values['Name'] + '</a></li>'; 253 Text := Text + '</ul>'; 254 finally 255 DbRows.Free; 256 end; 231 257 end; 232 258 end;
Note:
See TracChangeset
for help on using the changeset viewer.