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}"
98 "xtype": "MultiSelectionModel",
103 "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}"
106 "queryParam": "parent_id",
107 "requestMethod": "GET",
109 "xtype": "TreeLoader",
110 "|baseParams": " { _tree: 1, 'sort': 'name', dir: 'ASC', limit : 9999 }",
111 "|dataUrl": "baseURL + '/Roo/Builder_tables.php'",
117 "xtype": "AsyncTreeNode",
126 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
129 "fitContainer": true,
132 "tableName": "Tables",
134 "xtype": "GridPanel",
139 "|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}",
140 "|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"
143 "autoExpandColumn": "table",
149 "*prop": "dataSource",
152 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
158 "xtype": "HttpProxy",
159 "|url": "baseURL + '/Builder/ERM.php'",
164 "xtype": "JsonReader",
165 "totalProperty": "total",
169 "|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]"
175 "xtype": "PagingToolbar",
178 "displayMsg": "Displaying Images{0} - {1} of {2}",
179 "emptyMsg": "No Images found",
189 "|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"
191 "cls": "x-btn-text-icon",
192 "text": "Refresh Schema",
194 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
195 "|xns": "Roo.Toolbar"
200 "*prop": "colModel[]",
201 "dataIndex": "table",
204 "xtype": "ColumnModel",
205 "|renderer": "function(v) { return String.format('{0}', v); }",