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.store.load({});
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',
211 sortinfo : { field : 'display_name', direction: 'ASC' },
213 beforeload : function (_self, o)
215 o.params = o.params || {};
219 load : function (_self, records, options)
221 _this.edit_btn.hide();
222 _this.delete_btn.hide();
230 url : baseURL + '/Roo/Core_ip_access.php',
235 xtype : 'JsonReader',
242 'name': 'created_dt',
244 'formatDate' : 'Y-m-d'
251 'name': 'authorized_by',
255 'name': 'authorized_by_name',
259 'name': 'authorized_by_email',
263 'name': 'authorized_key',
273 'formatDate' : 'Y-m-d'
276 'name': 'user_agent',
280 'name': 'updated_by',
284 'name': 'updated_by_name',
288 'name': 'updated_by_email',
295 totalProperty : 'total',
301 xtype : 'RowSelectionModel',
304 selectionchange : function (_self)
306 _this.edit_btn.hide();
307 _this.delete_btn.hide();
309 if (!this.getSelected()) {
313 _this.edit_btn.show();
314 _this.delete_btn.show();
318 xns : Roo.bootstrap.Table,
319 '|xns' : 'Roo.bootstrap.Table'
323 xtype : 'ColumnModel',
325 dataIndex : 'created_dt',
326 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
327 renderer : function(v,x,r) {
328 return String.format('{0}', v ? v.format('Y-m-d') : '');
336 xtype : 'ColumnModel',
339 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
340 renderer : function(v,x,r) {
341 return String.format('{0}', v ? v : '');
349 xtype : 'ColumnModel',
352 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
353 renderer : function(v,x,r)
355 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
363 xtype : 'ColumnModel',
365 dataIndex : 'authorized_by',
366 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
367 renderer : function(v,x,r)
373 return String.format('{0}', r.data.authorized_by_name);
381 xtype : 'ColumnModel',
383 dataIndex : 'status',
384 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
385 renderer : function(v,x,r)
389 var status = 'Pending';
399 status = 'Temporary';
405 return String.format('{0}', status);
414 xtype : 'ColumnModel',
416 dataIndex : 'expire_dt',
417 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
418 renderer : function(v,x,r) {
420 if(r.data.status * 1 != -2){
424 return String.format('{0}', v ? v.format('Y-m-d') : '');