From 97887153b69ac0210c4adeded527404b78df9bf9 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 30 Sep 2009 20:29:34 +0000 Subject: [PATCH] Start renaming sponsor to donor --- admin/fundraising.php | 6 +++--- admin/fundraising_sponsorship.php | 10 +++++----- admin/fundraising_sponsorship_handler.inc.php | 3 ++- admin/sponsors.php | 14 +++++++------- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/admin/fundraising.php b/admin/fundraising.php index 69a2fa2..4cce950 100644 --- a/admin/fundraising.php +++ b/admin/fundraising.php @@ -155,13 +155,13 @@ echo ""; echo "
\n"; echo "
\n"; - echo "Manage Sponsorship Levels\n"; + echo "Manage Donation Levels\n"; echo "
\n"; - echo "Manage Sponsors\n"; + echo "Manage Donors\n"; echo "
\n"; ?> -
" id="sponsorship_editor"> +
" id="sponsorship_editor">
diff --git a/admin/fundraising_sponsorship.php b/admin/fundraising_sponsorship.php index e9c173f..0ef770d 100644 --- a/admin/fundraising_sponsorship.php +++ b/admin/fundraising_sponsorship.php @@ -59,14 +59,14 @@ function typechange() { echo ""; if($formaction=="sponsorshipadd") { - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "
".i18n("Sponsor Type")."
".i18n("Donor Type").""; echo " ".i18n("Organization"); echo " "; echo " "; echo " "; echo " ".i18n("Individual"); echo "
".i18n("Sponsor")."
".i18n("Donor").""; $q=mysql_query("SELECT * FROM sponsors ORDER BY organization"); @@ -98,19 +98,19 @@ function typechange() { } else { - echo "
".i18n("Sponsor Type")."
".i18n("Donor Type").""; if($sponsorship->sponsors_id) echo i18n("Organization"); else echo i18n("Individual"); echo "
".i18n("Sponsor")."
".i18n("Donor").""; echo $sponsorship->organization; } echo "
".i18n("Type")."
".i18n("Donation Allocation").""; $q=mysql_query("SELECT * FROM fundraising WHERE year='{$config['FAIRYEAR']}' ORDER BY name"); echo mysql_error(); diff --git a/admin/fundraising_sponsorship_handler.inc.php b/admin/fundraising_sponsorship_handler.inc.php index 09762a7..284b22a 100644 --- a/admin/fundraising_sponsorship_handler.inc.php +++ b/admin/fundraising_sponsorship_handler.inc.php @@ -20,6 +20,7 @@ if($_POST['action']=="sponsorshipedit" || $_POST['action']=="sponsorshipadd") { } if($_POST['action']=="sponsorshipedit") { + if($sponsorships_id && $fundraising_type && $value) { $q=mysql_query("SELECT * FROM sponsorships WHERE id='$sponsorships_id'"); $current=mysql_fetch_object($q); @@ -58,7 +59,7 @@ if($_POST['action']=="sponsorshipedit") { echo error_("No changes were made"); } else { - echo error_("Required fields were missing, please try again"); + echo error_("Required fields were missing, please try again".print_r($_POST,true)); } exit; } diff --git a/admin/sponsors.php b/admin/sponsors.php index f92fd45..2232120 100644 --- a/admin/sponsors.php +++ b/admin/sponsors.php @@ -145,7 +145,7 @@ break; } - send_header("Sponsors", + send_header("Donor Management", array('Committee Main' => 'committee_main.php', 'Administration' => 'admin/index.php', 'Fundraising Main' => 'admin/fundraising.php') @@ -304,11 +304,11 @@ function activityinfo_save() { -