forked from science-ation/science-ation
Show sponsors from all years, make the rollover script simply unconfirm all of the sponsors so they can be reconfirmed for the new year.
This commit is contained in:
parent
2778faf4c9
commit
7d7dd74b18
@ -140,7 +140,9 @@
|
||||
echo " <th>Action</th>";
|
||||
echo "</tr>\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 "<tr>\n";
|
||||
|
@ -142,6 +142,8 @@
|
||||
'".mysql_escape_string($r->ord)."',
|
||||
'".mysql_escape_string($newfairyear)."')");
|
||||
|
||||
echo i18n("Unconfirming award sponsors")." <br />";
|
||||
mysql_query("UPDATE award_sponsors SET confirmed='no'");
|
||||
|
||||
echo i18n("Rolling awards")."<br />";
|
||||
//awards
|
||||
@ -181,7 +183,7 @@
|
||||
|
||||
}
|
||||
|
||||
echo i18n("Rolling award prizes")."<br />";
|
||||
echo i18n(" Rolling award prizes")."<br />";
|
||||
$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))
|
||||
|
@ -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 <br />\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')");
|
||||
|
Loading…
Reference in New Issue
Block a user