Pman.Tab.bjs
[Pman.BAdmin] / Pman.Tab.bjs
1 {
2  "name" : "Pman.Tab",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "0323de4f66a1700e2173e9bcdce02715" : "Logout",
10   "617114bd6ef10884239510062dffa933" : "Your password has been changed",
11   "8f1e77e0d2be21da93cd4d9a939148f7" : "Change Password",
12   "24efa7ee4511563b16144f39706d594f" : "Notice"
13  },
14  "items" : [
15   {
16    "xtype" : "Border",
17    "$ el" : "document.body",
18    "$ xns" : "Roo.bootstrap.layout",
19    "bool is_root" : true,
20    "items" : [
21     {
22      "String tabPosition" : "top",
23      "xtype" : "Region",
24      "$ xns" : "Roo.bootstrap.layout",
25      "Boolean alwaysShowTabs" : true,
26      "* prop" : "center"
27     },
28     {
29      "xtype" : "Region",
30      "Boolean hideTabs" : true,
31      "Number height" : 50,
32      "$ xns" : "Roo.bootstrap.layout",
33      "* prop" : "north",
34      "String overflow" : "visible"
35     },
36     {
37      "Boolean fitContainer" : true,
38      "xtype" : "Content",
39      "$ xns" : "Roo.bootstrap.panel",
40      "String region" : "north",
41      "items" : [
42       {
43        "String position" : "fixed-top",
44        "String cls" : "headroom animated slideDown  no-srButton",
45        "Boolean srButton" : true,
46        "bool autohide" : true,
47        "xtype" : "NavHeaderbar",
48        "Boolean inverse" : false,
49        "Boolean desktopCenter" : false,
50        "$ String brand" : "'<img   cls=\"header-logo\" src=\"' +    Roo.BLANK_IMAGE_URL + '\">'",
51        "$ xns" : "Roo.bootstrap",
52        "String style" : "padding-bottom:0px;",
53        "items" : [
54         {
55          "String type" : "nav",
56          "xtype" : "NavGroup",
57          "String align" : "right",
58          "$ xns" : "Roo.bootstrap",
59          "String style" : "margin-top:0px;margin-bottom:0px;",
60          "items" : [
61           {
62            "listeners" : {
63             "render" : "function (_self)\n{\n    _this.user_box = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    this.el.show();\n    \n    new Pman.Request({\n        url: baseURL + '/Roo/Coba_investor_notes.php',\n        method : 'GET',\n        params : {\n            _admin_badges : 1\n        }, \n        success : function(res) {\n            Roo.log(res);\n        }\n    });\n    \n}"
64            },
65            "Boolean preventDefault" : true,
66            "| function updateBadge" : "function() { }",
67            "xtype" : "NavItem",
68            "$ html" : "Pman.Login.authUser.name + '<span style=\"margin-left: 5px;\" class=\"badge badge-primary\"></span>'",
69            "$ xns" : "Roo.bootstrap",
70            "String icon" : "fa fa-user",
71            "items" : [
72             {
73              "listeners" : {
74               "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}"
75              },
76              "Boolean allowDomMove" : false,
77              "String cls" : "user-menu",
78              "xtype" : "Menu",
79              "$ xns" : "Roo.bootstrap",
80              "* prop" : "menu",
81              "items" : [
82               {
83                "String cls" : "user-body",
84                "Boolean preventDefault" : true,
85                "xtype" : "MenuItem",
86                "$ xns" : "Roo.bootstrap",
87                "Boolean isContainer" : true,
88                "items" : [
89                 {
90                  "xtype" : "Row",
91                  "$ xns" : "Roo.bootstrap",
92                  "items" : [
93                   {
94                    "Number md" : 9,
95                    "Number mdoff" : 3,
96                    "xtype" : "Column",
97                    "$ xns" : "Roo.bootstrap",
98                    "items" : [
99                     {
100                      "xtype" : "Row",
101                      "$ xns" : "Roo.bootstrap",
102                      "items" : [
103                       {
104                        "listeners" : {
105                         "render" : "function (_self)\n{\n \n    this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n    \n}"
106                        },
107                        "Number md" : 12,
108                        "xtype" : "Column",
109                        "$ xns" : "Roo.bootstrap",
110                        "String style" : "color:#333;text-align:right"
111                       },
112                       {
113                        "listeners" : {
114                         "render" : "function (_self)\n{\n   \n    this.el.dom.innerHTML = Pman.Login.authUser.email;\n    \n}"
115                        },
116                        "Number md" : 12,
117                        "xtype" : "Column",
118                        "$ xns" : "Roo.bootstrap",
119                        "String style" : "color:#333;text-align:right"
120                       }
121                      ]
122                     }
123                    ]
124                   }
125                  ]
126                 }
127                ]
128               },
129               {
130                "String cls" : "user-footer",
131                "Boolean preventDefault" : true,
132                "xtype" : "MenuItem",
133                "$ xns" : "Roo.bootstrap",
134                "Boolean isContainer" : true,
135                "items" : [
136                 {
137                  "xtype" : "Row",
138                  "$ xns" : "Roo.bootstrap",
139                  "items" : [
140                   {
141                    "Number md" : 6,
142                    "xtype" : "Column",
143                    "Number xs" : 6,
144                    "$ xns" : "Roo.bootstrap",
145                    "Number sm" : 6,
146                    "items" : [
147                     {
148                      "listeners" : {
149                       "click" : "function (e)\n{\n\n    var _self = this;\n    \n    Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {\n        Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n    });\n    \n}"
150                      },
151                      "xtype" : "Button",
152                      "string _change_passwd_success_body" : "Your password has been changed",
153                      "$ xns" : "Roo.bootstrap",
154                      "String html" : "Change Password",
155                      "String style" : "text-transform:none;",
156                      "string _change_passwd_success_title" : "Notice"
157                     }
158                    ]
159                   },
160                   {
161                    "Number md" : 6,
162                    "xtype" : "Column",
163                    "Number xs" : 6,
164                    "$ xns" : "Roo.bootstrap",
165                    "String style" : "text-align: right;",
166                    "Number sm" : 6,
167                    "items" : [
168                     {
169                      "listeners" : {
170                       "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}"
171                      },
172                      "xtype" : "Button",
173                      "$ xns" : "Roo.bootstrap",
174                      "String html" : "Logout",
175                      "String style" : "text-transform:none;"
176                     }
177                    ]
178                   }
179                  ]
180                 }
181                ]
182               }
183              ]
184             }
185            ]
186           }
187          ]
188         }
189        ]
190       }
191      ]
192     }
193    ]
194   }
195  ]
196 }