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"
135 click : function (_self, e)
138 url : baseURL + '/Roo/cms_rssaggr',
143 success : function() {
144 _this.grid.onClick('first');
159 cls : 'x-btn-text-icon',
160 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
164 if (!_this.dialog) return;
165 _this.dialog.show( { id : 0 } , function() {
166 _this.grid.footer.onClick('first');
175 cls : 'x-btn-text-icon',
176 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
180 var s = _this.grid.getSelectionModel().getSelections();
181 if (!s.length || (s.length > 1)) {
182 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
185 if (!_this.dialog) return;
186 _this.dialog.show(s[0].data, function() {
187 _this.grid.footer.onClick('first');
197 cls : 'x-btn-text-icon',
198 icon : rootURL + '/Pman/templates/images/trash.gif',
202 Pman.genericDelete(_this, 'cms_rssaggr');
210 xtype: 'ColumnModel',
213 header : 'Displayed',
215 renderer : function(v) { return String.format('{0}', v); }
218 xtype: 'ColumnModel',
223 renderer : function(v) { return String.format('{0}', v); }
226 xtype: 'ColumnModel',
228 header : 'Published dt',
230 dataIndex : 'published_dt',
231 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
234 xtype: 'ColumnModel',
238 dataIndex : 'headline',
239 renderer : function(v) { return String.format('{0}', v); }
242 xtype: 'ColumnModel',
247 renderer : function(v) { return String.format('{0}', v); }
252 this.layout = this.panel.layout;