diff --git a/admin/fundraising.php b/admin/fundraising.php index d2f3d42..707a02e 100644 --- a/admin/fundraising.php +++ b/admin/fundraising.php @@ -25,46 +25,9 @@ require_once("../user.inc.php"); user_auth_required('committee', 'admin'); - - send_header("Fundraising", - array('Committee Main' => 'committee_main.php', - 'Administration' => 'admin/index.php', - 'Fundraising' => 'admin/fundraising.php'), - "fundraising" - ); - -function getUserForSponsor($sponsor_id) { - // loop through each contact and draw a form with their data in it. - $q = mysql_query("SELECT *,MAX(year) FROM users LEFT JOIN users_sponsor ON users_sponsor.users_id=users.id - WHERE - sponsors_id='" . $sponsor_id . "' - AND types LIKE '%sponsor%' - GROUP BY uid - HAVING deleted='no' - ORDER BY users_sponsor.primary DESC,lastname,firstname - LIMIT 1 - "); - $r=mysql_fetch_object($q); - return user_load_by_uid($r->uid); -} +if($_GET['action']=="refresh") { ?> -