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 '5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
17 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
18 'e3030abfa75de4573fb37032affa11e7' :"IP Access"
21 part : ["BAdmin", "IPAccess" ],
22 order : '006-Pman.Tab.BAdminIPAccess',
24 parent : 'Pman.Tab.BAdmin',
25 name : "unnamed module",
28 _tree : function(_data)
35 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
36 xns : Roo.bootstrap.panel,
37 '|xns' : 'Roo.bootstrap.panel',
40 xns : Roo.bootstrap.layout,
41 '|xns' : 'Roo.bootstrap.layout',
46 xns : Roo.bootstrap.layout,
47 '|xns' : 'Roo.bootstrap.layout'
56 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
58 activate : function (_self)
60 _this.edit_btn.hide();
61 _this.delete_btn.hide();
64 //_this.grid.footer.onClick('first');
67 render : function (_self)
72 xns : Roo.bootstrap.panel,
73 '|xns' : 'Roo.bootstrap.panel',
75 xtype : 'NavSimplebar',
77 '|xns' : 'Roo.bootstrap',
82 '|xns' : 'Roo.bootstrap',
87 '|xns' : 'Roo.bootstrap',
92 '|xns' : 'Roo.bootstrap',
98 '|xns' : 'Roo.bootstrap',
104 '|xns' : 'Roo.bootstrap',
108 cls : 'roo-toolbar-button',
110 html : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
113 click : function (_self, e)
115 var sel = _this.option_grid.getSelectionModel().getSelected();
117 if(!sel || sel.data.id * 1 < 1){
118 Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');
122 Pman.Dialog.BAdminCoreEnum.show({
125 _this.option_grid.store.load({});
129 render : function (_self)
131 _this.edit_btn = this;
137 '|xns' : 'Roo.bootstrap'
141 cls : 'roo-toolbar-button',
143 html : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
146 click : function (_self, e)
148 Pman.genericDelete(_this.panel, 'core_ip_access');
151 render : function (_self)
153 _this.delete_btn = this;
159 '|xns' : 'Roo.bootstrap'
175 cellSelection : true,
184 render : function (_self)
188 rowdblclick : function (_self, el, rowIndex, e)
190 var sel = _this.option_grid.store.getAt(rowIndex);
192 if(!sel || sel.data.id * 1 < 1){
196 Pman.Dialog.BAdminCoreEnum.show({
199 _this.option_grid.store.load({});
205 '|xns' : 'Roo.bootstrap',
209 sortinfo : { field : 'display_name', direction: 'ASC' },
211 beforeload : function (_self, o)
213 o.params = o.params || {};
217 load : function (_self, records, options)
219 _this.edit_btn.hide();
220 _this.delete_btn.hide();
228 url : baseURL + '/Roo/Core_ip_access.php',
233 xtype : 'JsonReader',
240 'name': 'created_dt',
242 'formatDate' : 'Y-m-d'
249 'name': 'authorized_by',
253 'name': 'authorized_by_name',
257 'name': 'authorized_by_email',
261 'name': 'authorized_key',
271 'formatDate' : 'Y-m-d'
274 'name': 'user_agent',
278 'name': 'updated_by',
282 'name': 'updated_by_name',
286 'name': 'updated_by_email',
293 totalProperty : 'total',
299 xtype : 'RowSelectionModel',
302 selectionchange : function (_self)
304 _this.edit_btn.hide();
305 _this.delete_btn.hide();
307 if (!this.getSelected()) {
311 _this.edit_btn.show();
312 _this.delete_btn.show();
316 xns : Roo.bootstrap.Table,
317 '|xns' : 'Roo.bootstrap.Table'
321 xtype : 'ColumnModel',
323 dataIndex : 'created_dt',
324 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
325 renderer : function(v,x,r) {
326 return String.format('{0}', v ? v.format('Y-m-d') : '');
334 xtype : 'ColumnModel',
337 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
338 renderer : function(v,x,r) {
339 return String.format('{0}', v ? v : '');
347 xtype : 'ColumnModel',
350 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
351 renderer : function(v,x,r)
353 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
361 xtype : 'ColumnModel',
363 dataIndex : 'authorized_by',
364 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
365 renderer : function(v,x,r)
371 return String.format('{0}', r.data.authorized_by_name);
379 xtype : 'ColumnModel',
381 dataIndex : 'status',
382 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
383 renderer : function(v,x,r)
387 var status = 'Pending';
397 status = 'Temporary';
403 return String.format('{0}', status);
412 xtype : 'ColumnModel',
414 dataIndex : 'expire_dt',
415 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
416 renderer : function(v,x,r) {
418 if(r.data.status * 1 != -2){
422 return String.format('{0}', v ? v.format('Y-m-d') : '');