Changeset 99 for trunk/Pages/UPageAdmin.pas
- Timestamp:
- Oct 2, 2012, 2:12:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UPageAdmin.pas
r97 r99 15 15 procedure DataModuleProduce(HandlerData: THTTPHandlerData); 16 16 private 17 procedure HandleReload(HandlerData: THTTPHandlerData); 17 18 procedure HandleModuleList(HandlerData: THTTPHandlerData); 18 19 procedure HandleInstall(HandlerData: THTTPHandlerData); … … 32 33 33 34 uses 34 UCore, UXmlClasses, UHtmlClasses, UUtils, USqlDatabase, UModularSystem; 35 UCore, UXmlClasses, UHtmlClasses, UUtils, USqlDatabase, UModularSystem, 36 UModuleSystem; 35 37 36 38 {$R *.lfm} … … 50 52 if PageName = '' then PageName := 'modulelist'; 51 53 if PageName = 'modulelist' then HandleModuleList(HandlerData) 54 else if PageName = 'reload' then HandleReload(HandlerData) 52 55 else if PageName = 'install' then HandleInstall(HandlerData) 53 56 else if PageName = 'uninstall' then HandleUninstall(HandlerData); 54 57 end; 55 58 GeneratePage(Self); 59 end; 60 end; 61 62 procedure TPageAdmin.HandleReload(HandlerData: THTTPHandlerData); 63 begin 64 with TWebSession(HandlerData) do begin 65 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin 66 TModuleSystem(Core.ModuleManager.FindModuleByName('System')).UpdateModuleList; 67 Text := 'Seznam modulů synchronizován'; 68 Text := Text + '<br/><br/>'; 69 HandleModuleList(HandlerData); 70 end; 56 71 end; 57 72 end; … … 76 91 Text := Text + '</td></tr>'; 77 92 end; 93 Text := Text + '</table>'; 94 Text := Text + MakeLink('Obnovit seznam modulů', NavigationLink('/administration/reload')); 78 95 end; 79 96 end;
Note:
See TracChangeset
for help on using the changeset viewer.