");
htmls.push("
");
htmls.push("
");
htmls.push("
");
htmls.push("
");
htmls.push("
");
htmls.push("
");
htmls.push("
");
htmls.push("");
htmls.push("" + myMonth[0][0] + " | ");
htmls.push("" + myMonth[0][1] + " | ");
htmls.push("" + myMonth[0][2] + " | ");
htmls.push("" + myMonth[0][3] + " | ");
htmls.push("" + myMonth[0][4] + " | ");
htmls.push("" + myMonth[0][5] + " | ");
htmls.push("" + myMonth[0][6] + " | ");
htmls.push("
");
var d, w;
for (w = 1; w < 7; w++) {
htmls.push("");
for (d = 0; d < 7; d++) {
var ifHasSigned = calUtil.ifHasSigned(signList,myMonth[w][d]);
if(ifHasSigned){
htmls.push("" + (!isNaN(myMonth[w][d]) ? myMonth[w][d] : " ") + " | ");
} else if(myMonth[w][d]==calUtil.curDate){
htmls.push("" + (!isNaN(myMonth[w][d]) ? myMonth[w][d] : " ") + " | ");
var str=tb[calUtil.showMonth-1] + "月" + tb[calUtil.showDate-1] + ((tb[calUtil.showDate-1].length)>1?"":"日");
htmls[2]=""+str+"
"
} else {
if (!isNaN(myMonth[w][d]))
{
htmls.push("" + myMonth[w][d] + " | ");
}
else{
htmls.push(" | ");
}
}
}
htmls.push("
");
}
htmls.push("
");
htmls.push("
");
htmls.push("
");
return htmls.join('');
}
};
//默认初始化
calUtil.init([{"date":""}]);
function getdata1088301(){
//使用服务器期时间戳,校正本地日历时间
var url="/system/resource/news/calendar/newsservices.jsp?date=2018-04";
$.get(url,function(data,state,xhr){
var datestr=xhr.getResponseHeader("Date");
var date=new Date(datestr);
if(datestr!=null && date!=undefined){
calUtil.curYear=calUtil.showYear=date.getFullYear();
calUtil.curMonth=calUtil.showMonth=date.getMonth() + 1;
calUtil.curDate=calUtil.showDate=date.getDate();
}
getJson1088301(calUtil.showYear,calUtil.showMonth);
},"json")
}
$(function (){
getdata1088301();
var time=calUtil.showYear+"-"+calUtil.showMonth+"-"+calUtil.showDate;
})