Changeset 79 for trunk/Pages
- Timestamp:
- Jun 19, 2012, 10:39:41 PM (12 years ago)
- Location:
- trunk/Pages
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UPlansPage.pas
r78 r79 45 45 Text := '<br/><strong>Plánované úkoly:</strong><br />' + 46 46 '<div><ul>'; 47 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NULLORDER BY `TimeCreate`');47 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NULL) AND (`Public`=1) ORDER BY `TimeCreate`'); 48 48 for I := 0 to DbRows.Count - 1 do begin 49 49 Text := Text + '<li>' + DbRows[I].Values['Description'] + '</li>'; … … 53 53 Text := Text + '<br/><strong>Hotové úkoly:</strong><br />' + 54 54 '<div><ul>'; 55 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NOT NULLORDER BY `TimeCreate`');55 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE (`TimeFinished` IS NOT NULL) AND (`Public`=1) ORDER BY `TimeCreate`'); 56 56 for I := 0 to DbRows.Count - 1 do begin 57 57 Text := Text + '<li>' + DbRows[I].Values['Description'] + '<br/>' + -
trunk/Pages/UUserControlPage.pas
r78 r79 63 63 UserId: Integer; 64 64 begin 65 with TWebSession( MainModule), HtmlDocument.Body do begin65 with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin 66 66 Form := TQueryForm.Create; 67 67 with Form do begin … … 108 108 UserId: Integer; 109 109 begin 110 with TWebSession( MainModule), HtmlDocument.Body do begin110 with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin 111 111 Form := TQueryForm.Create; 112 112 with Form do begin … … 165 165 procedure TUserControlPage.HandleLogout(HandlerData: THTTPHandlerData); 166 166 begin 167 with TWebSession( MainModule), HtmlDocument.Body do begin167 with TWebSession(HandlerData), MainModule, HtmlDocument.Body do begin 168 168 UserOnline.Logout; 169 169 with THtmlString(SubItems.AddNew(THtmlString.Create)) do
Note:
See TracChangeset
for help on using the changeset viewer.