1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 Pman.Tab = new Roo.XComponent({
10 '0323de4f66a1700e2173e9bcdce02715' :"Logout",
11 '617114bd6ef10884239510062dffa933' :"Your password has been changed",
12 '8f1e77e0d2be21da93cd4d9a939148f7' :"Change Password",
13 '24efa7ee4511563b16144f39706d594f' :"Notice"
16 part : ["BAdmin", "Tab" ],
17 order : '001-Pman.Tab',
20 name : "unnamed module",
23 _tree : function(_data)
31 xns : Roo.bootstrap.layout,
32 '|xns' : 'Roo.bootstrap.layout',
35 alwaysShowTabs : true,
37 xns : Roo.bootstrap.layout,
38 '|xns' : 'Roo.bootstrap.layout'
44 xns : Roo.bootstrap.layout,
45 '|xns' : 'Roo.bootstrap.layout'
52 xns : Roo.bootstrap.panel,
53 '|xns' : 'Roo.bootstrap.panel',
56 xtype : 'NavHeaderbar',
58 brand : '<img src="' + (appLogo ? appLogo : Roo.BLANK_IMAGE_URL) + '">',
60 cls : 'headroom animated slideDown container no-srButton',
63 position : 'static-top',
65 style : 'padding-bottom:0px;',
67 '|xns' : 'Roo.bootstrap',
72 style : 'margin-top:0px;margin-bottom:0px;',
75 '|xns' : 'Roo.bootstrap',
79 html : Pman.Login.authUser.name,
81 preventDefault : true,
83 render : function (_self)
85 this.el.setVisibilityMode(Roo.Element.DISPLAY);
93 '|xns' : 'Roo.bootstrap',
98 show : function (_self)
100 var width = Roo.lib.Dom.getViewWidth();
102 var xy = this.el.getXY();
107 this.el.setStyle('width', width + 'px');
112 '|xns' : 'Roo.bootstrap',
118 preventDefault : true,
120 '|xns' : 'Roo.bootstrap',
125 '|xns' : 'Roo.bootstrap',
131 '|xns' : 'Roo.bootstrap',
136 '|xns' : 'Roo.bootstrap',
141 style : 'color:#333;',
143 render : function (_self)
146 this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';
151 '|xns' : 'Roo.bootstrap'
156 style : 'color:#333;',
158 render : function (_self)
161 this.el.dom.innerHTML = Pman.Login.authUser.email;
166 '|xns' : 'Roo.bootstrap'
180 preventDefault : true,
182 '|xns' : 'Roo.bootstrap',
187 '|xns' : 'Roo.bootstrap',
195 '|xns' : 'Roo.bootstrap',
199 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
200 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
201 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
202 style : 'text-transform:none;',
206 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
212 Hydra.Dialog.ChangePassword.show({}, function(res) {
213 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
218 '|xns' : 'Roo.bootstrap'
226 style : 'text-align: right;',
229 '|xns' : 'Roo.bootstrap',
233 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
234 style : 'text-transform:none;',
238 window.onbeforeunload = false;
240 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
245 url : baseURL + '/Login',
252 location.href = baseURL;
259 '|xns' : 'Roo.bootstrap'
277 '|xns' : 'Roo.bootstrap',
282 imgResponsive : true,
283 style : 'height: 50px;',
285 render : function (_self)
288 _self.el.dom.src = appLogo;
293 '|xns' : 'Roo.bootstrap'