<%# Copyright (C) 2016. Shanghai Feixun Communication Co.,Ltd. DISCREPTION : LuCI - Lua Configuration Interface - common header AUTHOR : chengjun.tao CREATED DATE : 2016-04-26 MODIFIED DATE : -%> <% local sys = require "luci.sys" local http = require "luci.http" local disp = require "luci.dispatcher" local hostname = sys.hostname() local request = disp.context.path local request2 = disp.context.request local category = request[1] local thirdnode = request[3] local cattree = category and disp.node(category) local leaf = request2[#request2] local tree = disp.node() local node = disp.context.dispatched local categories = disp.node_childs(tree) local c = tree local i, r -- tag all nodes leading to this page for i, r in ipairs(request) do if c.nodes and c.nodes[r] then c = c.nodes[r] c._menu_selected = true end end -- send as HTML5 http.prepare_content("text/html") local function nodeurl(prefix, name, query) local url = controller .. prefix .. name .. "/" if query then url = url .. http.build_querystring(query) end return pcdata(url) end local function subtree(prefix, node, level) if not level then level = 1 end local childs = disp.node_childs(node) if #childs > 0 then if level > 2 then %> <% end local selected_node local selected_name local i, v local temp for i, v in ipairs(childs) do local nnode = node.nodes[v] if nnode._menu_selected then selected_node = nnode selected_name = v end if level <= 1 then %> <% temp = request[2] if #request==3 then if request[3]=="lanset" or request[3]=="dhcp" then temp = "more_wanset" elseif request[3]=="appportfwdset" or request[3]=="DMZset" or request[3]=="UPnPset" then temp = "more_forward" elseif request[2]=="more_sysset" then temp = "more_sysset" end else end %> <% if v == "more_sysstatus" then %>
  • <%:phicomm sysstatus%>
  • <% elseif v == "more_wanset" then %>
  • <%:phicomm wanset%>
  • <% elseif v == "more_signal" then %>
  • <%:Signal Conditioning%>
  • <% elseif v == "more_wlextend" then %>
  • 无线扩展
  • <% elseif v == "more_wps" then%>
  • WPS设置
  • <% elseif v == "more_parentctl" then%>
  • 家长控制
  • <% elseif v == "more_safeset" then%>
  • 安全设置
  • <% elseif v == "more_remotemgt" then%>
  • 远程管理
  • <% elseif v == "more_ddns" then%>
  • 动态DNS
  • <% elseif v == "more_forward" then%>
  • 转发设置
  • <% elseif v == "more_sysset" then%>
  • <%:phicomm system setting%>
  • <% end %> <% end %> <% if level >= 2 then %> <% if v == "lanset" then%>
  • <%:phicomm lanset%>
  • <% elseif v == "dhcp" then%>
  • DHCP服务
  • <% elseif v == "appportfwdset" then%>
  • 端口转发
  • <% elseif v == "DMZset" then%>
  • DMZ主机
  • <% elseif v == "UPnPset" then%>
  • UPnP设置
  • <% elseif v == "indicatorlight" then%>
  • 指示灯
  • <% elseif v == "buttonset" then%>
  • 按钮设置
  • <% elseif v == "APPset" then%>
  • <%:phicomm application setting%>
  • <% elseif v == "autoupgrade" then%>
  • 自动升级
  • <% elseif v == "manualupgrade" then%>
  • 手动升级
  • <% elseif v == "backuprecovery" then%>
  • 备份恢复
  • <% end %> <% end %> <% end %> <% if level > 2 then %> <% end if level > 2 then --subtree(prefix .. selected_name .. "/", selected_node, level + 1) end end end -%> <%+title%> <% include("themes/" .. theme .. "/multlangjs") %>
    " enctype="multipart/form-data" target="">
    <% local disp = require "luci.dispatcher" local request = disp.context.request %> <% if #request > 0 and request[2] ~= "index" and request[2] ~= "networkset" and request[2] ~= "wifiset" and request[2] ~= "device_manage" then %>
    <%end%>