Pman.Tab = new Roo.XComponent({
_strings : {
+ '7b7bc2512ee1fedcd76bdc68926d4f7b' :"Administrator",
'0323de4f66a1700e2173e9bcdce02715' :"Logout",
- '617114bd6ef10884239510062dffa933' :"Your password has been changed",
'8f1e77e0d2be21da93cd4d9a939148f7' :"Change Password",
+ '617114bd6ef10884239510062dffa933' :"Your password has been changed",
'24efa7ee4511563b16144f39706d594f' :"Notice"
},
xtype : 'Border',
el : document.body,
is_root : true,
+ listeners : {
+ render : function (_self)
+ {
+
+ }
+ },
xns : Roo.bootstrap.layout,
'|xns' : 'Roo.bootstrap.layout',
center : {
xtype : 'Region',
alwaysShowTabs : true,
+ cls : 'pman-admin-center',
tabPosition : 'top',
xns : Roo.bootstrap.layout,
'|xns' : 'Roo.bootstrap.layout'
xtype : 'NavHeaderbar',
autohide : true,
brand : '<img cls="header-logo" src="' + Roo.BLANK_IMAGE_URL + '">',
- cls : 'headroom animated slideDown no-srButton',
+ cls : 'headroom animated slideDown no-srButton pman-admin-header',
desktopCenter : false,
inverse : false,
position : 'fixed-top',
srButton : true,
- style : 'padding-bottom:0px;',
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
{
xtype : 'NavGroup',
align : 'right',
- style : 'margin-top:0px;margin-bottom:0px;',
type : 'nav',
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
this.el.setVisibilityMode(Roo.Element.DISPLAY);
this.el.show();
-
- new Pman.Request({
- url: baseURL + '/Roo/Coba_investor_notes.php',
- method : 'GET',
- params : {
- _admin_badges : 1
- },
- success : function(res) {
- Roo.log(res);
- }
- });
-
}
},
xns : Roo.bootstrap,
xtype : 'Menu',
allowDomMove : false,
cls : 'user-menu',
+ hideTrigger : true,
listeners : {
show : function (_self)
{
items : [
{
xtype : 'Column',
- md : 9,
- mdoff : 3,
+ md : 12,
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
items : [
{
xtype : 'Column',
+ cls : 'text-primary',
md : 12,
- style : 'color:#333;text-align:right',
listeners : {
render : function (_self)
{
{
xtype : 'Column',
md : 12,
- style : 'color:#333;text-align:right',
+ style : 'color:#777;',
listeners : {
render : function (_self)
{
},
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
+ },
+ {
+ xtype : 'Column',
+ md : 12,
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ items : [
+ {
+ xtype : 'Button',
+ html : _this._strings['7b7bc2512ee1fedcd76bdc68926d4f7b'] /* Administrator */,
+ style : 'padding: 0px;text-decoration: none; color:#777;',
+ weight : 'link',
+ listeners : {
+ click : function (_self, e)
+ {
+ if(window.location.href.indexOf('_super_admin=1') * 1 != -1) {
+ window.open(baseURL,'_self');
+ return;
+ }
+
+ window.open(baseURL + '?_super_admin=1','_self');
+ },
+ render : function (_self)
+ {
+ _this.super_admin_btn = this;
+
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap'
+ }
+ ]
}
]
}
cls : 'user-footer',
isContainer : true,
preventDefault : true,
+ listeners : {
+ childrenrendered : function (_self)
+ {
+ _this.super_admin_btn.hide();
+
+ if(Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {
+ _this.super_admin_btn.show();
+ }
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
listeners : {
click : function (e)
{
-
var _self = this;
- Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {
- Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
- });
+ Pman.Dialog.BAdminPassword.show(
+ {},
+ function(res) {
+ Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
+ }
+ );
}
},