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',
207 xtype : 'PagingToolbar',
212 render : function (_self)
218 '|xns' : 'Roo.bootstrap'
223 sortinfo : { field : 'display_name', direction: 'ASC' },
225 beforeload : function (_self, o)
227 o.params = o.params || {};
231 load : function (_self, records, options)
233 _this.edit_btn.hide();
234 _this.delete_btn.hide();
242 url : baseURL + '/Roo/Core_ip_access.php',
247 xtype : 'JsonReader',
254 'name': 'created_dt',
256 'formatDate' : 'Y-m-d'
263 'name': 'authorized_by',
267 'name': 'authorized_by_name',
271 'name': 'authorized_by_email',
275 'name': 'authorized_key',
285 'formatDate' : 'Y-m-d'
288 'name': 'user_agent',
292 'name': 'updated_by',
296 'name': 'updated_by_name',
300 'name': 'updated_by_email',
307 totalProperty : 'total',
313 xtype : 'RowSelectionModel',
316 selectionchange : function (_self)
318 _this.edit_btn.hide();
319 _this.delete_btn.hide();
321 if (!this.getSelected()) {
325 _this.edit_btn.show();
326 _this.delete_btn.show();
330 xns : Roo.bootstrap.Table,
331 '|xns' : 'Roo.bootstrap.Table'
335 xtype : 'ColumnModel',
337 dataIndex : 'created_dt',
338 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
339 renderer : function(v,x,r) {
340 return String.format('{0}', v ? v.format('Y-m-d') : '');
348 xtype : 'ColumnModel',
351 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
352 renderer : function(v,x,r) {
353 return String.format('{0}', v ? v : '');
361 xtype : 'ColumnModel',
364 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
365 renderer : function(v,x,r)
367 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
375 xtype : 'ColumnModel',
377 dataIndex : 'authorized_by',
378 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
379 renderer : function(v,x,r)
385 return String.format('{0}', r.data.authorized_by_name);
393 xtype : 'ColumnModel',
395 dataIndex : 'status',
396 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
397 renderer : function(v,x,r)
401 var status = 'Pending';
411 status = 'Temporary';
417 return String.format('{0}', status);
426 xtype : 'ColumnModel',
428 dataIndex : 'expire_dt',
429 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
430 renderer : function(v,x,r) {
432 if(r.data.status * 1 != -2){
436 return String.format('{0}', v ? v.format('Y-m-d') : '');