");
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(myMonth[w][d]==calUtil.curDate){
if(ifHasSigned)
{
var count = calUtil.newsCount(signList,myMonth[w][d]);
htmls.push("" + (!isNaN(myMonth[w][d]) ? myMonth[w][d] : " ") + "");
htmls.push("");
htmls.push(" | ");
var str=calUtil.showYear+ "-" + tb[calUtil.showMonth-1] + "-" + tb[calUtil.showDate-1] + ((tb[calUtil.showDate-1].length)>1?"":"");
htmls[6]=""+""+"
";
}else{
htmls.push("" + (!isNaN(myMonth[w][d]) ? myMonth[w][d] : " ") + "");
htmls.push("");
htmls.push(" | ");
var str=calUtil.showYear+ "-" + tb[calUtil.showMonth-1] + "-" + tb[calUtil.showDate-1] + ((tb[calUtil.showDate-1].length)>1?"":"");
htmls[6]=""+""+"
";
}
} else if(ifHasSigned){
var count = calUtil.newsCount(signList,myMonth[w][d]);
var day = myMonth[w][d];
htmls.push("" + (!isNaN(myMonth[w][d]) ? myMonth[w][d] : ""));
htmls.push("");
htmls.push(" | ");
} 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 getdata(){
//默认初始化
//使用服务器期时间戳,校正本地日历时间
var url="/system/resource/newsdata/getData.jsp?owner=1507904764";
$.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();
}
getJson(calUtil.showYear,calUtil.showMonth);
},"json")
}
getdata();