forked from science-ation/science-ation
Add time availability to the judge info popup
This commit is contained in:
parent
241d9ad1c1
commit
57017cccc0
@ -92,6 +92,16 @@ echo "</table>";
|
||||
echo "<table>";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo " <th valign=\"top\" align=\"right\" colspan=\"2\">".i18n("Time Availability").":</th><td colspan=\"2\">";
|
||||
$q = mysql_query("SELECT * FROM judges_availability WHERE users_id=\"{$judgeinfo['id']}\" ORDER BY `start`");
|
||||
$sel = array();
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
$st = substr($r->start, 0, 5);
|
||||
$end = substr($r->end, 0, 5);
|
||||
echo "$st - $end<br />";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
echo "<tr>";
|
||||
echo " <th valign=\"top\" align=\"right\" colspan=\"2\">".i18n("Age category preference").":</th><td colspan=\"2\">";
|
||||
|
||||
$q=mysql_query("SELECT * FROM projectcategories
|
||||
@ -130,7 +140,7 @@ echo "<h3>Areas of Expertise</h3>";
|
||||
echo "<table class=\"viewtable\">";
|
||||
|
||||
//grab the list of divisions, because the last fields of the table will be the sub-divisions
|
||||
$q=mysql_query("SELECT * FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' ORDER BY id");
|
||||
$q=mysql_query("SELECT * FROM projectdivisions WHERE year='{$config['FAIRYEAR']}' ORDER BY id");
|
||||
$divs=array();
|
||||
while($r=mysql_fetch_object($q))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user