Changeset 108 for trunk/Modules
- Timestamp:
- Oct 10, 2012, 3:30:34 PM (12 years ago)
- Location:
- trunk/Modules
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/UModulePortal.pas
r107 r108 224 224 '<div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '; 225 225 Output := Output + Navigation + '</span><div class="MenuItem2">'; 226 if Assigned(ModuleUser) then begin 226 227 if ModuleUser.User.Id = UnknownUser then 227 228 Output := Output + '<a href="' + MakeLink('Přihlášení', … … 230 231 else Output := Output + ModuleUser.User.Name + ' ' + MakeLink('Odhlásit', 231 232 NavigationLink('/?Action=Logout')); 233 end; 232 234 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>'; 233 235 Output := Output + '</div></div>'; -
trunk/Modules/User/UModuleUser.pas
r107 r108 62 62 User := TWebUser.Create; 63 63 User.Database := ModuleBase.Session.Database; 64 User.HandlerData := ModuleBase.Session; 64 65 UserOnline := TWebOnlineUser.Create; 65 66 UserOnline.Database := ModuleBase.Session.Database; 67 UserOnline.HandlerData := ModuleBase.Session; 66 68 AfterStart; 67 69 end; -
trunk/Modules/User/UUser.pas
r103 r108 46 46 procedure Login(User: Integer); 47 47 procedure Logout; 48 constructor Create; 48 49 end; 49 50 … … 123 124 end; 124 125 126 constructor TWebOnlineUser.Create; 127 begin 128 User := UnknownUser; 129 end; 130 125 131 { TUser } 126 132 … … 218 224 DbRows: TDbRows; 219 225 begin 226 if Id <> -1 then 220 227 try 221 228 DbRows := TDbRows.Create; -
trunk/Modules/ZdechovNET/UHostingPage.lfm
r97 r108 3 3 Caption = 'Hosting' 4 4 OnProduce = DataModuleProduce 5 Height = 506 HorizontalOffset = 2597 VerticalOffset = 2 508 Width = 505 Height = 224 6 HorizontalOffset = 550 7 VerticalOffset = 280 8 Width = 329 9 9 end -
trunk/Modules/ZdechovNET/UModuleZdechovNET.pas
r106 r108 75 75 BeforeStart; 76 76 ModuleBase := TModuleBase(Manager.FindModuleByName('Base')); 77 ModuleBase.GeneratePage := GeneratePage; 77 78 ModuleUser := TModuleUser(Manager.FindModuleByName('User')); 78 79 with ModuleBase, Pages do begin 79 80 //GeneratePage := GeneratePage; 80 81 InternetPage := TInternetPage.Create(nil); 82 InternetPage.ModuleUser := ModuleUser; 81 83 RegisterPage(InternetPage, 'internet'); 82 84 HostingPage := THostingPage.Create(nil); 85 HostingPage.ModuleUser := ModuleUser; 83 86 RegisterPage(HostingPage, 'hosting'); 84 87 HistoryPage := THistoryPage.Create(nil); 88 HistoryPage.ModuleUser := ModuleUser; 85 89 RegisterPage(HistoryPage, 'historie'); 86 90 DocumentsPage := TDocumentsPage.Create(nil); 91 DocumentsPage.ModuleUser := ModuleUser; 87 92 RegisterPage(DocumentsPage, 'dokumenty'); 88 93 VoIPPage := TVoIPPage.Create(nil); 94 VoIPPage.ModuleUser := ModuleUser; 89 95 RegisterPage(VoIPPage, 'voip'); 90 96 LinksPage := TLinksPage.Create(nil); 97 LinksPage.ModuleUser := ModuleUser; 91 98 RegisterPage(LinksPage, 'odkazy'); 92 99 ContactPage := TContactPage.Create(nil); 100 ContactPage.ModuleUser := ModuleUser; 93 101 RegisterPage(ContactPage, 'kontakt'); 94 102 ServerInfoPage := TServerInfoPage.Create(nil); 103 ServerInfoPage.ModuleUser := ModuleUser; 95 104 RegisterPage(ServerInfoPage, 'serverinfo'); 96 105 WebCamPage := TWebCamPage.Create(nil); 106 WebCamPage.ModuleUser := ModuleUser; 97 107 RegisterPage(WebCamPage, 'kamery'); 98 108 PlansPage := TPlansPage.Create(nil); 109 PlansPage.ModuleUser := ModuleUser; 99 110 RegisterPage(PlansPage, 'plany'); 100 111 NetworkPage := TNetworkPage.Create(nil); 112 NetworkPage.ModuleUser := ModuleUser; 101 113 RegisterPage(NetworkPage, 'sit'); 102 114 ProjectsPage := TProjectsPage.Create(nil); 115 ProjectsPage.ModuleUser := ModuleUser; 103 116 RegisterPage(ProjectsPage, 'projekty'); 104 117 AboutPage := TAboutPage.Create(nil); 118 AboutPage.ModuleUser := ModuleUser; 105 119 RegisterPage(AboutPage, ''); 106 120 end;
Note:
See TracChangeset
for help on using the changeset viewer.