
$('#sre_layout').addClass('nuEdited'); 

nuAttachButtonImage('open_builder','RD');


function nuPickTableType(){
    
    var i   = $('#sre_zzzzsys_php_id').val();
    
    var f   = '';
    var r   = '';
    
    if(i.substr(0,10) == 'PROCEDURE:'){
        
        f   = 'nuphp';
        r = i.substr(10);
        
    }
    
    if(i == ''){
        
        nuMessage([nuTranslate('Table selected must be an SQL or Procedure')]);
        return;

    }
    
    if(i.substr(0,6) == 'TABLE:'){
        
        nuMessage(nuTranslate(['To edit a table go to the Database Button']));
        return;

    }
    
    if(i.substr(0,4) == 'SQL:'){
        
        f   = 'nuselect';
        r = i.substr(4);

    }
    
    nuPopup(f,r);
    
}
