diff --git a/admin/donors.php b/admin/donors.php index 5d1cdd75..3078a05c 100644 --- a/admin/donors.php +++ b/admin/donors.php @@ -22,11 +22,11 @@ */ ?> - require("../common.inc.php"); - require_once("../user.inc.php"); - user_auth_required('committee', 'admin'); +require("../common.inc.php"); +require_once("../user.inc.php"); +user_auth_required('committee', 'admin'); - switch($_GET['action']) { +switch($_GET['action']) { case 'organizationinfo_load': $id=intval($_GET['id']); $q=mysql_query("SELECT * FROM sponsors WHERE id='$id'"); @@ -69,7 +69,6 @@ } exit; break; - case 'sponsorshipinfo_load': $id=intval($_GET['id']); $ret=array(); @@ -93,9 +92,20 @@ delete_contact(); exit; break; - } + case 'activityinfo_load': + // make sure a donor id has been selected + if($_GET['id']){ + draw_activityinfo_form(); + } + exit; + break; + case 'activityinfo_save': + save_activityinfo(); + exit; + break; +} - send_header("Donor/Sponsor Management", +send_header("Donor/Sponsor Management", array('Committee Main' => 'committee_main.php', 'Administration' => 'admin/index.php', 'Fundraising' => 'admin/fundraising.php') @@ -237,7 +247,7 @@ function draw_contactsinfo_form($contact = null){ } -// draw a form in which to enter contact info +// draw a form in which to enter information about the various contacts function draw_contact_form($sponsor_id, $contact = null){ if($contact != null){ $id = $contact["id"]; @@ -305,6 +315,59 @@ function draw_contact_form($sponsor_id, $contact = null){ +
+