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 Roo.log(2);\n _this.grid.footer.onClick('first');\n }\n}"
40 "tableName": "Events",
47 "|render": "function() { \n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n Roo.log('1');\n this.footer.onClick('first');\n }\n}"
50 "autoExpandColumn": "event_when",
57 "afterselectionchange": "function (_self)\n{\n \n if (!this.getSelected()) {\n _this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n \n _this.viewPanel.setContent(\"data\");\n}"
61 "xtype": "RowSelectionModel",
66 "xtype": "PagingToolbar",
69 "displayMsg": "Displaying Images{0} - {1} of {2}",
70 "emptyMsg": "No Images found",
75 "|beforeload": "function (_self, o)\n{\n Roo.log(_this.data);\n o.params = o.parmas || {};\n o.params.action = 'AUTOSAVE';\n \n}"
77 "*prop": "dataSource",
80 "|sortInfo": "{ field: 'event_when', direction: 'DESC'}",
85 "xtype": "JsonReader",
86 "totalProperty": "total",
90 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]"
96 "|url": "baseURL + '/Roo/Events.php'",
103 "*prop": "colModel[]",
104 "dataIndex": "event_when",
107 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
117 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
120 "fitContainer": true,
123 "tableName": "Images",
125 "xtype": "GridPanel",
131 "autoExpandColumn": "filename",
134 "|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}",
135 "|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"
140 "*prop": "dataSource",
143 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
148 "xtype": "HttpProxy",
150 "|url": "baseURL + '/Roo/Images.php'",
155 "xtype": "JsonReader",
156 "totalProperty": "total",
160 "|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]"
166 "xtype": "PagingToolbar",
169 "displayMsg": "Displaying Images{0} - {1} of {2}",
170 "emptyMsg": "No Images found",
174 "xtype": "ColumnModel",
178 "|renderer": "function(v) { return String.format('{0}', v); }",
180 "*prop": "colModel[]"
183 "xtype": "ColumnModel",
184 "header": "Filename",
186 "dataIndex": "filename",
187 "|renderer": "function(v) { return String.format('{0}', v); }",
189 "*prop": "colModel[]"
192 "xtype": "ColumnModel",
195 "dataIndex": "ontable",
196 "|renderer": "function(v) { return String.format('{0}', v); }",
198 "*prop": "colModel[]"
201 "xtype": "ColumnModel",
205 "|renderer": "function(v) { return String.format('{0}', v); }",
207 "*prop": "colModel[]"
210 "xtype": "ColumnModel",
211 "header": "Mimetype",
213 "dataIndex": "mimetype",
214 "|renderer": "function(v) { return String.format('{0}', v); }",
216 "*prop": "colModel[]"
219 "xtype": "ColumnModel",
222 "dataIndex": "width",
223 "|renderer": "function(v) { return String.format('{0}', v); }",
225 "*prop": "colModel[]"
228 "xtype": "ColumnModel",
231 "dataIndex": "height",
232 "|renderer": "function(v) { return String.format('{0}', v); }",
234 "*prop": "colModel[]"
237 "xtype": "ColumnModel",
238 "header": "Filesize",
240 "dataIndex": "filesize",
241 "|renderer": "function(v) { return String.format('{0}', v); }",
243 "*prop": "colModel[]"
246 "xtype": "ColumnModel",
247 "header": "Displayorder",
249 "dataIndex": "displayorder",
250 "|renderer": "function(v) { return String.format('{0}', v); }",
252 "*prop": "colModel[]"
255 "xtype": "ColumnModel",
256 "header": "Language",
258 "dataIndex": "language",
259 "|renderer": "function(v) { return String.format('{0}', v); }",
261 "*prop": "colModel[]"
264 "xtype": "ColumnModel",
265 "header": "Parent image",
267 "dataIndex": "parent_image_id",
268 "|renderer": "function(v) { return String.format('{0}', v); }",
270 "*prop": "colModel[]"
273 "xtype": "ColumnModel",
276 "dataIndex": "created",
277 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
279 "*prop": "colModel[]"
282 "xtype": "ColumnModel",
285 "dataIndex": "imgtype",
286 "|renderer": "function(v) { return String.format('{0}', v); }",
288 "*prop": "colModel[]"
291 "xtype": "ColumnModel",
294 "dataIndex": "linkurl",
295 "|renderer": "function(v) { return String.format('{0}', v); }",
297 "*prop": "colModel[]"
300 "xtype": "ColumnModel",
301 "header": "Descript",
303 "dataIndex": "descript",
304 "|renderer": "function(v) { return String.format('{0}', v); }",
306 "*prop": "colModel[]"
309 "xtype": "ColumnModel",
312 "dataIndex": "title",
313 "|renderer": "function(v) { return String.format('{0}', v); }",
315 "*prop": "colModel[]"
323 "render": "function (_self)\n{\n _this.viewPanel = _self;\n}"
326 "fitContainer": true,
329 "xtype": "ContentPanel",
334 "|click": "function() {\n _this.dialog.hide();\n}"
336 "*prop": "buttons[]",
343 "|click": "function() {\n _this.dialog.hide();\n}"
345 "*prop": "buttons[]",