Ext.namespace("Ext.ux");Ext.ux.LoginBoxPopup=Ext.extend(Ext.Window,{initComponent:function(){Ext.applyIf(this,a);Ext.ux.LoginBoxPopup.superclass.initComponent.apply(this,arguments);var a={title:this.winTitle};this.toolBar=new Ext.Toolbar({scope:this,items:[{xtype:"tbbutton",text:this.btnLogin,scope:this,handler:function(){this.submitForm('http://www.eco-conception.fr/index.php/login.html')}},{xtype:"tbbutton",text:this.btnRegister,scope:this,handler:function(){xRegbox=new Ext.ux.RegisterBox();xRegbox.show()}},{xtype:"tbbutton",text:this.btnFPassword,scope:this,handler:function(){xFPbox=new Ext.ux.FortgotPasswordBox();xFPbox.show()}}]});this.popupForm=new Ext.FormPanel({bodyStyle:"padding:5px 5px 0",autoWidth:true,autoHeight:true,iframe:true,border:false,labelAlign:"right",bodyCfg:{tag:"center",cls:"x-panel-body"},labelWidth:75,defaults:{anchor:"100%"},defaultType:"textfield",items:[{xtype:"textfield",vtype:"email",hideLabel:true,fieldLabel:this.labelField1,name:"login",emptyText:this.emptyTextField1,allowBlank:false},{xtype:"textfield",scope:this,hideLabel:true,enableKeyEvents:true,fieldLabel:this.labelField1,name:"passwd",inputType:"password",emptyText:this.emptyTextField2,listeners:{scope:this,keyup:function(b,c){if(c.getKey()==13){this.submitForm('http://www.eco-conception.fr/index.php/login.html')}}}}],bbar:[this.toolBar,new Ext.StatusBar({id:"login-popup-statusbar",defaultText:""})]});this.add(this.popupForm)},onRender:function(){Ext.ux.LoginBoxPopup.superclass.onRender.apply(this,arguments);this.popupForm.doLayout();this.syncSize()},submitForm:function(b){var a=this.popupForm.getForm();if(a&&a.isValid()){a.submit({url:b,method:"POST",reset:false,scope:this,failure:function(d,c){Ext.getCmp("login-popup-statusbar").setStatus({text:c.result.message,iconCls:"",clear:true})},success:function(d,c){nav("loginupdte",'http://www.eco-conception.fr/session/majfront.html',"GET",0);this.close()}})}}});Ext.reg("loginboxpopup",Ext.ux.LoginBoxPopup);
