3 "name": "Pman.Dialog.CoreAutoSavePreview",
6 "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
15 "title": "Saved Version",
17 "xtype": "LayoutDialog",
22 "xtype": "LayoutRegion",
29 "xtype": "LayoutRegion",
34 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
40 "tableName": "Images",
48 "autoExpandColumn": "filename",
51 "|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}",
52 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
57 "*prop": "dataSource",
60 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
67 "|url": "baseURL + '/Roo/Images.php'",
72 "xtype": "JsonReader",
73 "totalProperty": "total",
77 "|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': '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]"
83 "xtype": "PagingToolbar",
86 "displayMsg": "Displaying Images{0} - {1} of {2}",
87 "emptyMsg": "No Images found",
91 "xtype": "ColumnModel",
95 "|renderer": "function(v) { return String.format('{0}', v); }",
100 "xtype": "ColumnModel",
101 "header": "Filename",
103 "dataIndex": "filename",
104 "|renderer": "function(v) { return String.format('{0}', v); }",
106 "*prop": "colModel[]"
109 "xtype": "ColumnModel",
112 "dataIndex": "ontable",
113 "|renderer": "function(v) { return String.format('{0}', v); }",
115 "*prop": "colModel[]"
118 "xtype": "ColumnModel",
122 "|renderer": "function(v) { return String.format('{0}', v); }",
124 "*prop": "colModel[]"
127 "xtype": "ColumnModel",
128 "header": "Mimetype",
130 "dataIndex": "mimetype",
131 "|renderer": "function(v) { return String.format('{0}', v); }",
133 "*prop": "colModel[]"
136 "xtype": "ColumnModel",
139 "dataIndex": "width",
140 "|renderer": "function(v) { return String.format('{0}', v); }",
142 "*prop": "colModel[]"
145 "xtype": "ColumnModel",
148 "dataIndex": "height",
149 "|renderer": "function(v) { return String.format('{0}', v); }",
151 "*prop": "colModel[]"
154 "xtype": "ColumnModel",
155 "header": "Filesize",
157 "dataIndex": "filesize",
158 "|renderer": "function(v) { return String.format('{0}', v); }",
160 "*prop": "colModel[]"
163 "xtype": "ColumnModel",
164 "header": "Displayorder",
166 "dataIndex": "displayorder",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
169 "*prop": "colModel[]"
172 "xtype": "ColumnModel",
173 "header": "Language",
175 "dataIndex": "language",
176 "|renderer": "function(v) { return String.format('{0}', v); }",
178 "*prop": "colModel[]"
181 "xtype": "ColumnModel",
182 "header": "Parent image",
184 "dataIndex": "parent_image_id",
185 "|renderer": "function(v) { return String.format('{0}', v); }",
187 "*prop": "colModel[]"
190 "xtype": "ColumnModel",
193 "dataIndex": "created",
194 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
196 "*prop": "colModel[]"
199 "xtype": "ColumnModel",
202 "dataIndex": "imgtype",
203 "|renderer": "function(v) { return String.format('{0}', v); }",
205 "*prop": "colModel[]"
208 "xtype": "ColumnModel",
211 "dataIndex": "linkurl",
212 "|renderer": "function(v) { return String.format('{0}', v); }",
214 "*prop": "colModel[]"
217 "xtype": "ColumnModel",
218 "header": "Descript",
220 "dataIndex": "descript",
221 "|renderer": "function(v) { return String.format('{0}', v); }",
223 "*prop": "colModel[]"
226 "xtype": "ColumnModel",
229 "dataIndex": "title",
230 "|renderer": "function(v) { return String.format('{0}', v); }",
232 "*prop": "colModel[]"
240 "render": "function (_self)\n{\n _this.viewPanel = _self;\n}"
243 "fitContainer": true,
246 "xtype": "ContentPanel",
251 "|click": "function() {\n _this.dialog.hide();\n}"
253 "*prop": "buttons[]",
260 "|click": "function() {\n _this.dialog.hide();\n}"
262 "*prop": "buttons[]",