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.AdminNotifySender = new Roo.XComponent({
10 'ed93b54403043468c325323b79c676e2' :"Senders",
11 'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
12 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
13 '2ddb157d4780e8883fbde96f354c57d2' :"Displaying Blacklists {0} - {1} of {2}",
14 'c348b06d2667edd048ded3c1b1878cc1' :"Recurrent Notifications",
15 '774ff60df30a64fad1d29f6c2daa8691' :"No Servers found",
16 '2023301a71db57f37d50da7d045b881a' :"Displaying Servers {0} - {1} of {2}",
17 'c5dd93dd1011986763b5925e0af25e08' :"No Blacklists found",
18 'f29ddbfb905eb2593fdcdfb243f9af85' :"Added",
19 'b26686c0a708faee42861d8b905e882e' :"Last Sent",
20 '1203cd27e4d1ab6f1296728c021d9c1a' :"Is Active",
21 'def36b726efed529b13ba240dd331a12' :"Pool",
22 'be6838286e448ad65c5b55d690e2c38b' :"In Queue",
23 '902b0d55fddef6f8d651fe1035b7d4bd' :"Error",
24 'eae639a70006feff484a39363c977e24' :"Domain",
25 'f8981aa743c09c2778adafe34ba52d62' :"Notify Senders",
26 '1063e38cb53d94d386f21227fcd84717' :"Remove"
29 part : ["Admin", "NotifySender" ],
30 order : '910-Pman.Tab.AdminNotifySender',
32 parent : 'Pman.Tab.AdminWatchNotify',
33 name : "unnamed module",
36 _tree : function(_data)
41 xtype : 'NestedLayoutPanel',
44 title : _this._strings['f8981aa743c09c2778adafe34ba52d62'] /* Notify Senders */,
48 xtype : 'BorderLayout',
52 xtype : 'LayoutRegion',
57 xtype : 'LayoutRegion',
70 tableName : 'core_notify_sender',
71 title : _this._strings['ed93b54403043468c325323b79c676e2'] /* Senders */,
73 activate : function() {
76 _this.sgrid.footer.onClick('first');
84 autoExpandColumn : 'email',
90 //_this.dialog = Pman.Dialog.FILL_IN
91 if (_this.spanel.active) {
92 this.footer.onClick('first');
95 rowclick : function (_self, rowIndex, e)
98 _this.bgrid.footer.onClick('first');
101 rowdblclick : function (_self, rowIndex, e)
104 Pman.Dialog.AdminNotifySender.show(
105 this.getDataSource().getAt(rowIndex).data, function() {
106 _this.sgrid.footer.onClick('first');
113 xtype : 'PagingToolbar',
115 displayMsg : _this._strings['2023301a71db57f37d50da7d045b881a'] /* Displaying Servers {0} - {1} of {2} */,
116 emptyMsg : _this._strings['774ff60df30a64fad1d29f6c2daa8691'] /* No Servers found */,
128 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
132 Pman.Dialog.AdminNotifySender.show(
134 _this.sgrid.footer.onClick('first');
139 '|xns' : 'Roo.Toolbar'
144 '|xns' : 'Roo.Toolbar'
148 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
150 click : function (_self, e)
152 Pman.genericDelete(_this.spanel, 'core_notify_sender');
156 '|xns' : 'Roo.Toolbar'
163 sortInfo : { field : 'email', direction: 'ASC' },
165 beforeload : function (_self, options)
167 options.params._with_queue_size =1 ;
176 url : baseURL + '/Roo/core_notify_sender',
181 xtype : 'JsonReader',
184 totalProperty : 'total',
191 xtype : 'ColumnModel',
192 dataIndex : 'is_active',
193 header : _this._strings['1203cd27e4d1ab6f1296728c021d9c1a'] /* Is Active */,
194 renderer : function(v) {
195 var state = v> 0 ? '-checked' : '';
197 return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
204 xtype : 'ColumnModel',
206 header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
212 xtype : 'ColumnModel',
213 dataIndex : 'poolname',
214 header : _this._strings['def36b726efed529b13ba240dd331a12'] /* Pool */,
220 xtype : 'ColumnModel',
221 dataIndex : 'in_queue',
222 header : _this._strings['be6838286e448ad65c5b55d690e2c38b'] /* In Queue */,
223 renderer : function(v,x,r) {
225 return r.data.in_queue || 0;
232 xtype : 'ColumnModel',
233 dataIndex : 'last_send',
234 header : _this._strings['b26686c0a708faee42861d8b905e882e'] /* Last Sent */,
235 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
249 tableName : 'core_notify_recur',
250 title : _this._strings['c348b06d2667edd048ded3c1b1878cc1'] /* Recurrent Notifications */,
252 activate : function() {
261 autoExpandColumn : 'error_msg',
267 //_this.dialog = Pman.Dialog.FILL_IN
274 xtype : 'PagingToolbar',
276 displayMsg : _this._strings['2ddb157d4780e8883fbde96f354c57d2'] /* Displaying Blacklists {0} - {1} of {2} */,
277 emptyMsg : _this._strings['c5dd93dd1011986763b5925e0af25e08'] /* No Blacklists found */,
290 '|xns' : 'Roo.Toolbar'
294 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
296 '|xns' : 'Roo.Toolbar'
303 sortInfo : { field : 'person_id_name', direction: 'ASC' },
305 beforeload : function (_self, opts)
307 if(!_this.sgrid.getSelectionModel().getSelected()) {
311 opts.params.sender_id = _this.sgrid.getSelectionModel().getSelected().data.id;
319 url : baseURL + '/Roo/core_notify_sender_blacklist',
324 xtype : 'JsonReader',
327 totalProperty : 'total',
334 xtype : 'ColumnModel',
335 dataIndex : 'added_dt',
336 header : _this._strings['f29ddbfb905eb2593fdcdfb243f9af85'] /* Added */,
337 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
343 xtype : 'ColumnModel',
344 dataIndex : 'domain_id_domain',
345 header : _this._strings['eae639a70006feff484a39363c977e24'] /* Domain */,
351 xtype : 'ColumnModel',
352 dataIndex : 'error_str',
353 header : _this._strings['902b0d55fddef6f8d651fe1035b7d4bd'] /* Error */,