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.CoreNotifyServers = new Roo.XComponent({
10 'ac659513b2353187192e88c5d1988228' :"Servers",
11 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
12 '2ddb157d4780e8883fbde96f354c57d2' :"Displaying Blacklists {0} - {1} of {2}",
13 'c348b06d2667edd048ded3c1b1878cc1' :"Recurrent Notifications",
14 '774ff60df30a64fad1d29f6c2daa8691' :"No Servers found",
15 '2023301a71db57f37d50da7d045b881a' :"Displaying Servers {0} - {1} of {2}",
16 'c5dd93dd1011986763b5925e0af25e08' :"No Blacklists found",
17 'f29ddbfb905eb2593fdcdfb243f9af85' :"Added",
18 'b26686c0a708faee42861d8b905e882e' :"Last Sent",
19 '1203cd27e4d1ab6f1296728c021d9c1a' :"Is Active",
20 'def36b726efed529b13ba240dd331a12' :"Pool",
21 'be6838286e448ad65c5b55d690e2c38b' :"In Queue",
22 '902b0d55fddef6f8d651fe1035b7d4bd' :"Error",
23 'eae639a70006feff484a39363c977e24' :"Domain",
24 'e3974584afa867d8619253bc669d6197' :"Notify Servers",
25 '825bd435c12978e8492330c2a0d823db' :"Helo",
26 '1063e38cb53d94d386f21227fcd84717' :"Remove",
27 'c8f4b8c435b3d99a66e1b91bec60737c' :"Hostname"
30 part : ["Admin", "CoreNotifyServers" ],
31 order : '900-Pman.Tab.CoreNotifyServers',
33 parent : 'Pman.Tab.AdminWatchNotify',
34 name : "Pman.Tab.CoreNotifyServers",
37 _tree : function(_data)
42 xtype : 'NestedLayoutPanel',
45 title : _this._strings['e3974584afa867d8619253bc669d6197'] /* Notify Servers */,
49 xtype : 'BorderLayout',
53 xtype : 'LayoutRegion',
58 xtype : 'LayoutRegion',
71 tableName : 'core_notify_server',
72 title : _this._strings['ac659513b2353187192e88c5d1988228'] /* Servers */,
74 activate : function() {
77 _this.sgrid.footer.onClick('first');
85 autoExpandColumn : 'hostname',
91 //_this.dialog = Pman.Dialog.FILL_IN
92 if (_this.spanel.active) {
93 this.footer.onClick('first');
96 rowclick : function (_self, rowIndex, e)
99 _this.bgrid.footer.onClick('first');
102 rowdblclick : function (_self, rowIndex, e)
105 Pman.Dialog.CoreNotifyServer.show(
106 this.getDataSource().getAt(rowIndex).data, function() {
107 _this.sgrid.footer.onClick('first');
114 xtype : 'PagingToolbar',
116 displayMsg : _this._strings['2023301a71db57f37d50da7d045b881a'] /* Displaying Servers {0} - {1} of {2} */,
117 emptyMsg : _this._strings['774ff60df30a64fad1d29f6c2daa8691'] /* No Servers found */,
129 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
133 Pman.Dialog.CoreNotifyServer.show(
135 _this.sgrid.footer.onClick('first');
140 '|xns' : 'Roo.Toolbar'
145 '|xns' : 'Roo.Toolbar'
149 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
151 click : function (_self, e)
153 Pman.genericDelete(_this.spanel, 'core_notify_server');
157 '|xns' : 'Roo.Toolbar'
164 sortInfo : { field : 'hostname', direction: 'ASC' },
166 beforeload : function (_self, options)
168 options.params._with_queue_size =1 ;
177 url : baseURL + '/Roo/core_notify_server',
182 xtype : 'JsonReader',
185 totalProperty : 'total',
192 xtype : 'ColumnModel',
193 dataIndex : 'is_active',
194 header : _this._strings['1203cd27e4d1ab6f1296728c021d9c1a'] /* Is Active */,
195 renderer : function(v) {
196 var state = v> 0 ? '-checked' : '';
198 return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
205 xtype : 'ColumnModel',
206 dataIndex : 'hostname',
207 header : _this._strings['c8f4b8c435b3d99a66e1b91bec60737c'] /* Hostname */,
213 xtype : 'ColumnModel',
215 header : _this._strings['825bd435c12978e8492330c2a0d823db'] /* Helo */,
221 xtype : 'ColumnModel',
222 dataIndex : 'poolname',
223 header : _this._strings['def36b726efed529b13ba240dd331a12'] /* Pool */,
229 xtype : 'ColumnModel',
230 dataIndex : 'in_queue',
231 header : _this._strings['be6838286e448ad65c5b55d690e2c38b'] /* In Queue */,
232 renderer : function(v,x,r) {
234 return r.data.in_queue || 0;
241 xtype : 'ColumnModel',
242 dataIndex : 'last_send',
243 header : _this._strings['b26686c0a708faee42861d8b905e882e'] /* Last Sent */,
244 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
258 tableName : 'core_notify_recur',
259 title : _this._strings['c348b06d2667edd048ded3c1b1878cc1'] /* Recurrent Notifications */,
261 activate : function() {
270 autoExpandColumn : 'error_msg',
276 //_this.dialog = Pman.Dialog.FILL_IN
283 xtype : 'PagingToolbar',
285 displayMsg : _this._strings['2ddb157d4780e8883fbde96f354c57d2'] /* Displaying Blacklists {0} - {1} of {2} */,
286 emptyMsg : _this._strings['c5dd93dd1011986763b5925e0af25e08'] /* No Blacklists found */,
299 '|xns' : 'Roo.Toolbar'
303 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
305 '|xns' : 'Roo.Toolbar'
312 sortInfo : { field : 'person_id_name', direction: 'ASC' },
314 beforeload : function (_self, opts)
316 if(!_this.sgrid.getSelectionModel().getSelected()) {
320 opts.params.server_id = _this.sgrid.getSelectionModel().getSelected().data.id;
328 url : baseURL + '/Roo/core_notify_blacklist',
333 xtype : 'JsonReader',
336 totalProperty : 'total',
343 xtype : 'ColumnModel',
344 dataIndex : 'added_dt',
345 header : _this._strings['f29ddbfb905eb2593fdcdfb243f9af85'] /* Added */,
346 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
352 xtype : 'ColumnModel',
353 dataIndex : 'domain_id_domain',
354 header : _this._strings['eae639a70006feff484a39363c977e24'] /* Domain */,
360 xtype : 'ColumnModel',
361 dataIndex : 'error_str',
362 header : _this._strings['902b0d55fddef6f8d651fe1035b7d4bd'] /* Error */,