Changeset 138 for trunk/Pages/UPageAdmin.pas
- Timestamp:
- Sep 9, 2022, 8:20:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UPageAdmin.pas
r137 r138 61 61 begin 62 62 with TWebSession(HandlerData) do begin 63 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin63 with HtmlDocument.Body, SubItems.AddString do begin 64 64 TModuleSystem(ModuleManager.FindModuleByName('System')).UpdateModuleList; 65 65 Text := 'Seznam modulů synchronizován'; … … 76 76 begin 77 77 with TWebSession(HandlerData) do begin 78 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin78 with HtmlDocument.Body, SubItems.AddString do begin 79 79 Text := Text + '<strong>Registred modules:</strong><br/>' + 80 80 '<table class="WideTable"><tr><th>Name</th><th>Installed</th><th>Title</th><th>Version</th>' + … … 99 99 ModuleName: string; 100 100 Module: TModule; 101 Name: string; 101 102 begin 102 103 with TWebSession(HandlerData) do begin 103 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin104 if Request.Query. SearchKey('name') <> -1then begin105 ModuleName := Request.Query.Values['name'];104 with HtmlDocument.Body, SubItems.AddString do begin 105 if Request.Query.TryGetValue('name', Name) then begin 106 ModuleName := Name; 106 107 Module := ModuleManager.FindModuleByName(ModuleName); 107 108 if Assigned(Module) then begin … … 121 122 ModuleName: string; 122 123 Module: TModule; 124 Name: string; 123 125 begin 124 126 with TWebSession(HandlerData) do begin 125 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create))do begin126 if Request.Query. SearchKey('name') <> -1then begin127 ModuleName := Request.Query.Values['name'];127 with HtmlDocument.Body, SubItems.AddString do begin 128 if Request.Query.TryGetValue('name', Name) then begin 129 ModuleName := Name; 128 130 Module := ModuleManager.FindModuleByName(ModuleName); 129 131 if Assigned(Module) then begin
Note:
See TracChangeset
for help on using the changeset viewer.