Ext.ns('MycoCLAP'); MycoCLAP.toolBar1 = new Ext.Toolbar({ id: 'toolBar-1', autoHeight: true, items: [{ xtype: 'button', text: 'Home', handler : function() { var redirect = urlbase; if ( window.location == redirect) Ext.getCmp('content-panel').layout.setActiveItem('start-panel'); else window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'search-button', text: 'Search', handler : function() { var redirect = urlbase+'clap/Search'; if ( window.location == redirect ) Ext.getCmp('content-panel').layout.setActiveItem('report-panel'); else window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'downloads-button', text: 'Downloads', handler : function() { var redirect = urlbase+'clap/Download'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'summary-button', text: 'Data Summary', handler : function() { var redirect = urlbase+'clap/SummaryView'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'correction-button', text: 'Correction', handler : function() { var redirect = urlbase+'clap/Correction'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'newentry-button', text: 'New Entry', handler : function() { var redirect = urlbase+'clap/NewEntry'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'blast-button', text: 'BLAST', handler : function() { window.open('http://blast.fungalgenomics.ca/blast_mycoclap.html'); } },{ xtype: 'tbseparator' },{ xtype: 'button', id: 'usefullink-button', text: 'Useful Links', handler : function() { var redirect = urlbase+'clap/UsefulLinks'; window.location = redirect; } }, { xtype: 'tbseparator' },{ xtype: 'button', id: 'login-btn', text: 'Internal User (Login)', handler : function() { var redirect = urlbase+'clap/Login'; window.location = redirect; } }, { xtype: 'tbseparator' },{ xtype: 'button', text: 'About Us', handler: function() { var redirect = urlbase+'clap/AboutUs'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', text: 'Help', handler: function() { var redirect = urlbase+'clap/Help'; window.location = redirect; } },{ xtype: 'tbseparator' },{ xtype: 'button', text: 'Terms & Conditions', handler: function() { var redirect = urlbase+'clap/TermsAndConditions'; window.location = redirect; } }] }); MycoCLAP.toolBar2 = new Ext.Toolbar({ id: 'toolBar-2', hidden: false, autoHeight: true, items: [{ text: 'Field', tooltip: 'Enter search term' },' ', { xtype: 'combo', id : 'fieldMatch', store: MycoCLAP.searchFieldsFilter, fieldLabel : 'field', name : 'fieldMatch', displayField: 'text', valueField: 'value', typeAhead: false, allowBlank : true, mode: 'local', triggerAction: 'all', selectOnFocus: true, enablekeyEvents: true, value : 'all', editable: false, width: 200 },' ', { text: 'Term', },' ',{ xtype: 'field', id : 'search', fieldLabel : 'Keyword', name : 'SearchTerm', allowBlank : true, value: searchTerm, width: 300, listeners: { specialkey: function(field, el){ if (el.getKey() == Ext.EventObject.ENTER) Ext.getCmp('search-table').fireEvent('click') }, render: function() { this.el.set( {qtip: 'support BOOLEAN OPERATOR - AND, &&, OR, ||, NOT, !, or combination of them'} ); } } },{ xtype: 'tbbutton', text: 'Search', id: 'search-table', listeners: { click: function() { MycoCLAP.viewReport(); } } },'-', { xtype: 'tbbutton', text: 'Clear', listeners: { click: function () { Ext.getCmp('search').reset(); Ext.getCmp('fieldMatch').reset(); } } }] }); MycoCLAP.btmToolBar = new Ext.Toolbar({ id: 'btm-toolBar', hidden: false, autoHeight: true, items: [{ xtype: 'tbbutton', text: 'CBioN', handler : function() { window.open('http://www.cellulosic-biofuel.ca/cbnwiki/Main_Page'); } },'-', { xtype: 'tbbutton', text: 'Genome Canada', handler : function() { window.open('http://www.genomecanada.ca/'); } },'-', { xtype: 'tbbutton', text: 'Genome Quebec', handler : function() { window.open('http://www.genomequebec.com/'); } },'-', { xtype: 'tbbutton', text: 'Concordia University', handler : function() { window.open('http://www.concordia.ca/'); } },'-', { xtype: 'tbbutton', text: 'NSERC', handler : function() { window.open('http://www.nserc-crsng.gc.ca/'); } }] });