diff --git a/db/db.update.119.sql b/db/db.update.119.sql
index bcbf2b34..6d0fa11d 100644
--- a/db/db.update.119.sql
+++ b/db/db.update.119.sql
@@ -4,6 +4,7 @@ CREATE TABLE `fundraising` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`type` VARCHAR( 32 ) NOT NULL ,
`name` VARCHAR( 128 ) NOT NULL ,
+ `description` TEXT NULL DEFAULT NULL ,
`system` ENUM( 'no', 'yes' ) DEFAULT 'no' NOT NULL ,
`goal` INT UNSIGNED NOT NULL ,
`year` INT NOT NULL ,
@@ -11,8 +12,8 @@ CREATE TABLE `fundraising` (
) TYPE = MYISAM ;
ALTER TABLE `fundraising` ADD UNIQUE (type,year);
-INSERT INTO `fundraising` ( `id` , `type` , `name` , `system` , `goal` , `year` ) VALUES ( '', 'general', 'General Funds', 'yes', '0', '-1');
-INSERT INTO `fundraising` ( `id` , `type` , `name` , `system` , `goal` , `year` ) VALUES ( '', 'awards', 'Award Sponsorships', 'yes', '0', '-1');
+INSERT INTO `fundraising` ( `id` , `type` , `name` , `description`, `system` , `goal` , `year` ) VALUES ( '', 'general', 'General Funds', 'General funds donated to the fair may be allocated as the fair organizers see fit','yes', '0', '-1');
+INSERT INTO `fundraising` ( `id` , `type` , `name` , `description`, `system` , `goal` , `year` ) VALUES ( '', 'awards', 'Award Sponsorships', 'Award Sponsorships are provided to allow an organization to sponsor a specific award that is given out at the fair', 'yes', '0', '-1');
ALTER TABLE `award_sponsors` RENAME `sponsors` ;
ALTER TABLE `sponsors` DROP `confirmed`;
@@ -56,3 +57,9 @@ CREATE TABLE `sponsorships_levels` (
`year` INT NOT NULL ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM ;
+
+INSERT INTO sponsorships_levels (`level`,`min`,`max`,`year`) VALUES ('Bronze','100','499',-1);
+INSERT INTO sponsorships_levels (`level`,`min`,`max`,`year`) VALUES ('Silver','500','999',-1);
+INSERT INTO sponsorships_levels (`level`,`min`,`max`,`year`) VALUES ('Gold','1000','10000',-1);
+
+
diff --git a/sponsor_main.php b/sponsor_main.php
index ab1800ab..c028d4e2 100644
--- a/sponsor_main.php
+++ b/sponsor_main.php
@@ -29,9 +29,14 @@
user_auth_required('sponsor');
send_header("Sponsor Main", array());
+ $u=user_load($_SESSION['users_id']);
+ //print_r($u);
+ $q=mysql_query("SELECT * FROM sponsors WHERE id='".$u['sponsors_id']."'");
+ $sponsor=mysql_fetch_object($q);
//only display the named greeting if we have their name
echo i18n("Hello %1",array($_SESSION['name']));
+ if($sponsor->organization) echo " ".i18n("from %1",array($sponsor->organization));
echo "
";
echo "
";
@@ -39,9 +44,50 @@
echo "
".i18n("Sponsorship Category")." | \n"; + echo "".i18n("Status")." | \n"; + echo "".i18n("Amount")." | \n"; + echo "".i18n("Action")." | "; + echo "
---|---|---|---|
$sr->name | \n"; + echo "$sr->status | "; + echo "".format_money($sr->value)." | "; + echo ""; + if($sr->status=="confirmed") { + echo "Pay Online\n"; + } + else if($sr->status=="pending") { + echo "id\">Confirm Funding\n"; + } + echo " "; + echo " | \n"; + echo "