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"; } $td_width_small = $td_width - 10; $return .= ")

"; $return .= ""; $return .= ""; $return .= "
"; $return .= ""; $return .= "
"; $return .= ""; $return .= "
"; $return .= ""; $return .= ""; $return .= "
"; $return .= "
"; $return .= ealist_htmllist($next_date_time); $return .= "
"; $i++; } return $return; } function ealist_stat() { return ealist_getstats(); } // Admin Part add_action('admin_menu', 'ealist_admin'); function ealist_admin() { add_options_page('Easy Attendance List Options', 'Attendance List', 'manage_options', 'ealist', 'ealist_options'); } function ealist_options() { if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } ?>

Easy Attendance List


Welcome to Easy Attendance List!
Please set the date for the next meeting. Keep it empty, if you don't want to set a date or a weekly day.

To add the list please insert the following command intor your post (including the brakets):
[easyattendancelist]
And to add the statistic please use the following command:
[easyattendancelist_stat]
Number of attendant
Special Date (dd.mm.yyyy)
Weekly
Change status> Forbid anonymous to edit
Name for attendant (Standard: Attendant)
Input Text
(Appears, if nobody signed up)
Next date color (Standard: #AAA)
List width px
Stats width px