Index: birthdays.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/birthdays/birthdays.module,v retrieving revision 1.7 diff -u -r1.7 birthdays.module --- birthdays.module 9 Apr 2008 11:48:47 -0000 1.7 +++ birthdays.module 15 Aug 2008 19:51:12 -0000 @@ -806,7 +806,8 @@ $field = variable_get('birthdays_field_name', ''); if (!empty( $birthdays)) { - $output = ''; + $output = '
'; + $odd=1; foreach ($birthdays as $b) { $user = user_load(array('uid' => $b)); $age = _birthdays_show_age($user); @@ -814,15 +815,25 @@ $age = isset($age) ? '('. ($user->age + ($user->{$field}['day'] != format_date(time(), 'custom', 'd'))) .')' : ''; $user->{$field}['year'] = NULL; // Don't show the year in blocks - $output .= ''; + if ($odd) + { + $tr_class = "odd"; + $odd = 0; + } + else + { + $tr_class = "even"; + $odd = 1; + } + $output .= ''; } $output .= '
'.t("Name").''.t("Date"). '
'. theme('username', $user) .' '. $age .''. _birthdays_show_date($user->{$field}, $user) .'
'. theme('username', $user) .' '. $age .''. _birthdays_show_date($user->{$field}, $user) .'
'; } else { - $output = '

'. t('Nobody is having their birthday soon.') .'

'; + $output = '

'. t('Nobody is having their birthday soon.') .'

'; } - $output .= ''; + $output .= ''; return $output; }