root/ip/tags/release_1_3_0_53/includes/functions_calendar.php
| 111 | 163 | ||
|---|---|---|---|
182 | $date_end = date_dsp($fmt_end, $calendar_start + $calendar_duration); | 182 | $date_end = date_dsp($fmt_end, $calendar_start + $calendar_duration); |
183 | 183 | ||
184 | // add period to the title | 184 | // add period to the title |
185 | $calendar_icon = '<a href="' . append_sid(IP_ROOT_PATH . 'calendar.' . PHP_EXT . '?start=' . date('Ymd', $calendar_start)). '"><img src="' . $images['icon_calendar'] . '" hspace="3" border="0" valign="top" alt="' . $lang['Calendar_event'] . '" /></a>'; | 185 | $calendar_icon = '<a href="' . append_sid(IP_ROOT_PATH . 'calendar.' . PHP_EXT . '?start=' . date('Ymd', $calendar_start)). '"><img src="' . $images['icon_calendar'] . '" hspace="3" style="vertical-align: top;" alt="' . $lang['Calendar_event'] . '" /></a>'; |
186 | if (empty($calendar_duration)) | 186 | if (empty($calendar_duration)) |
187 | { | 187 | { |
188 | $res = sprintf($lang['Calendar_time'], $date_start); | 188 | $res = sprintf($lang['Calendar_time'], $date_start); |
... | ... | ||
575 | $new_row['event_link'] = $topic_link; | 575 | $new_row['event_link'] = $topic_link; |
576 | $new_row['event_birthday'] = false; | 576 | $new_row['event_birthday'] = false; |
577 | $new_row['event_txt_class'] = 'genmed'; | 577 | $new_row['event_txt_class'] = 'genmed'; |
578 | $new_row['event_type_icon'] = '<img src="' . $images['icon_tiny_topic'] . '" border="0" valign="bottom" hspace="2" />'; | 578 | $new_row['event_type_icon'] = '<img src="' . $images['icon_tiny_topic'] . '" style="vertical-align: bottom;" hspace="2" />'; |
579 | 579 | ||
580 | $events[] = $new_row; | 580 | $events[] = $new_row; |
581 | } | 581 | } |
... | ... | ||
680 | 680 | ||
681 | if (($month > 0) && ($day_end > 0)) | 681 | if (($month > 0) && ($day_end > 0)) |
682 | { | 682 | { |
683 | $month_start = $month; | 683 | $month_start = (int) $month; |
684 | $month_end = $month; | 684 | $month_end = (int) $month; |
685 | if ($day_end < $day) | 685 | if ($day_end < $day) |
686 | { | 686 | { |
687 | $month_end = ($month_end == 12) ? 1 : $month_end++; | 687 | $month_end = ($month_end == 12) ? 1 : ($month_end + 1); |
688 | $sql_where .= ' AND (((u.user_birthday_m = ' . $month_start . ') AND (u.user_birthday_d >= ' . $day . ')) OR ((u.user_birthday_m = ' . $month_end . ') AND (u.user_birthday_d <= ' . $day_end . ')))'; | 688 | $sql_where .= ' AND (((u.user_birthday_m = ' . $month_start . ') AND (u.user_birthday_d >= ' . $day . ')) OR ((u.user_birthday_m = ' . $month_end . ') AND (u.user_birthday_d <= ' . $day_end . ')))'; |
689 | } | 689 | } |
690 | else | 690 | else |
Download diff