mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Initial discovery <-> DOA integration (work in progress)
This commit is contained in:
parent
1296211ccc
commit
f85f3be347
5 changed files with 233 additions and 47 deletions
|
|
@ -1390,12 +1390,30 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
function getOperatingSystemName(id)
|
||||
if(id == 1) then return("Linux")
|
||||
elseif(id == 2) then return("Windows")
|
||||
elseif(id == 3) then return("MacOS")
|
||||
elseif(id == 4) then return("iOS")
|
||||
elseif(id == 5) then return("Android")
|
||||
elseif(id == 6) then return("LaserJET")
|
||||
elseif(id == 7) then return("AppleAirport")
|
||||
else
|
||||
return("") -- Unknown
|
||||
end
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function getOperatingSystemIcon(id)
|
||||
if(id == 1) then return(' <i class=\'fa fa-linux fa-lg\'></i>')
|
||||
elseif(id == 2) then return(' <i class=\'fa fa-windows fa-lg\'></i>')
|
||||
elseif(id == 3) then return(' <i class=\'fa fa-apple fa-lg\'></i>')
|
||||
elseif(id == 4) then return(' <i class=\'fa fa-apple fa-lg\'></i>')
|
||||
elseif(id == 5) then return(' <i class=\'fa fa-android fa-lg\'></i>')
|
||||
elseif(id == 6) then return(' LasetJET')
|
||||
elseif(id == 7) then return(' Apple Airport')
|
||||
|
||||
else return("")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue