Changeset 286 for branches/web/Pages/UMainPage.pas
- Timestamp:
- Sep 8, 2010, 10:08:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/web/Pages/UMainPage.pas
r283 r286 86 86 // Zobrazení seznamu online počítačů 87 87 Output := Output + '<strong>Online počítače:</strong><br /><span style="font-size: smaller;">'; 88 DbRows := Database.Select('hosts', 'name', 'online=1 AND show_online=1 ORDER BY name'); 88 DbRows := Database.Query('SELECT NetworkDevice.Name FROM NetworkDevice LEFT JOIN NetworkDeviceType ' + 89 ' ON NetworkDeviceType.Id = NetworkDevice.Type WHERE (NetworkDeviceType.ShowOnline = 1) AND (NetworkDevice.Online = 1) ORDER BY NetworkDevice.Name'); 89 90 for I := 0 to DbRows.Count - 1 do with DbRows[I] do begin 90 Output := Output + Values[' name'] + '<br />';91 Output := Output + Values['Name'] + '<br />'; 91 92 end; 92 93 DbRows.Free;
Note:
See TracChangeset
for help on using the changeset viewer.