|
|
 |
 |
 |
mainResponder.adminSite.macros.adminMenu
Frontier 9 introduced the admin site to replace the controlpanel, however controlpanel addins were not carried forward. This patch (4 changes) allows most controlpanel addins to work within the admin site without change.
| on adminMenu (color = "#FFFFFF") |
| |
local (pta = html.getPageTableAddress ()) |
| |
if pta^.adrObject == @mainResponder.adminSite.website.errorPage |
| |
local (fontopen = "<font class=\"adminMenuLinkFont\" \" color=\"" + color + "\">", fontclose = "</font>") |
| |
local (uriWithSearchArgs = pta^.uri) |
| |
if sizeof (pta^.searchargs) > 0 |
| |
on addCommand (linetext, url, fllastcommand = false) |
| |
add (fontopen + "<b>Frontier " + frontier.version () + "</b>: " + fontclose) |
| |
addCommand ("Home", mainResponder.adminSite.urls.home) |
| |
addCommand ("Readouts", mainResponder.adminSite.urls.readouts) |
| |
addCommand ("Settings", mainResponder.adminSite.urls.settings) |
| |
addCommand ("Maintenance", mainResponder.adminSite.urls.maintenance) |
| |
addCommand ("Updates", mainResponder.adminSite.urls.updates) |
| |
addCommand ("Tools", mainResponder.adminSite.urls.tools) |
| |
addCommand ("Help", mainResponder.adminSite.urls.help, fllastcommand:true) |
Relative to Frontier version 9.7b10
|