Setup the other tabs, empty so far

This commit is contained in:
james 2009-10-07 21:49:49 +00:00
parent cdc93de3bd
commit 30171370e0

View File

@ -160,8 +160,7 @@ switch($_GET['action']){
break; break;
case "manage_tab_overview": 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']}'"); $q=mysql_query("SELECT * FROM fundraising_campaigns WHERE id='$campaign_id' AND fiscalyear='{$config['FISCALYEAR']}'");
if($r=mysql_fetch_object($q)) { if($r=mysql_fetch_object($q)) {
@ -196,6 +195,40 @@ switch($_GET['action']){
} }
exit; exit;
break; 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(){ function save_campaign_info(){
@ -279,13 +312,13 @@ function managecampaignfinish() {
update_tab_overview(); update_tab_overview();
break; break;
case 'campaign_tab_donations': case 'campaign_tab_donations':
// update_sponsorshipinfo(); update_tab_donations();
break; break;
case 'campaign_tab_prospects': case 'campaign_tab_prospects':
// update_contactsinfo(); update_tab_prospects();
break; break;
case 'campaign_tab_communications': case 'campaign_tab_communications':
// update_activityinfo(); update_tab_communications();
break; break;
} }
}, },
@ -307,6 +340,15 @@ function campaigninfo_save(id) {
function update_tab_overview() { function update_tab_overview() {
$("#campaign_tab_overview").load("<?$_SERVER['PHP_SELF']?>?action=manage_tab_overview&id="+currentcampaignid); $("#campaign_tab_overview").load("<?$_SERVER['PHP_SELF']?>?action=manage_tab_overview&id="+currentcampaignid);
} }
function update_tab_donations() {
$("#campaign_tab_donations").load("<?$_SERVER['PHP_SELF']?>?action=manage_tab_donations&id="+currentcampaignid);
}
function update_tab_prospects() {
$("#campaign_tab_prospects").load("<?$_SERVER['PHP_SELF']?>?action=manage_tab_prospects&id="+currentcampaignid);
}
function update_tab_communications() {
$("#campaign_tab_communications").load("<?$_SERVER['PHP_SELF']?>?action=manage_tab_communications&id="+currentcampaignid);
}
</script> </script>
<? <?