From 7d7dd74b188f8db28849bc3660b70ed674beab2e Mon Sep 17 00:00:00 2001 From: james Date: Wed, 26 Jul 2006 14:38:21 +0000 Subject: [PATCH] Show sponsors from all years, make the rollover script simply unconfirm all of the sponsors so they can be reconfirmed for the new year. --- admin/award_sponsors.php | 4 +++- config/rollover.php | 4 +++- scripts/judges_fake.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/award_sponsors.php b/admin/award_sponsors.php index 1d7d181..ef745ce 100644 --- a/admin/award_sponsors.php +++ b/admin/award_sponsors.php @@ -140,7 +140,9 @@ echo " Action"; echo "\n"; - $q=mysql_query("SELECT * FROM award_sponsors WHERE year='".$config['FAIRYEAR']."' ORDER BY organization"); + //$q=mysql_query("SELECT * FROM award_sponsors WHERE year='".$config['FAIRYEAR']."' ORDER BY organization"); + //we want to show all years, infact that year field probably shouldnt even be there. + $q=mysql_query("SELECT * FROM award_sponsors ORDER BY organization"); while($r=mysql_fetch_object($q)) { echo "\n"; diff --git a/config/rollover.php b/config/rollover.php index aeb6a1d..149367b 100644 --- a/config/rollover.php +++ b/config/rollover.php @@ -142,6 +142,8 @@ '".mysql_escape_string($r->ord)."', '".mysql_escape_string($newfairyear)."')"); + echo i18n("Unconfirming award sponsors")."
"; + mysql_query("UPDATE award_sponsors SET confirmed='no'"); echo i18n("Rolling awards")."
"; //awards @@ -181,7 +183,7 @@ } - echo i18n("Rolling award prizes")."
"; + echo i18n("  Rolling award prizes")."
"; $q2=mysql_query("SELECT * FROM award_prizes WHERE year='$currentfairyear' AND award_awards_id='$r->id'"); echo mysql_error(); while($r2=mysql_fetch_object($q2)) diff --git a/scripts/judges_fake.php b/scripts/judges_fake.php index 8c38bfc..e645d53 100644 --- a/scripts/judges_fake.php +++ b/scripts/judges_fake.php @@ -103,8 +103,8 @@ for($x=0;$x<$numjudges;$x++) echo "Creating $firstname $lastname ($email) s=$years_school r=$years_regional n=$years_national wc=$willing_chair
\n"; - //there's a 1 in 30 chance that this judge is not yet completed their info - $compnum=rand(0,30); + //there's a 1 in 20 chance that this judge is not yet completed their info + $compnum=rand(0,20); if($compnum==1) $complete="no"; else $complete="yes"; $q=mysql_query("INSERT INTO judges (firstname,lastname,email,years_school,years_regional,years_national,willing_chair,complete) VALUES ('$firstname','$lastname','$email','$years_school','$years_regional','$years_national','$willing_chair','$complete')");