Asp.net源码专业站
首页->博客空间->ExtJs单用户Blog系统后台源码>>Vifir.Web/manage/adminLogin.js>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:ExtJs单用户Blog系统后台源码
当前文件:文件类型 ExtJsBlog/Vifir.Web/manage/adminLogin.js[1K,2009-6-12 11:42:10]打开代码结构图
普通视图
		            
1/** 2 * @author 冷雨 HTTP://WWW.EasyJF.Com 3 * 4 * 使用Ext2.0构造一个客户登陆面板 5 */ 6 Ext.BLANK_IMAGE_URL = '../plugins/extjs/ext-2.0/resources/images/default/s.gif'; 7 Ext.QuickTips.init(); 8 LoginWindow=Ext.extend(Ext.Window,{ 9 title : '登陆系统', 10 width : 265, 11 height : 140, 12 collapsible : true, 13 defaults : { 14 border : false 15 }, 16 buttonAlign : 'center', 17 createFormPanel :function() { 18 return new Ext.form.FormPanel( { 19 bodyStyle : 'padding-top:6px', 20 defaultType : 'textfield', 21 labelAlign : 'right', 22 labelWidth : 55, 23 labelPad : 0, 24 frame : true, 25 defaults : { 26 allowBlank : false, 27 width : 158 28 }, 29 items : [{ 30 cls : 'user', 31 name : 'userName', 32 fieldLabel : '帐号', 33 blankText : '帐号不能为空' 34 }, { 35 cls : 'key', 36 name : 'password', 37 fieldLabel : '密码', 38 blankText : '密码不能为空', 39 inputType : 'password' 40 }] 41 }); 42 }, 43 login:function() { 44 this.fp.form.submit({ 45 waitMsg : '正在登录......', 46 url : '../Portal.aspx?cmd=AdminLogin', 47 success : function(form, action) { 48 window.location.href = 'Default.aspx'; 49 }, 50 failure : function(form, action) { 51 form.reset(); 52 if (action.failureType == Ext.form.Action.SERVER_INVALID) 53 Ext.MessageBox.alert('警告', action.result.errors.msg); 54 } 55 }); 56 }, 57 initComponent : function(){ 58 this.keys={ 59 key: Ext.EventObject.ENTER, 60 fn: this.login, 61 scope: this}; 62 LoginWindow.superclass.initComponent.call(this); 63 this.fp=this.createFormPanel(); 64 this.add(this.fp); 65 this.addButton('登陆',this.login,this); 66 this.addButton('重置', function(){this.fp.form.reset();},this); 67 } 68 }); 69 70Ext.onReady(function() 71{ 72 var win=new LoginWindow(); 73 win.show(); 74 setTimeout(function() { 75 Ext.get('loading-mask').fadeOut( { 76 remove : true 77 }); 78 }, 300); 79} 80);
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:ExtJs单用户Blog系统后台源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146