2 "name" : "Pman.Tab.BAdminIPAccess",
3 "parent" : "Pman.Tab.BAdmin",
5 "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminIPAccess.bjs",
9 "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10 "86f16ddf147752b95ffe69e2dfa769a1" : "Authorized By",
11 "ec53a8c4f07baed5d8825072c89799be" : "Status",
12 "7dce122004969d56ae2e0245cb754d35" : "Edit",
13 "fc6f97505d89fe9277965c126744647a" : "No Companies found",
14 "11e8622b4aa4b1924aee81a9ec54c555" : "Create Date",
15 "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
16 "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
17 "5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
18 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
19 "e3030abfa75de4573fb37032affa11e7" : "IP Access"
24 "$ xns" : "Roo.bootstrap.panel",
25 "String title" : "IP Access",
26 "Boolean background" : true,
30 "$ xns" : "Roo.bootstrap.layout",
34 "String tabPosition" : "top",
36 "$ xns" : "Roo.bootstrap.layout",
41 "activate" : "function (_self)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n \n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n}",
42 "render" : "function (_self)\n{\n _this.grid = _self;\n}"
45 "Boolean fitToFrame" : true,
46 "$ xns" : "Roo.bootstrap.panel",
47 "String region" : "center",
48 "String title" : "IP Access",
49 "Boolean closable" : false,
52 "xtype" : "NavSimplebar",
53 "$ xns" : "Roo.bootstrap",
58 "$ xns" : "Roo.bootstrap",
62 "$ xns" : "Roo.bootstrap",
66 "$ xns" : "Roo.bootstrap",
69 "String cls" : "roo-toolbar",
71 "$ xns" : "Roo.bootstrap",
76 "$ xns" : "Roo.bootstrap",
80 "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
81 "click" : "function (_self, e)\n{\n var sel = _this.option_grid.getSelectionModel().getSelected();\n \n if(!sel || sel.data.id * 1 < 1){\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');\n return;\n }\n\n Pman.Dialog.BAdminIPAccess.show({ \n id : sel.data.id\n }, function(res) {\n _this.option_grid.store.load({});\n });\n\n}"
83 "String cls" : "roo-toolbar-button",
84 "String weight" : "default",
86 "$ xns" : "Roo.bootstrap",
87 "String html" : "Edit",
88 "String glyphicon" : "edit"
92 "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
93 "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.panel, 'core_ip_access'); \n\n}"
95 "String cls" : "roo-toolbar-button",
96 "String weight" : "primary",
98 "$ xns" : "Roo.bootstrap",
99 "String html" : "Delete",
100 "String glyphicon" : "trash"
116 "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n var s = _this.table.store.getAt(rowIndex);\n \n if(!s || s.data.id * 1 < 1){\n return;\n }\n \n Pman.Dialog.BAdminCompany.show({\n id : s.data.id\n }, function() {\n if (_this.table) {\n _this.table.footer.onClick('refresh');\n }\n });\n}",
117 "render" : "function (_self)\n{\n _this.table = this;\n}"
119 "String cls" : "table-fixed",
120 "boolean hover" : true,
121 "boolean striped" : false,
123 "boolean responsive" : true,
124 "Boolean rowSelection" : true,
125 "$ xns" : "Roo.bootstrap",
126 "Boolean loadMask" : true,
131 "selectionchange" : "function (_self)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n \n if (!this.getSelected()) {\n return;\n }\n \n _this.edit_btn.show();\n _this.delete_btn.show();\n \n}"
133 "Boolean singleSelect" : true,
134 "xtype" : "RowSelectionModel",
135 "$ xns" : "Roo.bootstrap.Table",
140 "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n \n}",
141 "load" : "function (_self, records, options)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n}"
144 "boolean remoteSort" : true,
145 "$ xns" : "Roo.data",
146 "$ sortinfo" : "{ field : 'display_name', direction: 'ASC' }",
150 "$ Array fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'created_dt',\n 'type': 'date',\n 'formatDate' : 'Y-m-d'\n },\n {\n 'name': 'status',\n 'type': 'int'\n },\n {\n 'name': 'authorized_by',\n 'type': 'int'\n },\n {\n 'name': 'authorized_by_name',\n 'type': 'string'\n },\n {\n 'name': 'authorized_by_email',\n 'type': 'string'\n },\n {\n 'name': 'authorized_key',\n 'type': 'string'\n },\n {\n 'name': 'email',\n 'type': 'string'\n },\n {\n 'name': 'expire_dt',\n 'type': 'date',\n 'formatDate' : 'Y-m-d'\n },\n {\n 'name': 'user_agent',\n 'type': 'string'\n },\n {\n 'name': 'updated_by',\n 'type': 'int'\n },\n {\n 'name': 'updated_by_name',\n 'type': 'string'\n },\n {\n 'name': 'updated_by_email',\n 'type': 'string'\n }\n \n]",
151 "xtype" : "JsonReader",
152 "String root" : "data",
153 "$ xns" : "Roo.data",
156 "String totalProperty" : "total"
159 "$ url" : "baseURL + '/Roo/Core_ip_access.php'",
160 "xtype" : "HttpProxy",
161 "$ xns" : "Roo.data",
162 "String method" : "GET",
168 "String header" : "Create Date",
169 "String cursor" : "pointer",
170 "String dataIndex" : "created_dt",
171 "xtype" : "ColumnModel",
173 "$ xns" : "Roo.grid",
174 "$ renderer" : "function(v,x,r) { \n return String.format('{0}', v ? v.format('Y-m-d') : '');\n}",
175 "Boolean sortable" : true,
179 "String header" : "IP",
180 "String cursor" : "pointer",
181 "String dataIndex" : "ip",
182 "xtype" : "ColumnModel",
184 "$ xns" : "Roo.grid",
185 "$ renderer" : "function(v,x,r) { \n return String.format('{0}', v ? v : '');\n}",
186 "Boolean sortable" : true,
190 "String header" : "Email",
191 "String cursor" : "pointer",
192 "String dataIndex" : "email",
193 "xtype" : "ColumnModel",
195 "$ xns" : "Roo.grid",
196 "$ renderer" : "function(v,x,r) \n{ \n return String.format('<a href=\"mailto:{0}\">{0}</a>', v ? v : '')\n}",
197 "Boolean sortable" : true,
201 "String header" : "Authorized By",
202 "String cursor" : "pointer",
203 "String dataIndex" : "authorized_by",
204 "xtype" : "ColumnModel",
206 "$ xns" : "Roo.grid",
207 "$ renderer" : "function(v,x,r) \n{ \n if(v * 1 == 0){\n return '';\n }\n \n return String.format('{0}', r.data.authorized_by_name);\n}",
208 "Boolean sortable" : true,
212 "String header" : "Status",
213 "String cursor" : "pointer",
214 "String dataIndex" : "status",
215 "xtype" : "ColumnModel",
217 "$ xns" : "Roo.grid",
218 "$ renderer" : "function(v,x,r) \n{\n v = v * 1;\n \n var status = 'Pending';\n \n switch (v) {\n case 1 :\n status = 'Approve';\n break;\n case -1 :\n status = 'Reject';\n break;\n case -2 :\n status = 'Temporary';\n break;\n default : \n break;\n }\n \n return String.format('{0}', status);\n \n}",
219 "Boolean sortable" : true,
223 "String header" : "Expire Date",
224 "String cursor" : "pointer",
225 "String dataIndex" : "expire_dt",
226 "xtype" : "ColumnModel",
228 "$ xns" : "Roo.grid",
229 "$ renderer" : "function(v,x,r) { \n \n if(r.data.status * 1 != -2){\n return '';\n }\n \n return String.format('{0}', v ? v.format('Y-m-d') : '');\n}",
230 "Boolean sortable" : true,
234 "Number pageSize" : 25,
235 "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
236 "Boolean displayInfo" : false,
237 "xtype" : "PagingToolbar",
238 "String emptyMsg" : "No Companies found",
239 "$ xns" : "Roo.bootstrap",
241 "string name" : "footer"