From be2491b093b1f0ca430bede679ecbb670041e483 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:46:45 +0400 Subject: restructuring of boca's git --- old/webcast/contest/index.php | 61 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 old/webcast/contest/index.php (limited to 'old/webcast/contest/index.php') diff --git a/old/webcast/contest/index.php b/old/webcast/contest/index.php new file mode 100644 index 0000000..3efc719 --- /dev/null +++ b/old/webcast/contest/index.php @@ -0,0 +1,61 @@ + 0'); + +$numProblems = DBnlines($r); + +$r = DBExec($c, + 'SELECT username, userfullname FROM usertable' . + ' WHERE contestnumber = ' . $contest . + ' AND userenabled = \'t\' AND usersitenumber = ' . $site . + ' AND usertype = \'team\''); + +$numTeams = DBnlines($r); + +echo + $numTeams . '' . + $numProblems . "\n"; + +for ($i = 0; $i < $numTeams; $i++) { + $a = DBRow($r, $i); + $teamID = $a['username']; + if(isset($a['usershortname'])) + $teamName = $a['usershortname']; + else + $teamName = $a['userfullname']; + if(isset($a['usershortinstitution'])) + $teamUni = $a['usershortinstitution']; + else + $teamUni = $teamName; + + echo + $teamID . '' . + $teamUni . '' . + $teamName . "\n"; +} + +echo '1' . '' . '1' . "\n"; +echo $numProblems . '' . 'Y' . "\n"; + +?> -- cgit v1.2.3