Ignore:
Timestamp:
Jun 19, 2012, 10:39:41 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Stránka pro zobrazení všech projektů veřejných i neveřejných v tabulce pro správce.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Pages/UPlansPage.pas

    r78 r79  
    4545        Text := '<br/><strong>Plánované úkoly:</strong><br />' +
    4646          '<div><ul>';
    47         Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NULL ORDER BY `TimeCreate`');
     47        Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NULL) AND (`Public`=1) ORDER BY `TimeCreate`');
    4848        for I := 0 to DbRows.Count - 1 do begin
    4949          Text := Text + '<li>' + DbRows[I].Values['Description'] + '</li>';
     
    5353        Text := Text + '<br/><strong>Hotové úkoly:</strong><br />' +
    5454          '<div><ul>';
    55         Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NOT NULL ORDER BY `TimeCreate`');
     55        Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NOT NULL) AND (`Public`=1) ORDER BY `TimeCreate`');
    5656        for I := 0 to DbRows.Count - 1 do begin
    5757          Text := Text + '<li>' + DbRows[I].Values['Description'] + '<br/>' +
Note: See TracChangeset for help on using the changeset viewer.