📄 form.cgi.svn-base
字号:
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){ var moduleId = 'test_form'; var elems = FlashSYS.getCache(moduleId); if (!elems) { var window = FlashSYS.newWindow({ id: moduleId, title: $TR( moduleId ), width: 280, height: 200, canReload: false, type: 'modal' }); var form = new FlashSYS.Form(window.contentEl, { trPrefix: 'test_', module: moduleId, saveModule: 'test', reload: 'test', tabs: ['general', 'advanced'], submitEl: window.footerEl, elements: [ { type: 'text', name: 'name', validate: { 'word': true, 'length': [4,16] } }, { type: 'text', name: 'value', validate: { 'integer': [1,100] } }, 'tab', { type: 'checkbox', name: 'enabled' }, { type: 'select', name: 'option1', values: [['a', 'Option A'], ['b', 'Option B'], ['c', 'Option C'], ['d', 'Option D']] }, { type: 'radio', name: 'option2', values: [['a', 'yes'], ['b', 'no'], ['c', 'unsure']] } ] }); elems = FlashSYS.setCache( moduleId, { window: window, form: form }); } var formOptions = <? /lib/flashsys/modules/test/form.lua ?>; elems.form.loadValues(formOptions.values, formOptions.params);})();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -