getSecondaryNavigation() ?>
getGrants() ?>
require_once('includes/common.php'); global $search_type; global $area; $alpha = ''; $variables = array(); if (isset($_GET['type'])) { foreach ($_GET as $key =?>
No grants are available.
"; } else { if ($type == 'o') { $prev_org_name = ''; $prev_first_alpha_character = ''; foreach ($arr as $grant) { $org_name = $grant['org_name']; $program_area = $grant['program_area']; $grant_amount = $grant['grant_amount']; $start_date = $grant['project_startdate']; $end_date = $grant['project_enddate']; $project_description = $grant['project_description']; $project_date = substr($grant['project_startdate'], (strlen($grant['project_startdate']) - 4), strlen($grant['project_startdate'])); $first_alpha_character = strtolower(substr($org_name, 0, 1)); if ($first_alpha_character != $prev_first_alpha_character) { print ""; } if ($org_name != $prev_org_name) { print ""; print "".$project_description."
"; $prev_org_name = $org_name; $prev_first_alpha_character = $first_alpha_character; } } else if ($type == 'f') { $prev_program_area = ''; $prev_org_name = ''; $a = 0; foreach ($arr as $grant) { $org_name = $grant['org_name']; $program_area = $grant['program_area']; $grant_amount = $grant['grant_amount']; $start_date = $grant['project_startdate']; $end_date = $grant['project_enddate']; $project_description = $grant['project_description']; $project_date = substr($grant['project_startdate'], (strlen($grant['project_startdate']) - 4), strlen($grant['project_startdate'])); $program_bookmark_pos = strpos($program_area, " "); $program_bookmark_len = $program_bookmark_pos; //$program_bookmark = strtolower(substr($program_area, 0, $program_bookmark_len)); $program_bookmark = strtolower(str_replace(" ", "", $program_area)); if ($program_area != $prev_program_area) { if ($a != 0) { print " "; } else { print ""; } //print "".$project_description."
"; $prev_org_name = $org_name; $prev_program_area = $program_area; $a++; } } else if ($type == 'c') { $prev_program_area = ''; $prev_org_name = ''; $a = 0; foreach ($arr as $grant) { $org_name = $grant['org_name']; $program_area = $grant['program_area']; $grant_amount = $grant['grant_amount']; $start_date = $grant['project_startdate']; $end_date = $grant['project_enddate']; $project_description = $grant['project_description']; $project_date = substr($grant['project_startdate'], (strlen($grant['project_startdate']) - 4), strlen($grant['project_startdate'])); $program_bookmark_pos = strpos($program_area, " "); $program_bookmark_len = $program_bookmark_pos; $program_bookmark = strtolower(substr($program_area, 0, $program_bookmark_len)); if ($program_area != $prev_program_area) { if ($a != 0) { print " "; } else { print ""; } print "".$project_description."
"; $prev_org_name = $org_name; $prev_program_area = $program_area; $a++; } } } } } ?>