Changeset 79 for trunk/Pages


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.
Location:
trunk/Pages
Files:
2 added
2 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/>' +
  • trunk/Pages/UUserControlPage.pas

    r78 r79  
    6363  UserId: Integer;
    6464begin
    65   with TWebSession(MainModule), HtmlDocument.Body do begin
     65  with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin
    6666    Form := TQueryForm.Create;
    6767    with Form do begin
     
    108108  UserId: Integer;
    109109begin
    110   with TWebSession(MainModule), HtmlDocument.Body do begin
     110  with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin
    111111    Form := TQueryForm.Create;
    112112    with Form do begin
     
    165165procedure TUserControlPage.HandleLogout(HandlerData: THTTPHandlerData);
    166166begin
    167   with TWebSession(MainModule), HtmlDocument.Body do begin
     167  with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin
    168168    UserOnline.Logout;
    169169    with THtmlString(SubItems.AddNew(THtmlString.Create)) do
Note: See TracChangeset for help on using the changeset viewer.