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}",
87 "contextmenu": "function (node, e)\n{\n if (!node.expanded || node.leaf) {\n return;\n }\n\n _this.treepanel.menu = Roo.factory(_this.treepanel.menu);\n _this.treepanel.menu.show(node.ui.anchor,'tr');\n _this.cxnode = node;\n}"
90 "containerScroll": true,
99 "create": "function (_self, attr)\n{\n Roo.log(\"CREATE\");\n try {\n attr.text = attr.name.length ? attr.name : attr.descrip;\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",
123 "beforenodeedit": "function (_self,node)\n{\n Roo.log('before start edit');\n Roo.log(this.editNode);\n if (node.attributes.name.length) {\n return false;\n }\n return true;\n \n}"
126 "xtype": "TreeEditor",
138 "click": "function (_self, e)\n{\n _this.nIndex = _this.nIndex || 0;\n \n var m = _this.cxnode.firstChild ? 'insertBefore' : 'appendChild';\n var node = _this.cxnode[m](\n new Roo.tree.AsyncTreeNode({\n text:'New Group ' + (++_this.nIndex), \n cls:'album-node', \n allowDrag:false,\n leaf : false,\n }), _this.cxnode.firstChild);\n}"
150 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
153 "fitContainer": true,
156 "tableName": "Tables",
158 "xtype": "GridPanel",
163 "|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}",
164 "|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"
167 "autoExpandColumn": "table",
173 "*prop": "dataSource",
176 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
182 "xtype": "HttpProxy",
183 "|url": "baseURL + '/Builder/ERM.php'",
188 "xtype": "JsonReader",
189 "totalProperty": "total",
193 "|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]"
199 "xtype": "PagingToolbar",
202 "displayMsg": "Displaying Images{0} - {1} of {2}",
203 "emptyMsg": "No Images found",
213 "|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"
215 "cls": "x-btn-text-icon",
216 "text": "Refresh Schema",
218 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
219 "|xns": "Roo.Toolbar"
224 "*prop": "colModel[]",
225 "dataIndex": "table",
228 "xtype": "ColumnModel",
229 "|renderer": "function(v) { return String.format('{0}', v); }",