更多
师大要闻
");
htmls.push("
");
return htmls.join('/');
}
};
calUtil.init([{"date":""}]);
function getdata(){
//默认初始化
//使用服务器期时间戳,校正本地日历时间
var url="/system/resource/newsdata/getData.jsp";
$.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();
");
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("
---|---|---|---|---|---|---|
" + (!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]="" + (!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]="" + (!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(" |