PHP Code:
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'panel',
region: 'center',
id: 'PN_Lista',
margin: '3 3 3 3',
layout: {
type: 'border'
},
title: 'Total Accounts - 0',
items: [
{
xtype: 'gridpanel',
region: 'center',
border: false,
id: 'LST_Cuentas',
columnLines: true,
store: 'CLS_JSBase',
selModel: Ext.create('Ext.selection.CheckboxModel', {
}),
columns: [
{
xtype: 'gridcolumn',
width: 360,
dataIndex: 'host',
text: 'Host'
},
{
xtype: 'gridcolumn',
width: 210,
dataIndex: 'user',
text: 'User'
},
{
xtype: 'gridcolumn',
width: 210,
dataIndex: 'pass',
text: 'Password'
},
{
xtype: 'gridcolumn',
width: 200,
dataIndex: 'pc',
text: 'PC'
},
{
xtype: 'gridcolumn',
width: 150,
dataIndex: 'ip',
text: 'ip'
},
{
xtype: 'gridcolumn',
width: 150,
dataIndex: 'fecha',
text: 'Fecha'
}
],
viewConfig: {
},
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'combobox',
id: 'CMB_TiposSoft',
width: 265,
name: 'CMB_TiposSoft',
fieldLabel: 'Program',
labelWidth: 50,
emptyText: 'Select a type...',
editable: false,
displayField: 'programa',
queryMode: 'local',
store: 'CLS_TiposSoft',
valueField: 'id'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
handler: function(button, event) {
var sItem = Ext.getCmp('CMB_TiposSoft').getRawValue();
var iVal = Ext.getCmp('CMB_TiposSoft').getValue();
if(sItem !== ''){
Ext.getStore('CLS_JSBase').load({
url:'system.php?getlogbysoft=' + iVal,
callback: function(records, op, success){
Ext.getCmp('PN_Lista').setTitle("Total Accounts - " + records.length);
}
});
}
},
iconCls: 'show',
text: 'Show'
},
{
xtype: 'button',
handler: function(button, event) {
Ext.getStore('CLS_JSBase').load({
url:'system.php?action=getalllogs',
callback: function(records, op, success){
Ext.getCmp('PN_Lista').setTitle("Total Accounts - " + records.length);
}
});
},
iconCls: 'showall',
text: 'Show All'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
iconCls: 'expsel',
text: 'Export Selected'
},
{
xtype: 'button',
iconCls: 'expall',
text: 'Export All'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
iconCls: 'delete',
text: 'Delete Selected'
},
{
xtype: 'button',
iconCls: 'deleteall',
text: 'Delete All'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
iconCls: 'exit',
text: 'Exit'
}
]
}
]
}
],
dockedItems: [
{
xtype: 'pagingtoolbar',
dock: 'bottom',
displayInfo: true,
prependButtons: false,
store: 'CLS_JSBase'
}
]
}
I will check the id configuration.