Changeset 79
- Timestamp:
- Jun 19, 2012, 10:39:41 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/UMainModule.lfm
r78 r79 7 7 object WebApp1: TWebApp 8 8 OnPageProduce = WebApp1PageProduce 9 ServerType = st CGI9 ServerType = stTCP 10 10 left = 160 11 11 top = 88 -
trunk/Modules/UMainModule.lrs
r78 r79 5 5 +'HorizontalOffset'#3'*'#2#14'VerticalOffset'#3#10#1#5'Width'#3#175#1#0#7'TWe' 6 6 +'bApp'#7'WebApp1'#13'OnPageProduce'#7#18'WebApp1PageProduce'#10'ServerType'#7 7 +#5'st CGI'#4'left'#3#160#0#3'top'#2'X'#0#0#07 +#5'stTCP'#4'left'#3#160#0#3'top'#2'X'#0#0#0 8 8 ]); -
trunk/Modules/UMainModule.pas
r78 r79 81 81 UApplicationInfo, UInternetPage, UHostingPage, UHistoryPage, UDocumentsPage, UVoIPPage, 82 82 ULinksPage, UPlansPage, UServerInfoPage, UWebCamPage, UUserControlPage, 83 UNetworkPage, UAboutPage, UContactPage ;83 UNetworkPage, UAboutPage, UContactPage, UProjectsPage; 84 84 85 85 { TWebSession } … … 181 181 RegisterPage(TPlansPage, PlansPage, 'plany'); 182 182 RegisterPage(TNetworkPage, NetworkPage, 'sit'); 183 RegisterPage(TProjectsPage, ProjectsPage, 'projekty'); 183 184 RegisterPage(TAboutPage, AboutPage, ''); 184 185 //RegisterPage(TUserControlPage, UserControlPage, ''); -
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 -
trunk/ZdechovNET.lpi
r77 r79 59 59 </Item6> 60 60 </RequiredPackages> 61 <Units Count="2 1">61 <Units Count="22"> 62 62 <Unit0> 63 63 <Filename Value="ZdechovNET.lpr"/> … … 193 193 <UnitName Value="UApplicationInfo"/> 194 194 </Unit20> 195 <Unit21> 196 <Filename Value="Pages/UProjectsPage.pas"/> 197 <IsPartOfProject Value="True"/> 198 <ComponentName Value="ProjectsPage"/> 199 <ResourceBaseClass Value="DataModule"/> 200 <UnitName Value="UProjectsPage"/> 201 </Unit21> 195 202 </Units> 196 203 </ProjectOptions>
Note:
See TracChangeset
for help on using the changeset viewer.