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 'fc6f97505d89fe9277965c126744647a' :"No Companies found",
15 '11e8622b4aa4b1924aee81a9ec54c555' :"Create Date",
16 'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
17 '155ca6a755e25c15ad7ce45e2f638f10' :"Displaying Companies{0} - {1} of {2}",
18 '5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
19 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
20 'e3030abfa75de4573fb37032affa11e7' :"IP Access"
23 part : ["BAdmin", "IPAccess" ],
24 order : '006-Pman.Tab.BAdminIPAccess',
26 parent : 'Pman.Tab.BAdmin',
27 name : "unnamed module",
30 _tree : function(_data)
37 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
38 xns : Roo.bootstrap.panel,
39 '|xns' : 'Roo.bootstrap.panel',
42 xns : Roo.bootstrap.layout,
43 '|xns' : 'Roo.bootstrap.layout',
47 xns : Roo.bootstrap.layout,
48 '|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.table.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'
182 render : function (_self)
186 rowclick : function (_self, el, rowIndex, e)
190 _this.edit_btn.hide();
191 _this.delete_btn.hide();
193 var s = _this.table.getSelectionModel().getSelected();
195 if (!s || s.data.id * 1 < 1) {
199 _this.edit_btn.show();
200 _this.delete_btn.show();
205 rowdblclick : function (_self, el, rowIndex, e)
207 var s = _this.table.store.getAt(rowIndex);
209 if(!s || s.data.id * 1 < 1){
213 Pman.Dialog.BAdminCompany.show({
217 _this.table.footer.onClick('refresh');
223 '|xns' : 'Roo.bootstrap',
225 xtype : 'PagingToolbar',
227 displayMsg : _this._strings['155ca6a755e25c15ad7ce45e2f638f10'] /* Displaying Companies{0} - {1} of {2} */,
228 emptyMsg : _this._strings['fc6f97505d89fe9277965c126744647a'] /* No Companies found */,
232 '|xns' : 'Roo.bootstrap'
237 sortinfo : { field : 'display_name', direction: 'ASC' },
239 beforeload : function (_self, o)
241 o.params = o.params || {};
245 load : function (_self, records, options)
247 _this.edit_btn.hide();
248 _this.delete_btn.hide();
256 url : baseURL + '/Roo/Core_ip_access.php',
261 xtype : 'JsonReader',
268 'name': 'created_dt',
270 'formatDate' : 'Y-m-d'
277 'name': 'authorized_by',
281 'name': 'authorized_by_name',
285 'name': 'authorized_by_email',
289 'name': 'authorized_key',
299 'formatDate' : 'Y-m-d'
302 'name': 'user_agent',
306 'name': 'updated_by',
310 'name': 'updated_by_name',
314 'name': 'updated_by_email',
321 totalProperty : 'total',
327 xtype : 'RowSelectionModel',
330 selectionchange : function (_self)
332 _this.edit_btn.hide();
333 _this.delete_btn.hide();
335 if (!this.getSelected()) {
339 _this.edit_btn.show();
340 _this.delete_btn.show();
344 xns : Roo.bootstrap.Table,
345 '|xns' : 'Roo.bootstrap.Table'
349 xtype : 'ColumnModel',
351 dataIndex : 'created_dt',
352 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
353 renderer : function(v,x,r) {
354 return String.format('{0}', v ? v.format('Y-m-d') : '');
362 xtype : 'ColumnModel',
365 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
366 renderer : function(v,x,r) {
367 return String.format('{0}', v ? v : '');
375 xtype : 'ColumnModel',
378 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
379 renderer : function(v,x,r)
381 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
389 xtype : 'ColumnModel',
391 dataIndex : 'authorized_by',
392 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
393 renderer : function(v,x,r)
399 return String.format('{0}', r.data.authorized_by_name);
407 xtype : 'ColumnModel',
409 dataIndex : 'status',
410 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
411 renderer : function(v,x,r)
415 var status = 'Pending';
425 status = 'Temporary';
431 return String.format('{0}', status);
440 xtype : 'ColumnModel',
442 dataIndex : 'expire_dt',
443 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
444 renderer : function(v,x,r) {
446 if(r.data.status * 1 != -2){
450 return String.format('{0}', v ? v.format('Y-m-d') : '');