Ext.onReady(function(){
// second tabs built from JS
var tabs2 = Ext.createWidget('tabpanel', {
renderTo: document.getElementById('tabs2'),
activeTab: 0,
width: '100%',
height: 320,
plain: true,
defaults :{
autoScroll: true,
bodyPadding: 2
},
items: [{
title: 'Новые организации',
///style: "margin:15px; font-size:22px;",
loader: {
url: 'sub_list_org.php?list_org=10',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
},{
title: 'ТОП 10 организаций',
loader: {
url: 'sub_list_org.php?list_org=30',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
},{
title: 'ТОП 10 смежных организаций',
loader: {
url: 'sub_list_org.php?list_org=40',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
},{
title: 'Последние отзывы',
loader: {
url: 'sub_list_org.php?list_org=20',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
},{
title: 'Чёрный список',
loader: {
url: 'sub_list_org.php?list_org=50',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
}
]
});
});