3 "name": "Pman.Tab.BuilderDatabase",
4 "parent": "Pman.Tab.Builder",
5 "title": "Pman.Tab.BuilderDatabase",
6 "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderDatabase.bjs",
10 "title": "Manage Database",
11 "xtype": "NestedLayoutPanel",
16 "xtype": "BorderLayout",
23 "xtype": "LayoutRegion",
28 "xtype": "LayoutRegion",
33 "render": "function (_self)\n{\n _this.treepanel = _self;\n}"
46 "click": "function (_self, e)\n{\n _this.treepanel.tree.root.reload();\n}"
48 "text": "Refresh/Manage Tables",
49 "xtype": "SplitButton",
50 "|xns": "Roo.Toolbar",
58 "text": "Add Table/Container",
68 "click": "function (_self, e)\n{\n new Pman.Request({\n method: 'GET',\n url: baseURL + '/Roo/Builder_tables.php',\n params : {\n _sync : 1\n }\n });\n \n}"
70 "text": "Sync Tables",
91 "create": "function (This, attr)\n{\n attr.text = '';\n \n attr.leaf = n.attributes.name.length ? true : false;\n attr.html = String.format('<B>{0}</B><i>{1}</i>',\n n.attributes.name,\n n.attributes.desc\n );\n Roo.log(attr);\n\n}"
94 "queryParam": "parent_id",
95 "requestMethod": "GET",
97 "xtype": "TreeLoader",
98 "|baseParams": " { _tree: 1, 'sort': 'name', dir: 'ASC' }",
99 "|dataUrl": "baseURL + '/Roo/Builder_tables.php'",
105 "xtype": "AsyncTreeNode",
114 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
117 "fitContainer": true,
120 "tableName": "Tables",
122 "xtype": "GridPanel",
127 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
128 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
131 "autoExpandColumn": "table",
137 "*prop": "dataSource",
140 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
146 "xtype": "HttpProxy",
147 "|url": "baseURL + '/Builder/ERM.php'",
152 "xtype": "JsonReader",
153 "totalProperty": "total",
157 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'filename',\n 'type': 'string'\n },\n {\n 'name': 'ontable',\n 'type': 'string'\n },\n {\n 'name': 'onid',\n 'type': 'int'\n },\n {\n 'name': 'mimetype',\n 'type': 'string'\n },\n {\n 'name': 'width',\n 'type': 'int'\n },\n {\n 'name': 'height',\n 'type': 'int'\n },\n {\n 'name': 'filesize',\n 'type': 'int'\n },\n {\n 'name': 'displayorder',\n 'type': 'int'\n },\n {\n 'name': 'language',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id',\n 'type': 'int'\n },\n {\n 'name': 'created',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'imgtype',\n 'type': 'string'\n },\n {\n 'name': 'linkurl',\n 'type': 'string'\n },\n {\n 'name': 'descript',\n 'type': 'string'\n },\n {\n 'name': 'title',\n 'type': 'string'\n },\n {\n 'name': 'credit',\n 'type': 'string'\n },\n {\n 'name': 'source',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_filename',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_ontable',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_onid',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_mimetype',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_width',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_height',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_filesize',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_displayorder',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_language',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_parent_image_id',\n 'type': 'int'\n },\n {\n 'name': 'parent_image_id_created',\n 'type': 'date'\n },\n {\n 'name': 'parent_image_id_imgtype',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_linkurl',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_descript',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_title',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_credit',\n 'type': 'string'\n },\n {\n 'name': 'parent_image_id_source',\n 'type': 'string'\n }\n]"
163 "xtype": "PagingToolbar",
166 "displayMsg": "Displaying Images{0} - {1} of {2}",
167 "emptyMsg": "No Images found",
177 "|click": "function()\n{\n Roo.MessageBox.alert(\"Updating\", \"Updating the cache\");\n new Pman.Request({\n url : baseURL + '/Core/RefreshDatabaseCache',\n method : 'GET',\n success : function() {\n Roo.MessageBox.hide();\n }\n });\n}\n"
179 "cls": "x-btn-text-icon",
180 "text": "Refresh Schema",
182 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
183 "|xns": "Roo.Toolbar"
188 "*prop": "colModel[]",
189 "dataIndex": "table",
192 "xtype": "ColumnModel",
193 "|renderer": "function(v) { return String.format('{0}', v); }",