Pman.Tab.AdminEnum.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index 1e4bd8b..32247ad 100644 (file)
@@ -24,6 +24,7 @@
   "e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
   "4c3880bb027f159e801041b1021e88e8" : "Method",
   "a4ecfc70574394990cf17bd83df499f7" : "Event",
+  "12ea1a38991aa3bc4992b10adac0f3bc" : "Event Details",
   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
   "f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
  },
   {
    "xtype" : "NestedLayoutPanel",
    "$ xns" : "Roo",
+   "String region" : "center",
+   "String title" : "Current Notifications",
+   "Boolean background" : false,
    "items" : [
     {
      "xtype" : "BorderLayout",
      "$ xns" : "Roo",
      "* prop" : "layout",
      "items" : [
+      {
+       "xtype" : "LayoutRegion",
+       "$ xns" : "Roo",
+       "* prop" : "center"
+      },
+      {
+       "autoScroll" : true,
+       "xtype" : "LayoutRegion",
+       "String collapsedTitle" : "View Details",
+       "$ xns" : "Roo",
+       "Boolean collapsible" : true,
+       "split" : true,
+       "String title" : "Event Details",
+       "height" : 150,
+       "* prop" : "south",
+       "Boolean split" : true
+      },
       {
        "listeners" : {
         "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n    \n}"
             }
            ]
           },
+          {
+           "listeners" : {
+            "afterselectionchange" : "function (_self)\n{\n    // load detail log in _this.viewPanel;\n    if (!this.getSelected()) {\n        this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    var id = this.getSelected().data.event_id;\n    if (id *1 < 0) {\n    \n        this.viewPanel.setContent(\"No Event for this line\");    \n        return;\n    }\n    _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n    \n}"
+           },
+           "xtype" : "RowSelectionModel",
+           "singleSelect" : true,
+           "$ xns" : "Roo.grid",
+           "* prop" : "sm"
+          },
           {
            "pageSize" : 25,
            "xtype" : "PagingToolbar",
          ]
         }
        ]
+      },
+      {
+       "listeners" : {
+        "render" : "function (_self)\n{\n  _this.viewPanel = _self;\n}"
+       },
+       "fitToFrame" : true,
+       "region" : "south",
+       "xtype" : "ContentPanel",
+       "$ xns" : "Roo"
       }
      ]
     }