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 'footer_displayMsg' : '155ca6a755e25c15ad7ce45e2f638f10' /* Displaying Companies{0} - {1} of {2} */ ,
24 'footer_emptyMsg' : 'fc6f97505d89fe9277965c126744647a' /* No Companies found */
27 part : ["BAdmin", "IPAccess" ],
28 order : '006-Pman.Tab.BAdminIPAccess',
30 parent : 'Pman.Tab.BAdmin',
31 name : "unnamed module",
34 _tree : function(_data)
41 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
42 xns : Roo.bootstrap.panel,
43 '|xns' : 'Roo.bootstrap.panel',
46 xns : Roo.bootstrap.layout,
47 '|xns' : 'Roo.bootstrap.layout',
52 xns : Roo.bootstrap.layout,
53 '|xns' : 'Roo.bootstrap.layout'
61 title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
63 activate : function (_self)
65 _this.edit_btn.hide();
66 _this.delete_btn.hide();
69 _this.table.footer.onClick('first');
72 render : function (_self)
77 xns : Roo.bootstrap.panel,
78 '|xns' : 'Roo.bootstrap.panel',
80 xtype : 'NavSimplebar',
82 '|xns' : 'Roo.bootstrap',
87 '|xns' : 'Roo.bootstrap',
92 '|xns' : 'Roo.bootstrap',
97 '|xns' : 'Roo.bootstrap',
103 '|xns' : 'Roo.bootstrap',
109 '|xns' : 'Roo.bootstrap',
114 displayField : 'value',
116 hiddenName : 'status',
118 name : 'status_name',
119 tpl : '<div class=\"roo-select2-result\"><b>{value}</b></div>',
120 triggerAction : 'all',
123 render : function (_self)
129 select : function (combo, record, index)
131 _this.table.footer.onClick('first');
135 '|xns' : 'Roo.bootstrap',
137 xtype : 'SimpleStore',
144 fields : [ 'code', 'value' ],
154 style : 'text-align: right;',
156 '|xns' : 'Roo.bootstrap',
160 cls : 'roo-toolbar-button',
162 html : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
165 click : function (_self, e)
167 var sel = _this.table.getSelectionModel().getSelected();
169 if(!sel || sel.data.id * 1 < 1){
170 Roo.bootstrap.MessageBox.alert('Error', 'Please select a row');
174 Pman.Dialog.BAdminIPAccess.show({
177 _this.table.store.load({});
181 render : function (_self)
183 _this.edit_btn = this;
189 '|xns' : 'Roo.bootstrap'
193 cls : 'roo-toolbar-button',
195 html : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
198 click : function (_self, e)
200 Pman.genericDelete(_this.grid, 'core_ip_access');
203 render : function (_self)
205 _this.delete_btn = this;
211 '|xns' : 'Roo.bootstrap'
233 render : function (_self)
237 rowdblclick : function (_self, el, rowIndex, e)
239 var s = _this.table.store.getAt(rowIndex);
241 if(!s || s.data.id * 1 < 1){
245 Pman.Dialog.BAdminIPAccess.show({
248 _this.table.footer.onClick('first');
253 '|xns' : 'Roo.bootstrap',
255 xtype : 'PagingToolbar',
257 displayMsg : _this._strings['155ca6a755e25c15ad7ce45e2f638f10'] /* Displaying Companies{0} - {1} of {2} */,
258 emptyMsg : _this._strings['fc6f97505d89fe9277965c126744647a'] /* No Companies found */,
262 '|xns' : 'Roo.bootstrap'
267 sortInfo : { field : 'display_name', direction: 'ASC' },
269 beforeload : function (_self, o)
271 if (!Pman.buildCompleted) {
275 o.params = o.params || {};
277 var status = _this.status.getValue() * 1;
279 o.params.status = status;
282 load : function (_self, records, options)
284 _this.edit_btn.hide();
285 _this.delete_btn.hide();
293 url : baseURL + '/Roo/Core_ip_access.php',
298 xtype : 'JsonReader',
305 'name': 'created_dt',
307 'formatDate' : 'Y-m-d'
314 'name': 'authorized_by',
318 'name': 'authorized_by_name',
322 'name': 'authorized_by_email',
326 'name': 'authorized_key',
336 'formatDate' : 'Y-m-d'
339 'name': 'user_agent',
343 'name': 'updated_by',
347 'name': 'updated_by_name',
351 'name': 'updated_by_email',
358 totalProperty : 'total',
364 xtype : 'RowSelectionModel',
367 selectionchange : function (_self)
369 _this.edit_btn.hide();
370 _this.delete_btn.hide();
372 if (!this.getSelected()) {
376 _this.edit_btn.show();
377 _this.delete_btn.show();
381 xns : Roo.bootstrap.Table,
382 '|xns' : 'Roo.bootstrap.Table'
386 xtype : 'ColumnModel',
388 dataIndex : 'created_dt',
389 header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
390 renderer : function(v,x,r) {
391 return String.format('{0}', v ? v.format('Y-m-d') : '');
399 xtype : 'ColumnModel',
402 header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
403 renderer : function(v,x,r) {
404 return String.format('{0}', v ? v : '');
412 xtype : 'ColumnModel',
415 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
416 renderer : function(v,x,r)
418 return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
426 xtype : 'ColumnModel',
428 dataIndex : 'authorized_by',
429 header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
430 renderer : function(v,x,r)
436 return String.format('{0}', r.data.authorized_by_name);
444 xtype : 'ColumnModel',
446 dataIndex : 'status',
447 header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
448 renderer : function(v,x,r)
452 var status = 'Pending';
462 status = 'Temporary';
468 return String.format('{0}', status);
477 xtype : 'ColumnModel',
479 dataIndex : 'expire_dt',
480 header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
481 renderer : function(v,x,r) {
483 if(r.data.status * 1 != -2){
487 return String.format('{0}', v ? v.format('Y-m-d') : '');