From c5c4635d2775747e757735893274722634050d9c Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 12 Jul 2018 17:36:06 +0800 Subject: [PATCH] Pman.Tab.AdminLogEvents.bjs Pman.Tab.AdminLogEvents.js --- Pman.Tab.AdminLogEvents.bjs | 30 +++++++++++++++--------------- Pman.Tab.AdminLogEvents.js | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Pman.Tab.AdminLogEvents.bjs b/Pman.Tab.AdminLogEvents.bjs index 089aba3..ffb9067 100644 --- a/Pman.Tab.AdminLogEvents.bjs +++ b/Pman.Tab.AdminLogEvents.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminLogEvents", "parent" : "Pman.Tab.AdminLogs", "title" : "Admin - Logs - Events", - "path" : "/home/benny/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs", + "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman/Admin/Pman.Tab.AdminLogEvents.bjs", "permname" : "Admin.Logs", "modOrder" : "001", "strings" : { @@ -19,9 +19,9 @@ "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person", "340c2ee497b85d5954b01c64de7f44f6" : "Select Person ", "679308a758de538c5f39c4c6cdba6593" : "Select Affects", + "a5ed77d7b99f0411eb492c6fea81b7b9" : "Whenxxxx", "a8929eb5c1553d3f70497f862d25d0ce" : "Select Action", "39b9e051f9fe75e65c7a330bb00499d4" : "Date Range", - "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When", "004bf6c9a40003140292e97330236c53" : "Action", "2bd339d85ee3b33e513359ce781b60cc" : "Restore", "90e4ac2e5a22e53df63b6b186d8727ba" : "No Events found", @@ -30,8 +30,8 @@ "items" : [ { "region" : "center", - "title" : "Events", "xtype" : "NestedLayoutPanel", + "title" : "Events", "$ xns" : "Roo", "items" : [ { @@ -65,9 +65,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "region" : "center", "fitToframe" : true, "background" : false, - "region" : "center", "title" : "Events", "xtype" : "GridPanel", "fitContainer" : true, @@ -114,8 +114,8 @@ }, { "$ url" : "baseURL + '/Roo/Events.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" } @@ -247,8 +247,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_person'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -303,8 +303,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Events.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -359,8 +359,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Events.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -404,8 +404,8 @@ }, { "xtype" : "ColumnModel", + "header" : "Whenxxxx", "width" : 100, - "header" : "When", "$ renderer" : "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -413,8 +413,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "#id", + "width" : 100, "$ xns" : "Roo.grid", "$ Boolean hidden" : "(function() {\n return typeof(Pman.Tab.AdminLogEvents.hide_cols) == 'undefined' ? \n false : \n ((Pman.Tab.AdminLogEvents.hide_cols.indexOf('id') > -1) ? true : false);\n})()", "* prop" : "colModel[]", @@ -422,8 +422,8 @@ }, { "xtype" : "ColumnModel", - "width" : 150, "header" : "Person", + "width" : 150, "$ renderer" : "function(v,x,r) { \n \n var ptable = _this.tableSel.getValue();\n \n var efield = 'person_id_email';\n var nfield = 'person_id_name'; \n \n if(\n ptable.length &&\n ptable != 'Person' &&\n typeof(r.data[ptable + '_id_email']) != 'undefined' &&\n typeof(r.data[ptable + '_id_name']) != 'undefined'\n ){\n efield = ptable + '_id_email';\n nfield = ptable + '_id_name'; \n }\n \n var email = r.data[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n var name = r.data[nfield]; // ? r.data.person_id_name : r.data.person_id_name; \n return String.format('{0} <{1}>', \n name, email); \n\n\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -431,8 +431,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Action", "width" : 100, + "header" : "Action", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -440,8 +440,8 @@ }, { "xtype" : "ColumnModel", - "header" : "IP", "width" : 100, + "header" : "IP", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -449,8 +449,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Affected", + "width" : 100, "$ renderer" : "function(v, x, r) { \n return v ? String.format('{0}({1})', v, r.data.on_id) : ''; \n }", "$ xns" : "Roo.grid", "$ Boolean hidden" : "(function() {\n return typeof(Pman.Tab.AdminLogEvents.hide_cols) == 'undefined' ? \n false : \n ((Pman.Tab.AdminLogEvents.hide_cols.indexOf('on_table') > -1) ? true : false);\n})()", @@ -459,8 +459,8 @@ }, { "xtype" : "ColumnModel", - "width" : 300, "header" : "Remarks", + "width" : 300, "$ renderer" : "function(v) { return String.format('{0}', v, Roo.util.Format.htmlEncode(v)); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminLogEvents.js b/Pman.Tab.AdminLogEvents.js index 41b7847..598a895 100644 --- a/Pman.Tab.AdminLogEvents.js +++ b/Pman.Tab.AdminLogEvents.js @@ -20,9 +20,9 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({ '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' :"Person ", '340c2ee497b85d5954b01c64de7f44f6' :"Select Person ", '679308a758de538c5f39c4c6cdba6593' :"Select Affects", + 'a5ed77d7b99f0411eb492c6fea81b7b9' :"Whenxxxx", 'a8929eb5c1553d3f70497f862d25d0ce' :"Select Action", '39b9e051f9fe75e65c7a330bb00499d4' :"Date Range", - '4e97aeeaa8b15ca1180fcd1f3ac478d1' :"When", '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' :"Person", '004bf6c9a40003140292e97330236c53' :"Action", '2bd339d85ee3b33e513359ce781b60cc' :"Restore", @@ -1359,7 +1359,7 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({ { xtype : 'ColumnModel', dataIndex : 'event_when', - header : _this._strings['4e97aeeaa8b15ca1180fcd1f3ac478d1'] /* When */, + header : _this._strings['a5ed77d7b99f0411eb492c6fea81b7b9'] /* Whenxxxx */, renderer : function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }, width : 100, xns : Roo.grid, -- 2.39.2