⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cgi

📁 嵌入式无线路由系统openwrt的web配置工具
💻 CGI
字号:
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){  var moduleId = 'netinfo';  var elems = FlashSYS.getCache(moduleId);  FlashSYS.setReloader(moduleId);  if (!elems) {    var window = FlashSYS.newWindow({      id: moduleId,      title: $TR( moduleId ),      padding: 5,      width: 700,      height: 250    });        var table = new FlashSYS.Table(window.contentEl, {      trPrefix: 'interfaces_',      sortable: true,      tableHead: {        name:    { width: 15 },        mac:     { width: 15 },        ipaddr:  { width: 15 },        mtu:     { width: 10 },        txbytes: { width: 15, axis: 'number', callback: formatSize },        rxbytes: { width: 15, axis: 'number', callback: formatSize },        errors:  { width: 10 },        usage:   { width: 5, blank: true, params: { module: 'interfaces', action: 'usage', noEncode: true } }      }    });    elems = FlashSYS.setCache(moduleId, {      window: window,      table: table    });  }  var ifInfo = <? if-json -e ?>, tableValues = {}, usageIcon = {'cls': 'Icon Usage', 'title': $TR('title_usage') };  for (var ifName in ifInfo) {    var ifStats = ifInfo[ ifName ];    tableValues[ ifName ] = {      cls: (ifStats.up ? '' : 'Inactive'),      cells: [        ifName,        ifStats.hw,        ifStats.inetaddr,        ifStats.mtu,        ifStats.txbytes,        ifStats.rxbytes,        ( ifStats.txerr + ' / ' + ifStats.rxerr ),        usageIcon      ]    };  }  elems.table.loadValues(tableValues);})();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -