DataObjects/Cms_page.php
[Pman.Cms] / Pman.Tab.CmsCategoryType.js
index c515ff7..e9f6d13 100644 (file)
 
 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
 
+Roo.namespace('Pman.Tab');
+
 Pman.Tab.CmsCategoryType = new Roo.XComponent({
-    part     :  ["Cms","CategoryType"],
-    order    : '001-Pman.Tab.CmsCategoryType',
-    region   : 'center',
-    parent   : 'Pman.Tab.Cms',
-    name     : "Pman.Tab.CmsCategoryType",
-    disabled : false, 
-    permname : '', 
-    _tree : function()
-    {
-        var _this = this;
-        var MODULE = this;
-        return {
-            xtype: 'GridPanel',
-            xns: Roo,
-            listeners : {
-                activate : function() {
-                    _this.panel = this;
-                    if (_this.grid) {
-                        _this.grid.footer.onClick('first');
-                    }
-                    
-                }
-            },
-            background : true,
-            fitContainer : true,
-            fitToframe : true,
-            region : 'center',
-            tableName : 'cms_category_type',
-            title : "Category Types",
-            grid : {
-                xtype: 'Grid',
-                xns: Roo.grid,
-                listeners : {
-                    render : function() 
-                    {
-                        _this.grid = this; 
-                        _this.dialog = Pman.Dialog.CmsCategoryType;
-                        if (_this.panel.active) {
-                           this.footer.onClick('first');
-                        }
-                    },
-                    rowdblclick : function (_self, rowIndex, e)
-                    {
-                        if (!_this.dialog) return;
-                        _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                            _this.grid.footer.onClick('first');
-                        }); 
-                    }
-                },
-                autoExpandColumn : 'name',
-                loadMask : true,
-                dataSource : {
-                    xtype: 'Store',
-                    xns: Roo.data,
-                    remoteSort : true,
-                    sortInfo : { field : 'name', direction: 'ASC' },
-                    proxy : {
-                        xtype: 'HttpProxy',
-                        xns: Roo.data,
-                        method : 'GET',
-                        url : baseURL + '/Roo/cms_category_type.php'
-                    },
-                    reader : {
-                        xtype: 'JsonReader',
-                        xns: Roo.data,
-                        totalProperty : 'total',
-                        root : 'data',
-                        id : 'id',
-                        fields : [
-                            {
-                                'name': 'id',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'name',
-                                'type': 'string'
-                            }
-                        ]
-                    }
-                },
-                footer : {
-                    xtype: 'PagingToolbar',
-                    xns: Roo,
-                    pageSize : 25,
-                    displayInfo : true,
-                    displayMsg : "Displaying cms_category_type{0} - {1} of {2}",
-                    emptyMsg : "No cms_category_type found"
-                },
-                toolbar : {
-                    xtype: 'Toolbar',
-                    xns: Roo,
-                    items : [
-                        {
-                            xtype: 'Fill',
-                            xns: Roo.Toolbar
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            text : "Add",
-                            cls : 'x-btn-text-icon',
-                            icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-                            listeners : {
-                                click : function()
-                                {
-                                    if (!_this.dialog) return;
-                                    _this.dialog.show( { id : 0 } , function() {
-                                        _this.grid.footer.onClick('first');
-                                   }); 
-                                }
-                            }
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            listeners : {
-                                click : function()
-                                {
-                                    var s = _this.grid.getSelectionModel().getSelections();
-                                    if (!s.length || (s.length > 1))  {
-                                        Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                                        return;
-                                    }
-                                    if (!_this.dialog) return;
-                                    _this.dialog.show(s[0].data, function() {
-                                        _this.grid.footer.onClick('first');
-                                    }); 
-                                    
-                                }
-                            },
-                            cls : 'x-btn-text-icon',
-                            text : "Edit",
-                            icon : Roo.rootURL + 'images/default/tree/leaf.gif'
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            text : "Delete",
-                            cls : 'x-btn-text-icon',
-                            icon : rootURL + '/Pman/templates/images/trash.gif',
-                            listeners : {
-                                click : function()
-                                {
-                                     Pman.genericDelete(_this, 'cms_category_type'); 
-                                }
-                            }
-                        }
-                    ]
-                },
-                colModel : [
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        header : 'Name',
-                        width : 200,
-                        dataIndex : 'name',
-                        renderer : function(v) { return String.format('{0}', v); }
-                    }
-                ],
-                sm : {
-                    xtype: 'CellSelectionModel',
-                    xns: Roo.grid
-                }
-            }
-        };
-    }
+
+ _strings : {
+  '8a50fa0a4557af5018e28054386cde1f' :"Category Types",
+  '512c3cbbc9d4e8f23edae03d7abc434e' :"No cms_category_type found",
+  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
+  '093a223e9365cd2675ea9389f321f640' :"Displaying cms_category_type{0} - {1} of {2}",
+  '7dce122004969d56ae2e0245cb754d35' :"Edit",
+  'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
+  '49ee3087348e8d44e1feda1917443987' :"Name"
+ },
+
+  part     :  ["Cms", "CategoryType" ],
+  order    : '001-Pman.Tab.CmsCategoryType',
+  region   : 'center',
+  parent   : 'Pman.Tab.Cms',
+  name     : "Pman.Tab.CmsCategoryType",
+  disabled : false, 
+  permname : '', 
+  _tree : function()
+  {
+   var _this = this;
+   var MODULE = this;
+   return {
+   background : true,
+   fitContainer : true,
+   fitToframe : true,
+   region : 'center',
+   tableName : 'cms_category_type',
+   title : _this._strings['8a50fa0a4557af5018e28054386cde1f'] /* Category Types */,
+   xns : Roo,
+   '|xns' : 'Roo',
+   xtype : 'GridPanel',
+   listeners : {
+    activate : function() {
+         _this.panel = this;
+         if (_this.grid) {
+             _this.grid.footer.onClick('first');
+         }
+         
+     }
+   },
+   grid : {
+    autoExpandColumn : 'name',
+    loadMask : true,
+    xns : Roo.grid,
+    '|xns' : 'Roo.grid',
+    xtype : 'Grid',
+    listeners : {
+     render : function() 
+      {
+          _this.grid = this; 
+          _this.dialog = Pman.Dialog.CmsCategoryType;
+          if (_this.panel.active) {
+             this.footer.onClick('first');
+          }
+      },
+     rowdblclick : function (_self, rowIndex, e)
+      {
+          if (!_this.dialog) {
+              return;
+          }
+          _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
+              _this.grid.footer.onClick('first');
+          }); 
+      }
+    },
+    footer : {
+     displayInfo : true,
+     displayMsg : _this._strings['093a223e9365cd2675ea9389f321f640'] /* Displaying cms_category_type{0} - {1} of {2} */,
+     emptyMsg : _this._strings['512c3cbbc9d4e8f23edae03d7abc434e'] /* No cms_category_type found */,
+     pageSize : 25,
+     xns : Roo,
+     '|xns' : 'Roo',
+     xtype : 'PagingToolbar'
+    },
+    toolbar : {
+     xns : Roo,
+     '|xns' : 'Roo',
+     xtype : 'Toolbar',
+     items  : [
+      {
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar',
+       xtype : 'Fill'
+      },
+      {
+       cls : 'x-btn-text-icon',
+       icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
+       text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar',
+       xtype : 'Button',
+       listeners : {
+        click : function()
+         {
+             if (!_this.dialog) {
+                 return;
+             }
+             _this.dialog.show( { id : 0 } , function() {
+                 _this.grid.footer.onClick('first');
+            }); 
+         }
+       }
+      },
+      {
+       cls : 'x-btn-text-icon',
+       icon : Roo.rootURL + 'images/default/tree/leaf.gif',
+       text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar',
+       xtype : 'Button',
+       listeners : {
+        click : function()
+         {
+             var s = _this.grid.getSelectionModel().getSelections();
+             if (!s.length || (s.length > 1))  {
+                 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
+                 return;
+             }
+             if (!_this.dialog) {
+                 return;
+             }
+             _this.dialog.show(s[0].data, function() {
+                 _this.grid.footer.onClick('first');
+             }); 
+             
+         }
+       }
+      },
+      {
+       cls : 'x-btn-text-icon',
+       icon : rootURL + '/Pman/templates/images/trash.gif',
+       text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar',
+       xtype : 'Button',
+       listeners : {
+        click : function()
+         {
+              Pman.genericDelete(_this, 'cms_category_type'); 
+         }
+       }
+      }
+     ]
+    },
+    dataSource : {
+     remoteSort : true,
+     sortInfo : { field : 'name', direction: 'ASC' },
+     xns : Roo.data,
+     '|xns' : 'Roo.data',
+     xtype : 'Store',
+     proxy : {
+      method : 'GET',
+      url : baseURL + '/Roo/cms_category_type.php',
+      xns : Roo.data,
+      '|xns' : 'Roo.data',
+      xtype : 'HttpProxy'
+     },
+     reader : {
+      fields : [
+          {
+              'name': 'id',
+              'type': 'int'
+          },
+          {
+              'name': 'name',
+              'type': 'string'
+          }
+      ],
+      id : 'id',
+      root : 'data',
+      totalProperty : 'total',
+      xns : Roo.data,
+      '|xns' : 'Roo.data',
+      xtype : 'JsonReader'
+     }
+    },
+    colModel : [
+     {
+      dataIndex : 'name',
+      header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 200,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid',
+      xtype : 'ColumnModel'
+     }
+    ]
+   }
+  };  }
 });