var pagesize=20;
var page = thispage();

function ajaxList(currentpage)
{
	JumbotCms.Loading.show("正在加载数据...",200,60);
    page = currentpage;
	$.ajax({
		type:       "get",
		dataType:   "json",
		data:       "page="+currentpage+"&pagesize="+pagesize+"&time="+(new Date().getTime()),
		url:        "tool/ajax.aspx?oper=hdlist",
		error: function(){
			JumbotCms.Alert("读取数据有误,请稍候重试", "0");
		},
		success:    function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxList").setTemplateURL("templates/hdlist.htm?time="+(new Date().getTime()), null, {filter_data: true});
				$("#ajaxList").processTemplate(d);
				$("#ajaxPageBar").html(d.pagerbar);
				JumbotCms.Loading.hide();
				break;
			}

		}
	});
}

$(document).ready(function(){
	ajaxList(page);
})

