var fs = Ext.create( 'Ext.form.Panel',
{
renderTo: Ext.getBody(),
frame : true,
bodyStyle : 'padding:4px 2px 3px 4px',
width : document.body.clientWidth - 200,
fieldDefaults : {
labelAlign : 'left',
msgTarget : 'side'
},
items : [ { fieldLabel : '请输入原密码', id : 'oldword', inputType : 'password', allowBlank : false }, { fieldLabel : '请输入新密码', id : 'word', inputType : 'password', allowBlank : false }, { fieldLabel : '请确认新密码', id : 'newword', inputType : 'password', allowBlank : false },{ xtype: 'panel', frame : true, html:'<div align="center" style="color: #FF0000">忘记密码请联系</div>' } ],
buttons : [{
text : '确定', formBind : true, disabled : true,
handler : function() {
}
}, {
text : '重置',
handler : function() {
}
} ]
});![]()