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

📄 form.cgi

📁 嵌入式无线路由系统openwrt的web配置工具
💻 CGI
字号:
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){  var moduleId = 'routes_form';  var elems = FlashSYS.getCache(moduleId);  if (!elems) {    var window = FlashSYS.newWindow({      id: moduleId,      title: $TR( moduleId ),      width: 280,      height: 200,      padding: 5,      canReload: false,      type: 'modal'    });        var ifInfo = <? if-json -e ?>        var i = 0;    Ifs = new Array();    for (var ifName in ifInfo) {      Ifs.push([ifName, ifName])    }    var form = new FlashSYS.Form(window.contentEl, {      trPrefix: 'routes_',      module: moduleId,      saveModule: 'routes',      saveAction: 'save',      reload: 'routes',      submitEl: window.footerEl,      elements: [        { type: 'select', name: 'interface', values: Ifs },        { type: 'text', name: 'target' },        { type: 'text', name: 'netmask' },	{ type: 'text', name: 'gateway'}      ],      addChange: true,      changeModule: 'routes',      changeAction: 'restart',      changeNoId: true    });    elems = FlashSYS.setCache( moduleId, {      window: window,      form: form    });  }  var formOptions = <? /lib/flashsys/modules/routes/form.lua ?>;  elems.form.loadValues(formOptions.values, formOptions.params);})();

⌨️ 快捷键说明

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