📄 main.cgi.svn-base
字号:
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){ var moduleId = 'dhcp'; var elems = FlashSYS.getCache( moduleId ); if (!elems) { var window = FlashSYS.newWindow({ id: moduleId, title: $TR( moduleId ), padding: 5, width: 250, height: 180 }); var table = new FlashSYS.Table(window.contentEl, { params: { 'module': moduleId, 'action': 'form' }, trPrefix: 'dhcp_', tableHead: { 'ifname': { width: 85 }, 'status': { width: 15, blank: true } } }); new Element('h4', { 'class': 'NoticeAlt', 'text': $TR('dhcp_notice') }).inject(window.contentEl); elems = FlashSYS.setCache( moduleId, { window: window, table: table }); } var tableValues = {}, tableData = <? /lib/flashsys/modules/dhcp/main.lua ?>, upIcon = {'cls': 'Icon UpDown', 'title': $TR('title_active') }, downIcon = {'cls': 'Icon UpDown', 'title': $TR('title_inactive') }; // parse network config data for (id in tableData.network) { var options = tableData.network[ id ]; if (options.ifname == 'lo' || options.proto != 'static') { continue; } var dhcpOptions = tableData.dhcp[ id ] || { ignore: 1 }; tableValues[ id ] = { cls: (dhcpOptions.ignore == '1' ? 'Inactive' : ''), cells: [ (options.type == 'bridge' ? 'br-' + id : options.ifname), (dhcpOptions.ignore == '1' ? downIcon : upIcon) ] }; } elems.table.loadValues(tableValues);})();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -