You are here

function page_show_all_contribution_recipients in Contribute 6

1 string reference to 'page_show_all_contribution_recipients'
contribute_menu in ./contribute.module

File

./contribute.module, line 261
Lets users contribute to projects

Code

function page_show_all_contribution_recipients() {
  $contribution_recipients = get_all_contribution_recipients();
  $output = '<table class="contribution-recpient-list">';
  $output .= '<tr class=contribution-recipient-list-header>';
  $output .= '<th>Nid</th><th>Title</th><th>Total</th><th>Budget</th></tr>';
  $zebra = 'odd';
  while ($recipient = db_fetch_array($contribution_recipients)) {
    $node = node_load($recipient['nid']);
    $output .= '<tr class="' . $zebra . '">';
    $output .= '<td class="uid" align="center">' . check_plain($recipient['nid']) . '</td>';
    $output .= '<td class="title">' . check_plain($node->title) . '</td>';
    $output .= '<td class="total" align="center">$' . check_plain($recipient['total']) . '</td>';
    $output .= '<td class="budget">$' . check_plain($recipient['budget']) . '</td>';
    $zebra = $zebra == 'odd' ? 'even' : 'odd';
  }
  $output .= "</table>";
  return $output;
}