{ "name" : "Pman.Tab", "parent" : "", "title" : "", "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.bjs", "permname" : "", "modOrder" : "001", "strings" : { "7b7bc2512ee1fedcd76bdc68926d4f7b" : "Administrator", "0323de4f66a1700e2173e9bcdce02715" : "Logout", "8f1e77e0d2be21da93cd4d9a939148f7" : "Change Password", "617114bd6ef10884239510062dffa933" : "Your password has been changed", "24efa7ee4511563b16144f39706d594f" : "Notice" }, "items" : [ { "listeners" : { "render" : "function (_self)\n{\n\n}" }, "xtype" : "Border", "$ el" : "document.body", "$ xns" : "Roo.bootstrap.layout", "bool is_root" : true, "items" : [ { "String tabPosition" : "top", "xtype" : "Region", "string cls" : "pman-admin-center", "$ xns" : "Roo.bootstrap.layout", "Boolean alwaysShowTabs" : true, "* prop" : "center" }, { "xtype" : "Region", "Boolean hideTabs" : true, "Number height" : 50, "$ xns" : "Roo.bootstrap.layout", "* prop" : "north", "String overflow" : "visible" }, { "Boolean fitContainer" : true, "xtype" : "Content", "$ xns" : "Roo.bootstrap.panel", "String region" : "north", "items" : [ { "String position" : "fixed-top", "String cls" : "headroom animated slideDown no-srButton pman-admin-header", "Boolean srButton" : true, "bool autohide" : true, "xtype" : "NavHeaderbar", "Boolean inverse" : false, "Boolean desktopCenter" : false, "$ String brand" : "''", "$ xns" : "Roo.bootstrap", "items" : [ { "String type" : "nav", "xtype" : "NavGroup", "String align" : "right", "$ xns" : "Roo.bootstrap", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n _this.user_box = this;\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.show();\n}" }, "Boolean preventDefault" : true, "| function updateBadge" : "function() { }", "xtype" : "NavItem", "$ html" : "Pman.Login.authUser.name + ''", "$ xns" : "Roo.bootstrap", "String icon" : "fa fa-user", "items" : [ { "listeners" : { "show" : "function (_self)\n{\n var width = Roo.lib.Dom.getViewWidth();\n \n var xy = this.el.getXY();\n this.el.setStyle('position', 'absolute');\n \n if(width < 480){\n xy[0] = 0;\n this.el.setXY(xy);\n this.el.setStyle('width', width + 'px');\n }\n}" }, "Boolean allowDomMove" : false, "String cls" : "user-menu", "xtype" : "Menu", "$ xns" : "Roo.bootstrap", "bool hideTrigger" : true, "* prop" : "menu", "items" : [ { "String cls" : "user-body", "Boolean preventDefault" : true, "xtype" : "MenuItem", "$ xns" : "Roo.bootstrap", "Boolean isContainer" : true, "items" : [ { "xtype" : "Row", "$ xns" : "Roo.bootstrap", "items" : [ { "Number md" : 12, "xtype" : "Column", "$ xns" : "Roo.bootstrap", "items" : [ { "xtype" : "Row", "$ xns" : "Roo.bootstrap", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n this.el.dom.innerHTML = '' + Pman.Login.authUser.name + '';\n \n}" }, "Number md" : 12, "String cls" : "text-primary", "xtype" : "Column", "$ xns" : "Roo.bootstrap" }, { "listeners" : { "render" : "function (_self)\n{\n \n this.el.dom.innerHTML = Pman.Login.authUser.email;\n \n}" }, "Number md" : 12, "xtype" : "Column", "$ xns" : "Roo.bootstrap", "String style" : "color:#777;" }, { "Number md" : 12, "xtype" : "Column", "$ xns" : "Roo.bootstrap", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n _this.super_admin_btn = this;\n \n}", "click" : "function (_self, e)\n{\n if(window.location.href.indexOf('_super_admin=1') * 1 != -1) {\n window.open(baseURL,'_self');\n return;\n }\n \n window.open(baseURL + '?_super_admin=1','_self');\n}" }, "String weight" : "link", "xtype" : "Button", "$ xns" : "Roo.bootstrap", "String html" : "Administrator", "String style" : "padding: 0px;text-decoration: none; color:#777;" } ] } ] } ] } ] } ] }, { "listeners" : { "childrenrendered" : "function (_self)\n{\n _this.super_admin_btn.hide();\n\n if(Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {\n _this.super_admin_btn.show();\n }\n}" }, "String cls" : "user-footer", "Boolean preventDefault" : true, "xtype" : "MenuItem", "$ xns" : "Roo.bootstrap", "Boolean isContainer" : true, "items" : [ { "xtype" : "Row", "$ xns" : "Roo.bootstrap", "items" : [ { "Number md" : 6, "xtype" : "Column", "Number xs" : 6, "$ xns" : "Roo.bootstrap", "Number sm" : 6, "items" : [ { "listeners" : { "click" : "function (e)\n{\n var _self = this;\n \n Pman.Dialog.BAdminPassword.show(\n {},\n function(res) {\n Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n }\n );\n \n}" }, "xtype" : "Button", "string _change_passwd_success_body" : "Your password has been changed", "$ xns" : "Roo.bootstrap", "String html" : "Change Password", "String style" : "text-transform:none;", "string _change_passwd_success_title" : "Notice" } ] }, { "Number md" : 6, "xtype" : "Column", "Number xs" : 6, "$ xns" : "Roo.bootstrap", "String style" : "text-align: right;", "Number sm" : 6, "items" : [ { "listeners" : { "click" : "function (e)\n{\n window.onbeforeunload = false;\n \n \n Roo.Ajax.request({\n url : baseURL + '/Login',\n method: 'POST',\n params : { \n logout : 1\n },\n success : function()\n {\n location.href = baseURL;\n }\n });\n\n}" }, "xtype" : "Button", "$ xns" : "Roo.bootstrap", "String html" : "Logout", "String style" : "text-transform:none;" } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }