You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//<?php require_once('../../js_asm.php'); ?>
function loadMetroControlUpper(){ Ext.Ajax.request({ url: '/lib/controller/getMetroUpperSensorEditor.php', params: { UID: <?=$UserID;?>, SID: '<?=$Session;?>' }, 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: <?=$UserID;?>, SID: '<?=$Session;?>' }, 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: <?=$UserID;?>, SID: '<?=$Session;?>' }, 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(){ } });};
|