PHP8
[Pman.BAdmin] / Pman.Tab.BAdminLogEvents.bjs
index b884897..8c79ec2 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.BAdminLogEvents",
  "parent" : "Pman.Tab.BAdminLogs",
  "title" : "Pman.Tab.BAdminLogEvents",
- "path" : "/home/john/gitlive/web.coba/Pman/BAdmin/Pman.Tab.BAdminLogEvents.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogEvents.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
   "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
   "a3ec0cd6d6acd83df3e2095c5edcf8b5" : "Log Grid",
   "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
+  "340c2ee497b85d5954b01c64de7f44f6" : "Select Person",
   "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
   "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person",
   "004bf6c9a40003140292e97330236c53" : "Action",
   "a6122a65eaa676f700ae68d393054a37" : "Start",
-  "e09692a588440a717f79563aed7ac7e5" : "select person",
   "31c03fdb82204f0ac1fe916b2c713c8c" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
   "2c92a9a6a5dbf570825e62eabcdecd8d" : "Affected"
  },
+ "named_strings" : {
+  "footer_displayMsg" : "155ca6a755e25c15ad7ce45e2f638f10",
+  "footer_emptyMsg" : "fc6f97505d89fe9277965c126744647a"
+ },
  "items" : [
   {
    "listeners" : {
-    "activate" : "function (_self)\n{\n    if(!_this.viewPanel) {\n        return;\n    }\n}"
+    "activate" : "function (_self)\n{\n    if(!document.getElementsByClassName('event-south-pane')) {\n        return;\n    }\n    \n    document.getElementsByClassName('event-south-pane')[0].classList.remove('disable-pane');\n    \n    if(\n        appDisabled.indexOf('Core.SuperAdmin') * 1 != -1\n    ) {\n        document.getElementsByClassName('event-south-pane')[0].classList.add('disable-pane');\n    }\n    \n}"
    },
    "xtype" : "Nest",
    "$ xns" : "Roo.bootstrap.panel",
@@ -53,6 +57,7 @@
        "Boolean hideTabs" : true,
        "xtype" : "Region",
        "Number height" : 150,
+       "string cls" : "event-south-pane",
        "$ xns" : "Roo.bootstrap.layout",
        "Boolean autoScroll" : true,
        "* prop" : "south",
                  "$ xns" : "Roo.bootstrap",
                  "items" : [
                   {
-                   "Number md" : 1,
+                   "Number md" : 12,
                    "xtype" : "Column",
                    "$ xns" : "Roo.bootstrap",
                    "items" : [
                     {
+                     "listeners" : {
+                      "render" : "function (_self)\n{\n    this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
+                     },
                      "String cls" : "roo-toolbar-label",
                      "xtype" : "FieldLabel",
                      "$ xns" : "Roo.bootstrap",
-                     "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>"
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 2,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                     "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
+                     "String style" : "float: left; line-height: 34px; width: 80px;"
+                    },
                     {
                      "listeners" : {
                       "render" : "function (_self)\n{\n    _this.personSel = this;\n    \n}",
                      "Boolean editable" : false,
                      "String triggerAction" : "all",
                      "Boolean alwaysQuery" : false,
-                     "string placeholder" : "select person",
-                     "Number listWidth" : 300,
+                     "string placeholder" : "Select Person",
                      "$ xns" : "Roo.bootstrap",
+                     "String style" : "float: left; width: 300px;",
                      "Boolean multiple" : false,
                      "String displayField" : "name",
                      "Boolean forceSelection" : true,
                        ]
                       }
                      ]
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 2,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                    },
                     {
                      "listeners" : {
-                      "render" : "function (_self)\n{\n    _this.actionSel = this;\n}",
+                      "render" : "function (_self)\n{\n    _this.actionSel = this;\n    \n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n    \n}",
                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
                      },
                      "Boolean allowBlank" : true,
                      "String triggerAction" : "all",
                      "Boolean alwaysQuery" : false,
                      "string placeholder" : "select action",
-                     "Number listWidth" : 300,
                      "$ xns" : "Roo.bootstrap",
+                     "String style" : "float: left; width: 300px; margin-left: 15px;",
                      "Boolean multiple" : false,
                      "String displayField" : "action",
                      "Boolean forceSelection" : true,
                        ]
                       }
                      ]
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 2,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                    },
                     {
                      "listeners" : {
-                      "render" : "function (_self)\n{\n    _this.affectSel = this;\n}",
+                      "render" : "function (_self)\n{\n    _this.affectSel = this;\n    \n    this.show();\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.hide();\n    }\n    \n}",
                       "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first');\n}"
                      },
                      "Boolean allowBlank" : true,
                      "String triggerAction" : "all",
                      "Boolean alwaysQuery" : false,
                      "string placeholder" : "select affected",
-                     "Number listWidth" : 300,
                      "$ xns" : "Roo.bootstrap",
+                     "String style" : "float: left; width: 300px; margin-left: 15px;",
                      "Boolean multiple" : false,
                      "String displayField" : "on_table",
                      "Boolean forceSelection" : true,
                        ]
                       }
                      ]
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 1,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                    },
                     {
+                     "listeners" : {
+                      "render" : "function (_self)\n{\n    this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();\n}"
+                     },
                      "String cls" : "roo-toolbar-label",
                      "xtype" : "FieldLabel",
                      "$ xns" : "Roo.bootstrap",
-                     "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>"
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 2,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                     "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
+                     "String style" : "float: left; line-height: 34px; width: 125px; margin-left: 15px;"
+                    },
                     {
                      "listeners" : {
                       "render" : "function (_self)\n{\n    _this.dateFrom = _self;\n}",
                      },
                      "xtype" : "DateField",
                      "string placeholder" : "Start",
-                     "$ xns" : "Roo.bootstrap"
-                    }
-                   ]
-                  },
-                  {
-                   "Number md" : 2,
-                   "xtype" : "Column",
-                   "$ xns" : "Roo.bootstrap",
-                   "items" : [
+                     "$ xns" : "Roo.bootstrap",
+                     "String style" : "float:left; width: 150px;"
+                    },
                     {
                      "listeners" : {
                       "render" : "function (_self)\n{\n    _this.dateTo = _self;\n}",
                      },
                      "xtype" : "DateField",
                      "string placeholder" : "End",
-                     "$ xns" : "Roo.bootstrap"
+                     "$ xns" : "Roo.bootstrap",
+                     "String style" : "float:left; width: 150px; margin-left: 15px;"
                     }
                    ]
                   }
         {
          "listeners" : {
           "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n/*\n    if (!_this.dialog) {\n        return;\n    }\n    _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n        if (_this.table) {\n            _this.table.footer.onClick('first');\n        }\n    });\n*/\n}",
-          "render" : "function (_self)\n{\n    \n    _this.table = _self;\n    \n}"
+          "render" : "function (_self)\n{\n    _this.table = _self;\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.colModel.setHidden(this.colModel.findColumnIndex('id'), true);\n        this.colModel.setHidden(this.colModel.findColumnIndex('on_table'), true);\n        this.colModel.setHidden(this.colModel.findColumnIndex('ipaddr'), true);\n        this.colModel.getColumnByDataIndex('remarks').md = 7;\n        this.colModel.getColumnByDataIndex('remarks').sm = 7;\n        this.colModel.getColumnByDataIndex('remarks').xs = 7;\n    }\n    \n}"
          },
          "String cls" : "table-fixed",
          "boolean striped" : false,
          "boolean hover" : true,
          "xtype" : "Table",
-         "boolean responsive" : true,
          "Boolean rowSelection" : true,
          "$ xns" : "Roo.bootstrap",
          "Boolean loadMask" : true,
             "beforeload" : "function (_self, o)\n{\n    if (!Pman.buildCompleted) {\n        return false;\n    }\n    \n    o.params = o.params || {};\n    \n    o.params.person_id = _this.personSel.getValue();\n    \n    var act = _this.actionSel.getValue();\n    \n    if (act.length) {\n        \n        o.params.action = act;\n        \n    }\n    var tbl = _this.affectSel.getValue();\n    \n    if (tbl.length) {\n    \n        o.params.on_table = tbl;\n        \n    }\n    \n    var f = _this.dateFrom.getValue().split(\"/\");\n    \n    var df_string = f[2]+\"-\"+f[0]+\"-\"+f[1];\n    \n    var df = new Date(Date.parse(f));\n    \n    var t = _this.dateTo.getValue().split(\"/\");\n        \n    var dt_string = t[2]+\"-\"+t[0]+\"-\"+t[1];\n    \n    var dt = new Date(Date.parse(t));\n    \n    if (\n        _this.dateFrom.format && \n        \n        _this.dateTo.format &&\n        \n        (dt > df)\n    ) {\n        o.params['query[from]'] = df_string;\n        \n        o.params['query[to]'] = dt_string;\n        \n    }\n    \n}",
             "load" : "function (_self, records, options)\n{\n    //Roo.log(records);\n}"
            },
-           "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
            "boolean hover" : true,
            "boolean striped" : true,
+           "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
            "xtype" : "Store",
            "Boolean rowSelection" : true,
            "boolean remoteSort" : true,
            "xtype" : "ColumnModel",
            "Number xs" : 1,
            "$ xns" : "Roo.grid",
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
+           "$ renderer" : "function(v) \n{ \n    var vv = v.charAt(0).toUpperCase() + v.slice(1).toLowerCase();\n    \n    return String.format('{0}', vv); \n}",
            "* prop" : "cm[]",
            "Number sm" : 1
           },