Pman.Tab.AdminLogEvents.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 29 Sep 2011 15:10:41 +0000 (23:10 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Sep 2011 15:10:41 +0000 (23:10 +0800)
Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js
Pman.Tab.AdminLogEvents.js

Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js

index 9194710..ed5aa42 100644 (file)
@@ -85,7 +85,7 @@
                                             "items": [
                                                 {
                                                     "listeners": {
-                                                        "click": "function (_self, e)\n{\n \n    var params = {\n        'sort' : 'event_when',\n        'dir' : 'DESC',\n        'start' : 0,\n        'limit' : 400,\n        person_id : _this.personSel.getValue(), \n        'csvTitles[0]' : 'When',   'csvCols[0]' : 'event_when', \n        'csvTitles[1]' : 'Staff',   'csvCols[1]' : 'person_id_name', \n        'csvTitles[2]' : 'Action',   'csvCols[2]' : 'action', \n        'csvTitles[3]' : 'Record ID',   'csvCols[3]' : 'on_id'       ,\n        'csvTitles[4]' : 'Record Type',   'csvCols[4]' : 'on_type',\n        'csvTitles[5]' : 'Remarks',   'csvCols[5]' : 'remarks'        \n    }\n        \n    o.params.person_id = _this.personSel.getValue();\n    var act = _this.actionSel.getValue();\n    if (act.length) {\n        o.params.action = act;\n    }\n    var tbl = _this.affectSel.getValue();\n    if (tbl.length) {\n        o.params.on_table = tbl;\n    }\n    act = _this.dateFrom.getValue();\n    if (act.format) {\n        o.params['query[from]'] = act.format('Y-m-d');\n    }\n    act = _this.dateTo.getValue();\n    if (act.format) {\n        o.params['query[to]'] = act.format('Y-m-d');\n    }\n    \n\n    new Pman.download({\n        url : baseURL + '/Roo/Events.php',\n        params : params,\n        newWindow: true\n        \n    });\n}"
+                                                        "click": "function (_self, e)\n{\n \n    var params = {\n        'sort' : 'event_when',\n        'dir' : 'DESC',\n        'start' : 0,\n        'limit' : 400,\n        person_id : _this.personSel.getValue(), \n        'csvTitles[0]' : 'When',   'csvCols[0]' : 'event_when', \n        'csvTitles[1]' : 'Staff',   'csvCols[1]' : 'person_id_name', \n        'csvTitles[2]' : 'Action',   'csvCols[2]' : 'action', \n        'csvTitles[3]' : 'Record ID',   'csvCols[3]' : 'on_id'       ,\n        'csvTitles[4]' : 'Record Type',   'csvCols[4]' : 'on_table',\n        'csvTitles[5]' : 'Remarks',   'csvCols[5]' : 'remarks'        \n    }\n        \n    o.params.person_id = _this.personSel.getValue();\n    var act = _this.actionSel.getValue();\n    if (act.length) {\n        o.params.action = act;\n    }\n    var tbl = _this.affectSel.getValue();\n    if (tbl.length) {\n        o.params.on_table = tbl;\n    }\n    act = _this.dateFrom.getValue();\n    if (act.format) {\n        o.params['query[from]'] = act.format('Y-m-d');\n    }\n    act = _this.dateTo.getValue();\n    if (act.format) {\n        o.params['query[to]'] = act.format('Y-m-d');\n    }\n    \n\n    new Pman.download({\n        url : baseURL + '/Roo/Events.php',\n        params : params,\n        newWindow: true\n        \n    });\n}"
                                                     },
                                                     "text": "Download to Excel",
                                                     "xtype": "Button",
index 08feca6..04879a4 100644 (file)
@@ -270,7 +270,7 @@ Pman.Tab.AdminLogEvents = new Roo.util.Observable({
                                                     'csvTitles[1]' : 'Staff',   'csvCols[1]' : 'person_id_name', 
                                                     'csvTitles[2]' : 'Action',   'csvCols[2]' : 'action', 
                                                     'csvTitles[3]' : 'Record ID',   'csvCols[3]' : 'on_id'       ,
-                                                    'csvTitles[4]' : 'Record Type',   'csvCols[4]' : 'on_type',
+                                                    'csvTitles[4]' : 'Record Type',   'csvCols[4]' : 'on_table',
                                                     'csvTitles[5]' : 'Remarks',   'csvCols[5]' : 'remarks'        
                                                 }