Copyright (C) 2008 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> %1",array($_SESSION['name'])); if($sponsor->organization) echo " ".i18n("from %1",array($sponsor->organization)); echo "
"; echo "
"; echo ""; echo " \n"; echo " "; echo " "; // echo " "; echo " \n"; echo "
".theme_icon("edit_profile")."
".i18n("Edit My Profile")."
".theme_icon("change_password")."
".i18n("Change My Email, Usernamne, and Password")."
".theme_icon("")."
".i18n("Manage My Roles")."
\n"; echo "

Your Sponsorships

\n"; $sq=mysql_query("SELECT fundraising_donations.id, sponsors.organization, fundraising_donations.value, fundraising_donations.status, fundraising_donations.probability, fundraising.name FROM fundraising_donations JOIN sponsors ON fundraising_donations.sponsors_id=sponsors.id JOIN fundraising_goals ON fundraising_donations.fundraising_goal=fundraising_goal.goal AND fundraising_donations.fiscalyear='{$config['FISCALYEAR']}' AND fundraising_goals.fiscalyear='{$config['FISCALYEAR']}' AND sponsors.id='".$u['sponsors_id']."' ORDER BY status DESC, probability DESC, organization"); echo mysql_error(); echo ""; echo ""; echo " \n"; echo " \n"; echo " \n"; echo " "; echo "\n"; $total=0; while($sr=mysql_fetch_object($sq)) { echo "id\" class=\"fundraising{$sr->status}\">"; echo "\n"; echo ""; echo ""; echo "\n"; echo "\n"; $total+=$sr->value; } echo "
".i18n("Sponsorship Category")."".i18n("Status")."".i18n("Amount")."".i18n("Action")."
$sr->name$sr->status".format_money($sr->value).""; if($sr->status=="confirmed") { echo "Pay Online\n"; } else if($sr->status=="pending") { echo "id\">Confirm Funding\n"; } echo " "; echo "
\n"; echo "
\n"; echo "
\n"; echo "

Donor Levels

\n"; $q=mysql_query("SELECT * FROM fundraising_donor_levels WHERE year='".$config['FISCALYEAR']."' ORDER BY max DESC"); echo ""; echo ""; echo "\n"; echo "\n"; echo "\n"; $first=true; while($r=mysql_fetch_object($q)) { echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
".i18n("Level")."".i18n("Description / Benefits")."".i18n("Range")."
"; if($total>=$r->min && $total<=$r->max) { echo "".i18n("You are here"); echo " >>"; echo ""; } echo "$r->level$r->description"; if($first) { echo format_money($r->min)."+"; $first=false; } else echo format_money($r->min)."-".format_money($r->max); echo "
\n"; send_footer(); ?>