日期:2014-05-16 浏览次数:20434 次
<form method="POST" action="j_security_check">
Username : <input type="text" size="15" maxlength="25" name="j_username"><br><br>
Password : <input type="password" size="15" maxlength="25" name="j_password"><br><br>
<input value="Login" type="submit"> <input value="Clear" type="reset">
</form>
Ext.onReady(function(){
var window = new Ext.Window({
title: 'Login',
frame: true ,
width: 260,
items: [
{ xtype: 'form',
items: [{
xtype: 'textfield',
fieldLabel: 'UserID',
name: 'j_username',
width: 230,
labelWidth: 65,
padding: '5,0,0,0'
},{
xtype: 'textfield',
fieldLabel: 'PassWord',
name: 'j_password',
inputType: 'password',
width: 230,
labelWidth: 65,
padding: '5,0,0,0'
}],
buttons: [{
text: 'login',
handler: function(){
var form = this.up('form').getForm();
form.submit({
url: 'j_security_check',
method: 'POST'
});
}
},{
text: 'register',
handler: function(){alert('please wait for some days');}
},{
text: 'help',
arrowAlign: 'right',
menu:[{
text: 'forget password',
listeners: {
click: function(){alert('oh i feel sorry');}
}
},{
text: 'call me',
listeners: {
click: function(){alert('call me');}
}
}]
}]
}]
});
window.show();
});