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",
181 "cls": "x-btn-text-icon",
182 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
184 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
186 "|xns": "Roo.Toolbar"
191 "cls": "x-btn-text-icon",
192 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
194 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
196 "|xns": "Roo.Toolbar"
200 "cls": "x-btn-text-icon",
201 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
204 "|click": "function()\n{\n Pman.genericDelete(_this, 'Images'); \n}\n "
206 "|xns": "Roo.Toolbar"
211 "xtype": "ColumnModel",
215 "|renderer": "function(v) { return String.format('{0}', v); }",
217 "*prop": "colModel[]"
220 "xtype": "ColumnModel",
221 "header": "Filename",
223 "dataIndex": "filename",
224 "|renderer": "function(v) { return String.format('{0}', v); }",
226 "*prop": "colModel[]"
229 "xtype": "ColumnModel",
232 "dataIndex": "ontable",
233 "|renderer": "function(v) { return String.format('{0}', v); }",
235 "*prop": "colModel[]"
238 "xtype": "ColumnModel",
242 "|renderer": "function(v) { return String.format('{0}', v); }",
244 "*prop": "colModel[]"
247 "xtype": "ColumnModel",
248 "header": "Mimetype",
250 "dataIndex": "mimetype",
251 "|renderer": "function(v) { return String.format('{0}', v); }",
253 "*prop": "colModel[]"
256 "xtype": "ColumnModel",
259 "dataIndex": "width",
260 "|renderer": "function(v) { return String.format('{0}', v); }",
262 "*prop": "colModel[]"
265 "xtype": "ColumnModel",
268 "dataIndex": "height",
269 "|renderer": "function(v) { return String.format('{0}', v); }",
271 "*prop": "colModel[]"
274 "xtype": "ColumnModel",
275 "header": "Filesize",
277 "dataIndex": "filesize",
278 "|renderer": "function(v) { return String.format('{0}', v); }",
280 "*prop": "colModel[]"
283 "xtype": "ColumnModel",
284 "header": "Displayorder",
286 "dataIndex": "displayorder",
287 "|renderer": "function(v) { return String.format('{0}', v); }",
289 "*prop": "colModel[]"
292 "xtype": "ColumnModel",
293 "header": "Language",
295 "dataIndex": "language",
296 "|renderer": "function(v) { return String.format('{0}', v); }",
298 "*prop": "colModel[]"
301 "xtype": "ColumnModel",
302 "header": "Parent image",
304 "dataIndex": "parent_image_id",
305 "|renderer": "function(v) { return String.format('{0}', v); }",
307 "*prop": "colModel[]"
310 "xtype": "ColumnModel",
313 "dataIndex": "created",
314 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
316 "*prop": "colModel[]"
319 "xtype": "ColumnModel",
322 "dataIndex": "imgtype",
323 "|renderer": "function(v) { return String.format('{0}', v); }",
325 "*prop": "colModel[]"
328 "xtype": "ColumnModel",
331 "dataIndex": "linkurl",
332 "|renderer": "function(v) { return String.format('{0}', v); }",
334 "*prop": "colModel[]"
337 "xtype": "ColumnModel",
338 "header": "Descript",
340 "dataIndex": "descript",
341 "|renderer": "function(v) { return String.format('{0}', v); }",
343 "*prop": "colModel[]"
346 "xtype": "ColumnModel",
349 "dataIndex": "title",
350 "|renderer": "function(v) { return String.format('{0}', v); }",
352 "*prop": "colModel[]"
360 "render": "function (_self)\n{\n _this.viewPanel = _self;\n}"
363 "fitContainer": true,
366 "xtype": "ContentPanel",
371 "|click": "function() {\n _this.dialog.hide();\n}"
373 "*prop": "buttons[]",
380 "|click": "function() {\n _this.dialog.hide();\n}"
382 "*prop": "buttons[]",