Mys.channelBarCtrl = function(config)
{
  Ext.apply(this, config);
  this.init();
};


Mys.channelBarCtrl.prototype =
{
  init : function()
  {
    this.barRecent = new Mys.barCtrlRecent_ch('recent_join');
    this.barPopular = new Mys.barCtrlPopular_ch('popular_join');
  }


};


//최근참여자
Mys.barCtrlRecent_ch = function(id)
{
  Mys.barCtrlRecent_ch.superclass.constructor.call(this, id);
};
Ext.extend(Mys.barCtrlRecent_ch, Mys.barCtrlChannelPub,
{
  type : "latest"
  ,limit : 12
  ,total : 13
  ,tpl : new Ext.Template('<div class="item"><a href="http://{mydomain}.'+DOMAIN+'" onfocus="this.blur();" alt="{name}" title="{name}"><img class="i1" src="{mylogo}"></a></div>')


  ,init : function()
	{
	  this.setListEl();
	  this.el.child(".btnPrev").on("click",this.getPrev,this);
	  this.el.child(".btnNext").on("click",this.getNext,this);
	}

	,getList : function()
	{
	  Global.modelGroup.getMemberWithCondi(PAGE_USER_ID , this.start, this.limit, this.type, this.cbGetList, this);
	}

  ,setListEl : function()
  {
	  this.listEl = this.el.child(".c4");
  }

  ,getItems : function(data)
  {
    return data.response.member ? data.response.member : null;
  }

});


//인기참여자
Mys.barCtrlPopular_ch = function(id)
{
  Mys.barCtrlPopular_ch.superclass.constructor.call(this, id);
};
Ext.extend(Mys.barCtrlPopular_ch, Mys.barCtrlRecent_ch,
{
  type : "popular"
});
