main.cgi

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

CGI
44
字号
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){  var moduleId = 'ntp';  var elems = FlashSYS.getCache( moduleId );    if (!elems) {    var window = FlashSYS.newWindow({      id: moduleId,      title: $TR( moduleId ),      width: 300,      height: 250    });    var clickParams = { 'module': 'ntp', 'action': 'form' };    var table = new FlashSYS.Table(window.contentEl, {      sortable: true,      params: clickParams,      trPrefix: 'ntp_',      tableHead: {        'hostname': { width: 60 },        'port': { width: 30, axis: 'number' },        'delete': { width: 10, blank: true, confirm: 'del_confirm', params: { module: 'ntp', action: 'delete', reload: 'ntp' } }      }    });    clickParams.data = { 'new': true };    FlashSYS.Control.addButton(window.footerEl, {      'params': clickParams,      'cls': 'Add'    });        elems = FlashSYS.setCache( moduleId, {      window: window,      table: table    });  }  var tableValues = <? /lib/flashsys/modules/ntp/main.lua ?>;  elems.table.loadValues(tableValues);  })();

⌨️ 快捷键说明

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