From 5ec6879149e7aa3b85c0739192f9f6bc5b2ce975 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 9 Sep 2009 02:39:22 +0000 Subject: [PATCH] A couple fundraising changes for readability --- admin/fundraising.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/admin/fundraising.php b/admin/fundraising.php index c0b9fcd..39e66ba 100644 --- a/admin/fundraising.php +++ b/admin/fundraising.php @@ -60,13 +60,14 @@ require_once("../dialog.inc.php"); echo "\n"; echo "".i18n($r->name)."\n"; - echo "".format_money($r->goal)."\n"; + echo "".format_money($r->goal)."\n"; echo "\n"; if($r->type=="general") $orsql.="OR fundraising_type IS NULL"; $typetotal=0; + $typeprobtotal=0; $sq=mysql_query("SELECT sponsorships.id, sponsors.organization, sponsorships.value, sponsorships.status, sponsorships.probability FROM sponsorships JOIN sponsors ON sponsorships.sponsors_id=sponsors.id @@ -75,11 +76,11 @@ require_once("../dialog.inc.php"); ORDER BY status DESC, probability DESC, organization"); while($sr=mysql_fetch_object($sq)) { echo "id\" class=\"fundraising{$sr->status}\">"; - echo "id&fundraising_type=$r->type',400,250)\" href=\"#\">"; - echo "id\">"; + echo ""; + echo "id\">"; echo ""; - echo "$sr->organization\n"; + echo "id&fundraising_type=$r->type',400,250)\" href=\"#\">$sr->organization\n"; /* echo "id\">"; @@ -100,23 +101,25 @@ require_once("../dialog.inc.php"); { echo "$sr->probability%"; echo ""; - echo "".format_money($sr->value).""; + echo "".format_money($sr->value).""; } else echo "\n"; $probval=$sr->probability/100*$sr->value; - echo "".format_money($probval).""; + echo "".format_money($probval).""; echo "\n"; echo "\n"; - $typetotal+=$probval; + $typeprobtotal+=$probval; + $typetotal+=$sr->value; } echo ""; echo "type',400,250)\" href=\"#\">add"; - echo "".i18n("%1 Total",array($r->name),array("Fundraising type total, eg) Award Sponsorship Total"))."\n"; - echo "".format_money($typetotal)."\n"; + echo "".i18n("%1 Total",array($r->name),array("Fundraising type total, eg) Award Sponsorship Total"))."\n"; + echo "".format_money($typetotal)."\n"; + echo "".format_money($typeprobtotal)."\n"; $typediff=$typetotal-$r->goal; - echo "".format_money($typediff)."\n"; + echo "".format_money($typediff)."\n"; echo "\n"; $totalgoal+=$r->goal;