0) { } else { $td_width = ealist_get_td_width(); } while($i < $weeks) { $next_day = get_option('ealist_day'); $today = mktime(0,0,0, date('m'), date('d'), date('Y')); $next_special_date = get_option('ealist_date'); if ($next_special_date != "") { $next_special_date = mktime(0, 0, 0, substr($next_special_date, 3, 2), substr($next_special_date, 0, 2), substr($next_special_date, 6, 4)); } if ($next_day != "") { $next_date_time = strtotime("next $next_day") - (24*3600) + ($i * 7*24*3600); // Estimating next meeting into time-stamp. In strtotime() the day after tomorrow // has to be included, since the next day is also today. This is also the time, // which will be saved to the database. } else { $next_date_time = $today; } if (($next_special_date < $next_date_time OR $next_date_time == $today) AND $next_special_date > 0 AND $next_special_date >= $today) { $next_date_time = $next_special_date; } $next_date = date("d.m.", $next_date_time); // Calculating the time out of the time stamp if (get_option("ealist_font_color")) { $next_color = get_option("ealist_font_color"); } else { $next_color = "#AAA"; } $return .= "
$next_date ("; $return .= ealist_count($next_date_time); $return .= ""; $max_no = get_option('ealist_players'); if ($max_no != "") { $return .= "/$max_no"; } $return .= ")
"; $return .= ""; $return .= ""; $return .= "[easyattendancelist][easyattendancelist_stat]