@@ 983-999 (lines=17) @@ | ||
980 | $link = "$this->year-$this->month-$date"; |
|
981 | ||
982 | // ����פˤ�����迧����ʬ�� |
|
983 | if (isset($this->holidays[$link])) { |
|
984 | // Holiday |
|
985 | $bgcolor = $this->holiday_bgcolor; |
|
986 | $color = $this->holiday_color; |
|
987 | } elseif ($wday % 7 == 0) { |
|
988 | // Sunday |
|
989 | $bgcolor = $this->sunday_bgcolor; |
|
990 | $color = $this->sunday_color; |
|
991 | } elseif ($wday == 6) { |
|
992 | // Saturday |
|
993 | $bgcolor = $this->saturday_bgcolor; |
|
994 | $color = $this->saturday_color; |
|
995 | } else { |
|
996 | // Weekday |
|
997 | $bgcolor = $this->weekday_bgcolor; |
|
998 | $color = $this->weekday_color; |
|
999 | } |
|
1000 | ||
1001 | // ��������طʿ��ϥ��饤�Ƚ��� |
|
1002 | if ($date == $this->date && $target_highlight_flag) { |
@@ 1174-1190 (lines=17) @@ | ||
1171 | $link = "$this->year-$this->month-$date"; |
|
1172 | ||
1173 | // COLORS of days |
|
1174 | if (isset($this->holidays[$link])) { |
|
1175 | // Holiday |
|
1176 | $bgcolor = $this->holiday_bgcolor; |
|
1177 | $color = $this->holiday_color; |
|
1178 | } elseif ($wday % 7 == 0) { |
|
1179 | // Sunday |
|
1180 | $bgcolor = $this->sunday_bgcolor; |
|
1181 | $color = $this->sunday_color; |
|
1182 | } elseif ($wday == 6) { |
|
1183 | // Saturday |
|
1184 | $bgcolor = $this->saturday_bgcolor; |
|
1185 | $color = $this->saturday_color; |
|
1186 | } else { |
|
1187 | // Weekday |
|
1188 | $bgcolor = $this->weekday_bgcolor; |
|
1189 | $color = $this->weekday_color; |
|
1190 | } |
|
1191 | ||
1192 | // Hi-Lighting the SELECTED DATE |
|
1193 | if ($link == $user_now_Ynj) { |