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 "activate": "function (_self)\n{\n _this.treepanel.tree.root.reload();\n}"
14 "title": "Manage Database",
15 "xtype": "NestedLayoutPanel",
20 "xtype": "BorderLayout",
27 "xtype": "LayoutRegion",
32 "xtype": "LayoutRegion",
37 "render": "function (_self)\n{\n _this.treepanel = _self;\n}"
50 "click": "function (_self, e)\n{\n _this.treepanel.tree.root.reload();\n}"
52 "text": "Refresh/Manage Tables",
53 "xtype": "SplitButton",
54 "|xns": "Roo.Toolbar",
62 "text": "Add Table/Container",
72 "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}"
74 "text": "Sync Tables",
86 "beforeload": "function (node)\n{\n if (!_this.panel.active) {\n return false;\n }\n}"
89 "containerScroll": true,
99 "create": "function (_self, attr)\n{\n Roo.log(\"CREATE\");\n try {\n attr.text = '';\n \n attr.leaf = attr.name.length ? true : false;\n attr.html = String.format('<B>{0}</B><i>{1}</i>',\n attr.name,\n attr.descrip\n );\n } catch(e) {\n Roo.log(e);\n }\n Roo.log(attr);\n\n}"
102 "queryParam": "parent_id",
103 "requestMethod": "GET",
105 "xtype": "TreeLoader",
106 "|baseParams": " { _tree: 1, 'sort': 'name', dir: 'ASC', limit : 9999 }",
107 "|dataUrl": "baseURL + '/Roo/Builder_tables.php'",
113 "xtype": "AsyncTreeNode",
118 "xtype": "DefaultSelectionModel",
127 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
130 "fitContainer": true,
133 "tableName": "Tables",
135 "xtype": "GridPanel",
140 "|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}",
141 "|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"
144 "autoExpandColumn": "table",
150 "*prop": "dataSource",
153 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
159 "xtype": "HttpProxy",
160 "|url": "baseURL + '/Builder/ERM.php'",
165 "xtype": "JsonReader",
166 "totalProperty": "total",
170 "|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]"
176 "xtype": "PagingToolbar",
179 "displayMsg": "Displaying Images{0} - {1} of {2}",
180 "emptyMsg": "No Images found",
190 "|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"
192 "cls": "x-btn-text-icon",
193 "text": "Refresh Schema",
195 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
196 "|xns": "Roo.Toolbar"
201 "*prop": "colModel[]",
202 "dataIndex": "table",
205 "xtype": "ColumnModel",
206 "|renderer": "function(v) { return String.format('{0}', v); }",