diff --git a/admin/fundraising_campaigns.php b/admin/fundraising_campaigns.php index c76387b..4c53237 100644 --- a/admin/fundraising_campaigns.php +++ b/admin/fundraising_campaigns.php @@ -160,8 +160,7 @@ switch($_GET['action']){ break; case "manage_tab_overview": - $campaign_id=intval($_GET['id']); - + $campaign_id=intval($_GET['id']); $q=mysql_query("SELECT * FROM fundraising_campaigns WHERE id='$campaign_id' AND fiscalyear='{$config['FISCALYEAR']}'"); if($r=mysql_fetch_object($q)) { @@ -196,6 +195,40 @@ switch($_GET['action']){ } exit; break; + + case "manage_tab_donations": + $campaign_id=intval($_GET['id']); + $q=mysql_query("SELECT * FROM fundraising_campaigns WHERE id='$campaign_id' AND fiscalyear='{$config['FISCALYEAR']}'"); + + if($r=mysql_fetch_object($q)) { + + } + exit; + break; + + + case "manage_tab_prospects": + $campaign_id=intval($_GET['id']); + $q=mysql_query("SELECT * FROM fundraising_campaigns WHERE id='$campaign_id' AND fiscalyear='{$config['FISCALYEAR']}'"); + + if($r=mysql_fetch_object($q)) { + + } + exit; + break; + + + case "manage_tab_communications": + $campaign_id=intval($_GET['id']); + $q=mysql_query("SELECT * FROM fundraising_campaigns WHERE id='$campaign_id' AND fiscalyear='{$config['FISCALYEAR']}'"); + + if($r=mysql_fetch_object($q)) { + + } + exit; + break; + + } function save_campaign_info(){ @@ -279,13 +312,13 @@ function managecampaignfinish() { update_tab_overview(); break; case 'campaign_tab_donations': - // update_sponsorshipinfo(); + update_tab_donations(); break; case 'campaign_tab_prospects': - // update_contactsinfo(); + update_tab_prospects(); break; case 'campaign_tab_communications': - // update_activityinfo(); + update_tab_communications(); break; } }, @@ -307,6 +340,15 @@ function campaigninfo_save(id) { function update_tab_overview() { $("#campaign_tab_overview").load("?action=manage_tab_overview&id="+currentcampaignid); } +function update_tab_donations() { + $("#campaign_tab_donations").load("?action=manage_tab_donations&id="+currentcampaignid); +} +function update_tab_prospects() { + $("#campaign_tab_prospects").load("?action=manage_tab_prospects&id="+currentcampaignid); +} +function update_tab_communications() { + $("#campaign_tab_communications").load("?action=manage_tab_communications&id="+currentcampaignid); +}