Mys.kSemiScriptIndexList = function(config)
{
	Mys.kSemiScriptIndexList.superclass.constructor.call(this, config);
	
	this.on("move", function(start, maxRow){
		Global.modelItem.getList(this.boardID, this.boardType, this.order, this.dir, null, null, this.range, this.startDate, this.endDate, null, start, maxRow, this.keyword, this.scriptFlag, this.defaultFlag, this.cate, function(data){
			if(data && data.response.code == 100)
				this.update(data.response.item, data.response.total);
			else
				this.empty();
		}, this)
	}, this);
};

Ext.extend(Mys.kSemiScriptIndexList, Mys.TemplateList, {
	boardType : 1,
	scriptFlag : 1,
	dir : "desc",
	order : "insert_date",
	
	className : "mys-script-index",
	maxRow : 2,
	
	elTemplate : (new Ext.Template([
		'<div class="{className}" width="160" style="" border="0" cellspacing="0" cellpadding="0">',
			'<div class="{headerClassName}"></div>',
			'<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.kSemiScriptIndexItem
});
