" +
"" +
"" +
"" +
"| " + arrShortDay[1] + " | " +
"" + arrShortDay[2] + " | " +
"" + arrShortDay[3] + " | " +
"" + arrShortDay[4] + " | " +
"" + arrShortDay[5] + " | " +
"" + arrShortDay[6] + " | " +
"" + arrShortDay[0] + " | " +
" "
var calYear, calMonth, calDay, tdClass, aClass
var calDate = new Date(this.year, this.month, day)
do {
calHTML += ""
do {
calYear = calDate.getFullYear()
calMonth = calDate.getMonth()
calDay = calDate.getDate()
//get cell and link class names
if (calDate.getDay() == 0 || calDate.getDay() == 6) { //weekend
aClass = "cal-wend"
} else {
aClass = "cal-wday"
}
if (calYear == this.selDate.getFullYear() && calMonth == this.selDate.getMonth() && calDay == this.selDate.getDate() && day > 0) {
tdClass = "cal-this"
aClass = "cal-lthis"
} else if (calMonth == this.month && day > 0) {
tdClass = "cal-month"
} else {
tdClass = "cal-date"
}
calHTML += "| " + calDay + " | "
day++
calDate = new Date(this.year, this.month, day)
} while (calDate.getDay() != 1) //1 - monday
calHTML += " "
} while (calDate.getMonth() == this.month)
calHTML +=
" " +
" | " +
"
" +
"