📄 main.cgi.svn-base
字号:
#!/usr/bin/haserl# Copyright (C) 2008 OpenRB.comcontent-type: text/html(function(){ var moduleId = 'test'; var elems = FlashSYS.getCache(moduleId); if (!elems) { var window = FlashSYS.newWindow({ id: moduleId, title: $TR( moduleId ), width: 400, height: 225, padding: 5 }); FlashSYS.Control.addButton(window.footerEl, { 'params': { 'module': moduleId, 'action': 'form' }, 'cls': 'Add' }); var table = new FlashSYS.Table(window.contentEl, { params: { 'module': moduleId, 'action': 'form' }, trPrefix: 'test_', tableHead: { 'name': { width: 60 }, 'value': { width: 30 }, 'delete': { width: 10, blank: true, confirm: 'del_confirm', params: { module: moduleId, action: 'delete', reload: moduleId } } } }); elems = FlashSYS.setCache(moduleId, { window: window, table: table }); } var tableValues = {}, tableData = <? /lib/flashsys/modules/test/main.lua ?>, delIcon = { cls: 'Icon Delete' }; if ($type(tableData) != 'array') { return; } for (var i = 0, j = tableData.length; i < j; i++) { var rowData = tableData[ i ]; tableValues[ rowData['.name'] ] = [ rowData.name, rowData.value, delIcon ]; } elems.table.loadValues(tableValues);})();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -