mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add search host pool member field
This commit is contained in:
parent
6b1d5a00e0
commit
c1b6e53ce4
9 changed files with 163 additions and 97 deletions
|
|
@ -6,6 +6,7 @@ dirs = ntop.getDirs()
|
|||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
if((dirs.scriptdir ~= nil) and (dirs.scriptdir ~= "")) then package.path = dirs.scriptdir .. "/lua/modules/?.lua;" .. package.path end
|
||||
require "lua_utils"
|
||||
local template = require "template_utils"
|
||||
|
||||
prefs = ntop.getPrefs()
|
||||
names = interface.getIfNames()
|
||||
|
|
@ -382,7 +383,21 @@ end
|
|||
if(user_group ~= "administrator") then
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/password_dialog.lua")
|
||||
end
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/search_host_box.lua")
|
||||
print("<li>")
|
||||
print(
|
||||
template.gen("typeahead_input.html", {
|
||||
typeahead={
|
||||
base_id = "host_search",
|
||||
action = "/lua/host_details.lua",
|
||||
json_key = "ip",
|
||||
query_field = "host",
|
||||
query_url = ntop.getHttpPrefix() .. "/lua/find_host.lua",
|
||||
query_title = "Search Host",
|
||||
style = "width:15em;",
|
||||
}
|
||||
})
|
||||
)
|
||||
print("</li>")
|
||||
|
||||
function file_exists(name)
|
||||
local f=io.open(name,"r")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue