'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
'a37ede293936e29279ed543129451ec3' :"Groups",
'7dce122004969d56ae2e0245cb754d35' :"Edit",
- 'b645495692a2048578f4dc6620bcb833' :"Manage Groups ?",
'4d1c8263ba1036754f8db14a98f9f006' :"Reload",
'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
- '49ee3087348e8d44e1feda1917443987' :"Name"
+ '49ee3087348e8d44e1feda1917443987' :"Name",
+ 'aba9f7d7443652e858969bfc280690b1' :"Manage Groups"
},
part : ["Admin", "ContactsGroup" ],
name : "Pman.Tab.AdminContactsGroup",
disabled : false,
permname : '',
- _tree : function()
+ _tree : function(_data)
{
var _this = this;
var MODULE = this;
return {
+ xtype : 'GridPanel',
background : true,
fitContainer : true,
fitToframe : true,
region : 'west',
- tableName : 'Groups',
+ tableName : 'core_group',
title : _this._strings['a37ede293936e29279ed543129451ec3'] /* Groups */,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'GridPanel',
listeners : {
activate : function() {
_this.panel = this;
}
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
grid : {
+ xtype : 'Grid',
autoExpandColumn : 'name',
ddGroup : 'groupDD',
enableDrop : true,
loadMask : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'Grid',
listeners : {
render : function()
{
});
}
},
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid',
toolbar : {
+ xtype : 'Toolbar',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'Toolbar',
items : [
{
- text : _this._strings['b645495692a2048578f4dc6620bcb833'] /* Manage Groups ? */,
+ xtype : 'Button',
+ text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */,
xns : Roo.Toolbar,
'|xns' : 'Roo.Toolbar',
- xtype : 'Button',
menu : {
+ xtype : 'Menu',
xns : Roo.menu,
'|xns' : 'Roo.menu',
- xtype : 'Menu',
items : [
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
_this.grid.ds.load({});
});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : Roo.rootURL + 'images/default/tree/leaf.gif',
text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
+ xtype : 'Item',
cls : 'x-btn-text-icon',
icon : rootURL + '/Pman/templates/images/trash.gif',
text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Item',
listeners : {
click : function()
{
- Pman.genericDelete(_this, 'Groups');
+ Pman.genericDelete(_this, 'core_group');
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
},
{
+ xtype : 'Separator',
xns : Roo.menu,
- '|xns' : 'Roo.menu',
- xtype : 'Separator'
+ '|xns' : 'Roo.menu'
},
{
- text : _this._strings['4d1c8263ba1036754f8db14a98f9f006'] /* Reload */,
- xns : Roo.menu,
- '|xns' : 'Roo.menu',
xtype : 'Item',
+ text : _this._strings['4d1c8263ba1036754f8db14a98f9f006'] /* Reload */,
listeners : {
click : function (_self, e)
{
_this.grid.ds.load({});
}
- }
+ },
+ xns : Roo.menu,
+ '|xns' : 'Roo.menu'
}
]
}
]
},
dataSource : {
+ xtype : 'Store',
remoteSort : true,
sortInfo : { field : 'name', direction: 'ASC' },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'Store',
listeners : {
beforeload : function (_self, o)
{
o.params = o.params || {};
+
o.params.type =2;
+
+ o.params._add_everyone = 1;
},
load : function (_self, records, options)
{
Pman.Tab.AdminContacts.grid.footer.onClick('first');
}
},
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
- url : baseURL + '/Roo/Groups.php',
+ url : baseURL + '/Roo/core_group',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
+ xtype : 'JsonReader',
fields : [
{
'name': 'id',
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
},
dropTarget : {
- ddGroup : 'groupDD',
- xns : Roo.dd,
- '|xns' : 'Roo.dd',
xtype : 'DropTarget',
+ ddGroup : 'groupDD',
listeners : {
drop : function (source, e, data)
{
// Roo.log('add');
//}
}
- }
+ },
+ xns : Roo.dd,
+ '|xns' : 'Roo.dd'
},
sm : {
- singleSelect : true,
- xns : Roo.grid,
- '|xns' : 'Roo.grid',
xtype : 'RowSelectionModel',
+ singleSelect : true,
listeners : {
afterselectionchange : function (_self)
{
c.getActivePanel().grid.footer.onClick('first');
}
- }
+ },
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
},
colModel : [
{
+ xtype : 'ColumnModel',
dataIndex : 'name',
header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
renderer : function(v,x,r) {
},
width : 200,
xns : Roo.grid,
- '|xns' : 'Roo.grid',
- xtype : 'ColumnModel'
+ '|xns' : 'Roo.grid'
}
]
}