form.cgi

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

CGI
44
字号
#!/usr/bin/haserl# Copyright (C) 2009 OpenRB.comcontent-type: text/html(function(){  var moduleId = 'packages_form';  var elems = FlashSYS.getCache(moduleId);  if (!elems) {    var window = FlashSYS.newWindow({      id: moduleId,      title: $TR(moduleId),      width: 280,      height: 80,      padding: 5,      canReload: false,      type: 'modal'    });    var form = new FlashSYS.Form(window.contentEl, {      module: moduleId,      saveModule: 'packages',      saveAction: 'save',      trPrefix: 'packages_',      elements: [        { 'type': 'file', 'name': 'uploadfile' }      ],      iframe: true,      callback: function() {        $notify(arguments);        FlashSYS.loadMenuExtra();      },      cbParam: $TR('done'),      submitEl: window.footerEl,      reload: 'packages'    });    elems = FlashSYS.setCache(moduleId, {      'window': window,      'form': form    });  }})();

⌨️ 快捷键说明

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