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 "|beforeload": "function (_self, o)\n{\n Roo.log(_this.data);\n o.params = o.parmas || {};\n o.params.action = 'AUTOSAVE';\n \n}"
68 "*prop": "dataSource",
71 "|sortInfo": "{ field: 'event_when', direction: 'DESC'}",
76 "xtype": "JsonReader",
77 "totalProperty": "total",
81 "|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]"
87 "|url": "baseURL + '/Roo/Events.php'",
96 "xtype": "PagingToolbar",
100 "*prop": "colModel[]",
101 "dataIndex": "event_when",
104 "xtype": "ColumnModel",
105 "|renderer": "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
114 "xtype": "GridPanel",
117 "fitContainer": true,
118 "tableName": "Images",
122 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
128 "autoExpandColumn": "filename",
131 "|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}",
132 "|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"
137 "*prop": "dataSource",
140 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
145 "xtype": "HttpProxy",
147 "|url": "baseURL + '/Roo/Images.php'",
152 "xtype": "JsonReader",
153 "totalProperty": "total",
157 "|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]"
163 "xtype": "PagingToolbar",
166 "displayMsg": "Displaying Images{0} - {1} of {2}",
167 "emptyMsg": "No Images found",
178 "cls": "x-btn-text-icon",
179 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
181 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
183 "|xns": "Roo.Toolbar"
188 "cls": "x-btn-text-icon",
189 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
191 "|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"
193 "|xns": "Roo.Toolbar"
197 "cls": "x-btn-text-icon",
198 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
201 "|click": "function()\n{\n Pman.genericDelete(_this, 'Images'); \n}\n "
203 "|xns": "Roo.Toolbar"
208 "xtype": "ColumnModel",
212 "|renderer": "function(v) { return String.format('{0}', v); }",
214 "*prop": "colModel[]"
217 "xtype": "ColumnModel",
218 "header": "Filename",
220 "dataIndex": "filename",
221 "|renderer": "function(v) { return String.format('{0}', v); }",
223 "*prop": "colModel[]"
226 "xtype": "ColumnModel",
229 "dataIndex": "ontable",
230 "|renderer": "function(v) { return String.format('{0}', v); }",
232 "*prop": "colModel[]"
235 "xtype": "ColumnModel",
239 "|renderer": "function(v) { return String.format('{0}', v); }",
241 "*prop": "colModel[]"
244 "xtype": "ColumnModel",
245 "header": "Mimetype",
247 "dataIndex": "mimetype",
248 "|renderer": "function(v) { return String.format('{0}', v); }",
250 "*prop": "colModel[]"
253 "xtype": "ColumnModel",
256 "dataIndex": "width",
257 "|renderer": "function(v) { return String.format('{0}', v); }",
259 "*prop": "colModel[]"
262 "xtype": "ColumnModel",
265 "dataIndex": "height",
266 "|renderer": "function(v) { return String.format('{0}', v); }",
268 "*prop": "colModel[]"
271 "xtype": "ColumnModel",
272 "header": "Filesize",
274 "dataIndex": "filesize",
275 "|renderer": "function(v) { return String.format('{0}', v); }",
277 "*prop": "colModel[]"
280 "xtype": "ColumnModel",
281 "header": "Displayorder",
283 "dataIndex": "displayorder",
284 "|renderer": "function(v) { return String.format('{0}', v); }",
286 "*prop": "colModel[]"
289 "xtype": "ColumnModel",
290 "header": "Language",
292 "dataIndex": "language",
293 "|renderer": "function(v) { return String.format('{0}', v); }",
295 "*prop": "colModel[]"
298 "xtype": "ColumnModel",
299 "header": "Parent image",
301 "dataIndex": "parent_image_id",
302 "|renderer": "function(v) { return String.format('{0}', v); }",
304 "*prop": "colModel[]"
307 "xtype": "ColumnModel",
310 "dataIndex": "created",
311 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
313 "*prop": "colModel[]"
316 "xtype": "ColumnModel",
319 "dataIndex": "imgtype",
320 "|renderer": "function(v) { return String.format('{0}', v); }",
322 "*prop": "colModel[]"
325 "xtype": "ColumnModel",
328 "dataIndex": "linkurl",
329 "|renderer": "function(v) { return String.format('{0}', v); }",
331 "*prop": "colModel[]"
334 "xtype": "ColumnModel",
335 "header": "Descript",
337 "dataIndex": "descript",
338 "|renderer": "function(v) { return String.format('{0}', v); }",
340 "*prop": "colModel[]"
343 "xtype": "ColumnModel",
346 "dataIndex": "title",
347 "|renderer": "function(v) { return String.format('{0}', v); }",
349 "*prop": "colModel[]"
357 "render": "function (_self)\n{\n _this.viewPanel = _self;\n}"
360 "fitContainer": true,
363 "xtype": "ContentPanel",
368 "|click": "function() {\n _this.dialog.hide();\n}"
370 "*prop": "buttons[]",
377 "|click": "function() {\n _this.dialog.hide();\n}"
379 "*prop": "buttons[]",