1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 // register the module first
8 Pman.on('beforeload', function()
11 part : ["Cms","Aggregate"],
12 modKey : '001-Pman.Tab.CmsAggregate',
13 module : Pman.Tab.CmsAggregate,
16 name : "unnamed module",
22 Pman.Tab.CmsAggregate = new Roo.util.Observable({
28 add : function(parentLayout, region)
32 this.parentLayout = parentLayout;
34 this.panel = parentLayout.addxtype({
37 '*prop' : 'colModel[]',
41 renderer : function(v) {
42 var state = v> 0 ? '-checked' : '';
44 return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
54 //_this.dialog = Pman.Dialog.FILL_IN
55 if (_this.panel.active) {
56 this.footer.onClick('first');
60 autoExpandColumn : 'headline',
66 sortInfo : { field : 'extid', direction: 'ASC' },
71 url : baseURL + '/Roo/cms_rssaggr.php'
76 totalProperty : 'total',
89 'name': 'published_dt',
109 xtype: 'PagingToolbar',
113 displayMsg : "Displaying cms_rssaggr{0} - {1} of {2}",
114 emptyMsg : "No cms_rssaggr found"
124 click : function (_self, e)
127 url : baseURL + '/Roo/cms_rssaggr',
132 success : function() {
133 _this.grid.onClick('first');
138 text : "Update from Feed"
148 cls : 'x-btn-text-icon',
149 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
153 if (!_this.dialog) return;
154 _this.dialog.show( { id : 0 } , function() {
155 _this.grid.footer.onClick('first');
164 cls : 'x-btn-text-icon',
165 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
169 var s = _this.grid.getSelectionModel().getSelections();
170 if (!s.length || (s.length > 1)) {
171 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
174 if (!_this.dialog) return;
175 _this.dialog.show(s[0].data, function() {
176 _this.grid.footer.onClick('first');
186 cls : 'x-btn-text-icon',
187 icon : rootURL + '/Pman/templates/images/trash.gif',
191 Pman.genericDelete(_this, 'cms_rssaggr');
199 xtype: 'ColumnModel',
201 dataIndex : 'is_displayed',
202 header : 'Displayed',
204 renderer : function(v) {
205 var state = v> 0 ? '-checked' : '';
207 return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
212 xtype: 'ColumnModel',
214 header : 'Published dt',
216 dataIndex : 'published_dt',
217 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
220 xtype: 'ColumnModel',
224 dataIndex : 'headline',
225 renderer : function(v) { return String.format('{0}', v); }
228 xtype: 'ColumnModel',
233 renderer : function(v) { return String.format('{0}', v); }
238 this.layout = this.panel.layout;