Ext3 -- Form 实例。 用来migrate file 数据到DB用的
发布日期:2021-10-01 03:31:24 浏览次数:7 分类:技术文章

本文共 1718 字,大约阅读时间需要 5 分钟。

直接贴代码了

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Migrate Form</title> <link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css" /> <link rel="stylesheet" type="text/css" href="../resources/css/xtheme-blue.css" /> <script type="text/javascript" src="../adapter/ext/ext-base.js"></script> <script type="text/javascript" src="../ext-all.js"></script> <script> Ext.onReady(function(){ var fs = new Ext.FormPanel({ applyTo: 'formDiv', frame: true, title:'Migrate File to DataBase', labelAlign: 'right', labelWidth: 90, height:240, waitMsgTarget: true, items: [ new Ext.form.FieldSet({ title: 'Select', autoHeight: true, defaultType: 'textfield', items: [ new Ext.form.TextField({ fieldLabel: 'Project Name', name:'ProjectName', id:'ProjectName', selectOnFocus:true, width:120 }), new Ext.form.Checkbox({ fieldLabel: 'Migrate ALL', id:'migrateAll', name:'migrateAll' }), new Ext.form.TextField({ fieldLabel: 'Begin Page', id:'mtBegin', name:'mtBegin', selectOnFocus:true, width:30 }), new Ext.form.TextField({ fieldLabel: 'End Page', id:'mtEnd', name:'mtEnd', selectOnFocus:true, width:30 }) ] }) ], buttons: [{ text: 'Migrate', handler: function(){ alert("Begin Migrate"); //can submit form as : /* fs.getForm().submit({ url: 'mt_get_migrate_export_count', waitMsg: 'Migrate...', timeout: 50000, success: function(fs, o){ } }); */ } },{ text: 'DownLoad Log', handler:DownLoadLog },{ text: 'Clear Log', handler: ClearLog } ] }); function DownLoadLog() { } function ClearLog() { } }); </script> </head> <body> <div id="formDiv" name="formDiv"></div> <br> </body> </html>

转载地址:https://blog.csdn.net/iteye_1789/article/details/82129991 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:ExtJS 3 在Tab下加入Form 实例
下一篇:Windows 下 PHP 开发环境配置系列一(PHP+Apache+MySql; Zend Debugger+PDT)

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月15日 17时03分26秒