1 //<script type="text/javascript">
8 Pman.on('beforeload', function()
11 // only the system admin company can see this!!
12 if (Pman.Login.authUser.company_id_isOwner * 1 < 1) {
16 modKey : '900-pman-tab-admin',
17 module : Pman.Tab.Admin,
20 name : "Administration"
22 if (Pman.hasPerm('Core.Projects_All', 'E')) {
24 Pman.subMenuItems.push({
27 cls: 'x-btn-text-icon',
28 icon: Ext.rootURL + 'images/default/dd/drop-add.gif',
30 handler : function() {
31 Pman.Dialog.Projects.show(
36 Pman.refreshActivePanel();
40 Pman.subMenuItems.push( new Roo.menu.Separator({
51 add : function(parentLayout, region)
54 if (!Pman.hasPerm('Admin.Admin_Tab', 'S')) {
62 this.layout = new Ext.BorderLayout(
63 parentLayout.getEl().createChild({tag:'div'}),
73 //this.mainTab.on('activate', function() {
74 // Pman.adminLayout.showPanel(0);
75 // Pman.Tab.Documents_In.paging.onClick('first');
79 this.tab = parentLayout.add('center',
80 new Ext.NestedLayoutPanel(
86 this.tab.on('activate', function() {
88 this.layout.showPanel(0)
91 //_this.layout.getRegion('center').showPanel(0);
94 // Pman.Tab.ProjectsMgr.paging.onClick('first');
96 // do nothing .. - if projects is not avail...
100 //Pman.Tab.ProjectsMgr.paging.onClick('first');
102 //this.adminLayout.beginUpdate();
107 buildAdminLayout : function()
111 Pman.Translation.add(this.layout, 'center');