Pman.Tab.AdminEnum.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index 119c4ae..d334228 100644 (file)
@@ -25,6 +25,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
   'e4b478c05a833569833f9cc63b6c4354' :"Displaying core_notify{0} - {1} of {2}",
   '4c3880bb027f159e801041b1021e88e8' :"Method",
   'a4ecfc70574394990cf17bd83df499f7' :"Event",
+  '12ea1a38991aa3bc4992b10adac0f3bc' :"Event Details",
   'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
   'f821027bade4aa6b7a4191cd1676cf41' :"Show Completed"
  },
@@ -41,6 +42,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
    var _this = this;
    var MODULE = this;
    return {
+   background : false,
    region : 'center',
    title : _this._strings['bf1cb7e2a337a5e2ebf614009cbce9cc'] /* Current Notifications */,
    xns : Roo,
@@ -57,9 +59,11 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
     },
     south : {
      autoScroll : true,
+     collapsedTitle : 'View Details',
      collapsible : true,
      height : 150,
      split : true,
+     title : _this._strings['12ea1a38991aa3bc4992b10adac0f3bc'] /* Event Details */,
      xns : Roo,
      '|xns' : 'Roo',
      xtype : 'LayoutRegion'
@@ -262,10 +266,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
           '|xns' : 'Roo.form',
           xtype : 'DateField',
           listeners : {
-           render : function (_self)
-            {
-                _this.fromDateSel = _self;
-               //_self.setValue(  new Date() );
+           render : function (_self)\r
+            {\r
+                _this.fromDateSel = _self;\r
+               //_self.setValue(  new Date() );\r
             },
            select : function (combo, date)
             {
@@ -291,10 +295,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
           '|xns' : 'Roo.form',
           xtype : 'DateField',
           listeners : {
-           render : function (_self)
-            {
-                _this.toDateSel = _self;
-               //_self.setValue(  new Date() );
+           render : function (_self)\r
+            {\r
+                _this.toDateSel = _self;\r
+               //_self.setValue(  new Date() );\r
             },
            select : function (combo, date)
             {
@@ -544,6 +548,30 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
          xtype : 'JsonReader'
         }
        },
+       sm : {
+        singleSelect : true,
+        xns : Roo.grid,
+        '|xns' : 'Roo.grid',
+        xtype : 'RowSelectionModel',
+        listeners : {
+         afterselectionchange : function (_self)
+          {
+              // load detail log in _this.viewPanel;
+              if (!this.getSelected()) {
+                  this.viewPanel.setContent("Nothing Selected");
+                  return;
+              }
+              var id = this.getSelected().data.event_id;
+              if (id *1 < 0) {
+              
+                  this.viewPanel.setContent("No Event for this line");    
+                  return;
+              }
+              _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
+              
+          }
+        }
+       },
        colModel : [
         {
          dataIndex : 'id',