// function loadMetroControlUpper(){ Ext.Ajax.request({ url: '/lib/controller/getMetroUpperSensorEditor.php', params: { UID: , SID: '' }, success: function( response, opts ){ var data = Ext.decode( response.responseText ); var tComp = Ext.getCmp('main_content'); if( data.status == 'ok' ){ if( tComp!= null ){ var content = Ext.decode( data.content ); tComp.removeAll( true ); tComp.add( content ); tComp.doLayout(); }; } else { if( tComp!= null ){ tComp.removeAll( true ); tComp.add( data ); tComp.doLayout(); }; }; }, failure: function(){ } }); }; function loadMetroControlBottom(){ Ext.Ajax.request({ url: '/lib/controller/getMetroBottomSensorEditor.php', params: { UID: , SID: '' }, success: function( response, opts ){ var data = Ext.decode( response.responseText ); var tComp = Ext.getCmp('main_content'); if( data.status == 'ok' ){ if( tComp!= null ){ var content = Ext.decode( data.content ); tComp.removeAll( true ); tComp.add( content ); tComp.doLayout(); }; } else { if( tComp!= null ){ tComp.removeAll( true ); tComp.add( data ); tComp.doLayout(); }; }; }, failure: function(){ } }); }; function loadMetroControlFusion(){ Ext.Ajax.request({ url: '/lib/controller/getMetroFusionEditor.php', params: { UID: , SID: '' }, success: function( response, opts ){ var data = Ext.decode( response.responseText ); var tComp = Ext.getCmp('main_content'); if( data.status == 'ok' ){ if( tComp!= null ){ var content = Ext.decode( data.content ); tComp.removeAll( true ); tComp.add( content ); tComp.doLayout(); }; } else { if( tComp!= null ){ tComp.removeAll( true ); tComp.add( data ); tComp.doLayout(); }; }; }, failure: function(){ } }); };