1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Tab');
7 Pman.Tab.BAdminIPAccess = new Roo.XComponent({
10 'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
11 '86f16ddf147752b95ffe69e2dfa769a1' :"Authorized By",
12 'ec53a8c4f07baed5d8825072c89799be' :"Status",
13 '7dce122004969d56ae2e0245cb754d35' :"Edit",
14 '11e8622b4aa4b1924aee81a9ec54c555' :"Create Date",
15 'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
16 'dae8ace18bdcbcc6ae5aece263e14fe8' :"Options",
17 '5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
18 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
19 'e3030abfa75de4573fb37032affa11e7' :"IP Access"
22 part : ["BAdmin", "IPAccess" ],
23 order : '006-Pman.Tab.BAdminIPAccess',
25 parent : 'Pman.Tab.BAdmin',
26 name : "unnamed module",
29 _tree : function(_data)
36 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
37 xns : Roo.bootstrap.panel,
38 '|xns' : 'Roo.bootstrap.panel',
41 xns : Roo.bootstrap.layout,
42 '|xns' : 'Roo.bootstrap.layout',
47 xns : Roo.bootstrap.layout,
48 '|xns' : 'Roo.bootstrap.layout'
57 title : _this._strings['dae8ace18bdcbcc6ae5aece263e14fe8'] /* Options */,
59 activate : function (_self)
61 _this.edit_btn.hide();
62 _this.delete_btn.hide();
65 _this.grid.footer.onClick('first');
68 render : function (_self)
73 xns : Roo.bootstrap.panel,
74 '|xns' : 'Roo.bootstrap.panel',
76 xtype : 'NavSimplebar',
78 '|xns' : 'Roo.bootstrap',
83 '|xns' : 'Roo.bootstrap',
88 '|xns' : 'Roo.bootstrap',
93 '|xns' : 'Roo.bootstrap',
99 '|xns' : 'Roo.bootstrap',
105 '|xns' : 'Roo.bootstrap',
109 cls : 'roo-toolbar-button',
111 html : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
114 click : function (_self, e)
116 var sel = _this.option_grid.getSelectionModel().getSelected();
118 if(!sel || sel.data.id * 1 < 1){
119 Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');
123 Pman.Dialog.BAdminCoreEnum.show({
126 _this.option_grid.store.load({});
130 render : function (_self)
132 _this.edit_btn = this;
138 '|xns' : 'Roo.bootstrap'
142 cls : 'roo-toolbar-button',
144 html : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
147 click : function (_self, e)
149 Pman.genericDelete(_this.panel, 'core_ip_access');
152 render : function (_self)
154 _this.delete_btn = this;
160 '|xns' : 'Roo.bootstrap'
176 cellSelection : true,
185 render : function (_self)
190 rowdblclick : function (_self, el, rowIndex, e)
192 var sel = _this.option_grid.store.getAt(rowIndex);
194 if(!sel || sel.data.id * 1 < 1){
198 Pman.Dialog.BAdminCoreEnum.show({
201 _this.option_grid.store.load({});
207 '|xns' : 'Roo.bootstrap',
209 xtype : 'PagingToolbar',
214 '|xns' : 'Roo.bootstrap'
219 sortinfo : { field : 'display_name', direction: 'ASC' },
221 beforeload : function (_self, o)
223 o.params = o.params || {};
227 load : function (_self, records, options)
229 _this.edit_btn.hide();
230 _this.delete_btn.hide();
238 url : baseURL + '/Roo/Core_ip_access.php',
243 xtype : 'JsonReader',
250 'name': 'created_dt',
252 'formatDate' : 'Y-m-d'
259 'name': 'authorized_by',
263 'name': 'authorized_by_name',
267 'name': 'authorized_by_email',
271 'name': 'authorized_key',
281 'formatDate' : 'Y-m-d'
284 'name': 'user_agent',
288 'name': 'updated_by',
292 'name': 'updated_by_name',
296 'name': 'updated_by_email',
303 totalProperty : 'total',
309 xtype : 'RowSelectionModel',
312 selectionchange : function (_self)
314 _this.edit_btn.hide();
315 _this.delete_btn.hide();
317 if (!this.getSelected()) {
321 _this.edit_btn.show();
322 _this.delete_btn.show();
326 xns : Roo.bootstrap.Table,
327 '|xns' : 'Roo.bootstrap.Table'
331 xtype : 'ColumnModel',
333 dataIndex : 'created_dt',
334 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
335 renderer : function(v,x,r) {
336 return String.format('{0}', v ? v.format('Y-m-d') : '');
344 xtype : 'ColumnModel',
347 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
348 renderer : function(v,x,r) {
349 return String.format('{0}', v ? v : '');
357 xtype : 'ColumnModel',
360 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
361 renderer : function(v,x,r)
363 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
371 xtype : 'ColumnModel',
373 dataIndex : 'authorized_by',
374 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
375 renderer : function(v,x,r)
381 return String.format('{0}', r.data.authorized_by_name);
389 xtype : 'ColumnModel',
391 dataIndex : 'status',
392 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
393 renderer : function(v,x,r)
397 var status = 'Pending';
407 status = 'Temporary';
413 return String.format('{0}', status);
422 xtype : 'ColumnModel',
424 dataIndex : 'expire_dt',
425 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
426 renderer : function(v,x,r) {
428 if(r.data.status * 1 != -2){
432 return String.format('{0}', v ? v.format('Y-m-d') : '');