main.cgi.svn-base

来自「嵌入式无线路由系统openwrt的web配置工具」· SVN-BASE 代码 · 共 43 行

SVN-BASE
43
字号
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){  var moduleId = 'syslog';  var elems = FlashSYS.getCache( moduleId );  FlashSYS.setReloader(moduleId);  if (!elems) {    var window = FlashSYS.newWindow({      id: moduleId,      title: $TR( moduleId ),      width: 600,      height: 225,      padding: 5    });    var table = new FlashSYS.Table(window.contentEl, {      trPrefix: 'syslog_',      tableHead: { 'entry': { width: 100 } }    });    elems = FlashSYS.setCache(moduleId, {      window: window,      table: table    });  }  var tableValues = {}, tableData = <? /lib/flashsys/modules/syslog/main.lua ?>;  if ($type(tableData) != 'array') {    return;  }  tableData.reverse();  for (var i = 0, j = tableData.length; i < j; i++) {    var id = 'entry' + i;    tableValues[ id ] = { 'cells': [ tableData[i] ] };  }  elems.table.loadValues(tableValues);})();

⌨️ 快捷键说明

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