Mys.eLearningIndexList = function(config)
{
	Mys.eLearningIndexList.superclass.constructor.call(this, config);
	this.on("move", function(start, maxRow){
		this.startLoading();
		Global.modelItem.getIndexList(this.boardID, this.boardType, this.order, this.dir, this.basis, this.timePoint, this.range, start, maxRow, function(data){
			if(data && data.response.code == 100)
				this.update(data.response.item, data.response.total);
			else
				this.empty();
		}, this)
	}, this);
};

Ext.extend(Mys.eLearningIndexList, Mys.TemplateList, {
	boardType : 5,
	boardID : 14,
	order : "insert_date",
	dir : "desc",
	
	className : "mys-learning",
	maxRow : 5,
	elTemplate : (new Ext.Template([
		'<div class="{className}" width="160" style="" border="0" cellspacing="0" cellpadding="0">',
			'<div class="{bodyClassName}"></div>',
			'<div style="text-align : center;" class="{emptyClassName}">내용이 없습니다.</div>',
			'<div class="{loadingClassName}"><img class="mys-loading-img" src="/images/common/loadingss.gif"/></div>',
			'<div class="{pagerClassName}"></div></td>',
		'</div>'
	])).compile(),
	
	itemClass : Mys.eLearningIndexItem
});
