{ "id": "roo-file-89", "name": "Pman.Tab.CmsBlog", "parent": "Pman.Tab.Cms", "title": "Blog", "path": "/home/alan/gitlive/Pman.Cms/Pman.Tab.CmsBlog.bjs", "items": [ { "listeners": { "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "background": true, "fitContainer": true, "fitToframe": true, "region": "center", "tableName": "CmsBlog", "title": "Pages / Blog Entries", "xtype": "GridPanel", "|xns": "Roo", "items": [ { "listeners": { "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.CmsBlog;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}" }, "*prop": "grid", "autoExpandColumn": "title", "loadMask": true, "xtype": "Grid", "|xns": "Roo.grid", "items": [ { "*prop": "dataSource", "remoteSort": true, "|sortInfo": "{ field : 'created' , direction : 'DESC' }", "xtype": "Store", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|url": "baseURL + '/Roo/CmsBlog.php'", "|xns": "Roo.data" }, { "*prop": "reader", "id": "id", "root": "data", "totalProperty": "total", "xtype": "JsonReader", "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'title',\n 'type': 'string'\n },\n {\n 'name': 'published',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'body',\n 'type': 'string'\n },\n {\n 'name': 'comments_no',\n 'type': 'int'\n },\n {\n 'name': 'trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'extended',\n 'type': 'string'\n },\n {\n 'name': 'has_extended',\n 'type': 'int'\n },\n {\n 'name': 'author_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_title',\n 'type': 'string'\n },\n {\n 'name': 'is_draft',\n 'type': 'int'\n },\n {\n 'name': 'updated',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'created',\n 'type': 'date',\n 'format' : 'Y-m-d H:i:s'\n },\n {\n 'name': 'to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'page_link',\n 'type': 'string'\n },\n {\n 'name': 'in_rss',\n 'type': 'int'\n },\n {\n 'name': 'parent_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_title',\n 'type': 'string'\n },\n\n {\n 'name': 'author_id_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_name',\n 'type': 'string'\n },\n {\n 'name': 'author_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'author_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'author_id_email',\n 'type': 'string'\n },\n {\n 'name': 'author_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_role',\n 'type': 'string'\n },\n {\n 'name': 'author_id_active',\n 'type': 'int'\n },\n {\n 'name': 'author_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'author_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'author_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'author_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'author_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'author_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'author_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_parent_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_short_name',\n 'type': 'string'\n },\n {\n 'name': 'category_id_title',\n 'type': 'string'\n },\n {\n 'name': 'category_id_page_text',\n 'type': 'string'\n },\n {\n 'name': 'category_id_type',\n 'type': 'string'\n },\n {\n 'name': 'category_id_search_on',\n 'type': 'string'\n },\n {\n 'name': 'category_id_image_menu_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_menuover_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_leftactive_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_image_page_id',\n 'type': 'int'\n },\n {\n 'name': 'category_id_display_order',\n 'type': 'int'\n },\n {\n 'name': 'category_id_more_info_title',\n 'type': 'string'\n },\n {\n 'name': 'category_id_more_info_text',\n 'type': 'string'\n },\n {\n 'name': 'category_id_visible',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_title',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_published',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_body',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_comments_no',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_extended',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_has_extended',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_author_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_category_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_is_draft',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_updated',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_created',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_page_link',\n 'type': 'string'\n },\n {\n 'name': 'to_replace_id_in_rss',\n 'type': 'int'\n },\n {\n 'name': 'to_replace_id_parent_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_title',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_published',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_body',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_comments_no',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_trackbacks_no',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_extended',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_has_extended',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_author_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_category_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_is_draft',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_updated',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_created',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_to_replace_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_page_link',\n 'type': 'string'\n },\n {\n 'name': 'parent_id_in_rss',\n 'type': 'int'\n },\n {\n 'name': 'parent_id_parent_id',\n 'type': 'int'\n }\n]", "|xns": "Roo.data" } ] }, { "*prop": "footer", "xtype": "PagingToolbar", "pageSize": 25, "displayInfo": true, "displayMsg": "Displaying CmsBlog{0} - {1} of {2}", "emptyMsg": "No CmsBlog found", "|xns": "Roo" }, { "*prop": "toolbar", "xtype": "Toolbar", "|xns": "Roo", "items": [ { "listeners": { "|click": "function()\n{\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n" }, "cls": "x-btn-text-icon", "text": "Add", "xtype": "Button", "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'", "|xns": "Roo.Toolbar" }, { "listeners": { "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n \n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n" }, "cls": "x-btn-text-icon", "text": "Edit", "xtype": "Button", "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'", "|xns": "Roo.Toolbar" }, { "text": "Delete", "cls": "x-btn-text-icon", "|icon": "rootURL + '/Pman/templates/images/trash.gif'", "xtype": "Button", "listeners": { "|click": "function()\n{\n //Pman.genericDelete(_this, _this.grid.tableName); \n}\n " }, "|xns": "Roo.Toolbar" } ] }, { "*prop": "colModel[]", "dataIndex": "created", "header": "Created", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return v? v.format('d/M/Y') : '--' }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "published", "header": "Published", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return v? v.format('d/M/Y') : '--' }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "parent_id_title", "header": "Parent", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v || ''); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "category_id_title", "header": "Category", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "xtype": "ColumnModel", "header": "Title", "width": 200, "dataIndex": "title", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid", "*prop": "colModel[]" }, { "*prop": "colModel[]", "dataIndex": "author_id_name", "header": "Author", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "page_link", "header": "Page link", "width": 100, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "to_replace_id_title", "header": "To replace", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "is_draft", "header": "D?", "width": 25, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "has_extended", "header": "Ex?", "width": 25, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "trackbacks_no", "header": "T#", "width": 25, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "comments_no", "header": "C#", "width": 25, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "in_rss", "header": "RSS", "width": 30, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" } ] } ] } ], "permname": "Cms.Blog" }