GO.settingsmodule.MainPanel=function(a){if(!a){a={}}a.labelWidth=150;a.border=false;a.padding=10;a.url=GO.settings.modules.settings.url+"data.php",a.baseParams={task:"load_settings",save:false};a.items={xtype:"fieldset",labelAlign:"top",title:GO.settingsmodule.lang.loginScreenText,items:[{boxLabel:GO.settingsmodule.lang.loginTextEnabled,xtype:"checkbox",hideLabel:true,name:"login_screen_text_enabled",anchor:"100%"},{fieldLabel:GO.settingsmodule.lang.title,xtype:"textfield",hideLabel:true,name:"login_screen_text_title",anchor:"100%"},{fieldLabel:GO.settingsmodule.lang.text,xtype:"htmleditor",hideLabel:true,name:"login_screen_text",anchor:"100%",height:100}]};a.tbar=new Ext.Toolbar({cls:"go-head-tb",items:[{iconCls:"btn-save",text:GO.lang.cmdSave,cls:"x-btn-text-icon",handler:function(){this.el.mask(GO.lang.waitMsgLoad);this.form.baseParams.save=true;this.form.submit({success:function(b,c){this.el.unmask()},failure:function(b,c){this.el.unmask()},scope:this})},scope:this},{iconCls:"btn-delete",text:GO.lang.cmdCancel,cls:"x-btn-text-icon",handler:function(){this.form.baseParams.save=false;this.form.load()},scope:this}]});GO.settingsmodule.MainPanel.superclass.constructor.call(this,a)};Ext.extend(GO.settingsmodule.MainPanel,Ext.FormPanel,{afterRender:function(){GO.settingsmodule.MainPanel.superclass.afterRender.call(this);this.form.load();this.form.timeout=360}});GO.moduleManager.addModule("settings",GO.settingsmodule.MainPanel,{title:GO.settingsmodule.lang.mainTitle,iconCls:"go-tab-icon-settings",admin:true});