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 title : "cms_rssaggr",
40 tableName : 'cms_rssaggr',
44 activate : function() {
47 _this.grid.footer.onClick('first');
54 autoExpandColumn : 'extid',
60 //_this.dialog = Pman.Dialog.FILL_IN
61 if (_this.panel.active) {
62 this.footer.onClick('first');
65 rowdblclick : function (_self, rowIndex, e)
67 if (!_this.dialog) return;
68 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
69 _this.grid.footer.onClick('first');
77 sortInfo : { field : 'extid', direction: 'ASC' },
82 url : baseURL + '/Roo/cms_rssaggr.php'
87 totalProperty : 'total',
100 'name': 'published_dt',
102 'dateFormat': 'Y-m-d'
120 xtype: 'PagingToolbar',
124 displayMsg : "Displaying cms_rssaggr{0} - {1} of {2}",
125 emptyMsg : "No cms_rssaggr found"
139 cls : 'x-btn-text-icon',
140 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
144 if (!_this.dialog) return;
145 _this.dialog.show( { id : 0 } , function() {
146 _this.grid.footer.onClick('first');
155 cls : 'x-btn-text-icon',
156 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
160 var s = _this.grid.getSelectionModel().getSelections();
161 if (!s.length || (s.length > 1)) {
162 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
165 if (!_this.dialog) return;
166 _this.dialog.show(s[0].data, function() {
167 _this.grid.footer.onClick('first');
177 cls : 'x-btn-text-icon',
178 icon : rootURL + '/Pman/templates/images/trash.gif',
182 Pman.genericDelete(_this, 'cms_rssaggr');
190 xtype: 'ColumnModel',
195 renderer : function(v) { return String.format('{0}', v); }
198 xtype: 'ColumnModel',
203 renderer : function(v) { return String.format('{0}', v); }
206 xtype: 'ColumnModel',
208 header : 'Published dt',
210 dataIndex : 'published_dt',
211 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
214 xtype: 'ColumnModel',
218 dataIndex : 'headline',
219 renderer : function(v) { return String.format('{0}', v); }
222 xtype: 'ColumnModel',
227 renderer : function(v) { return String.format('{0}', v); }
230 xtype: 'ColumnModel',
234 dataIndex : 'src_id',
235 renderer : function(v) { return String.format('{0}', v); }
240 this.layout = this.panel.layout;