echo '<div class="emptylist">No Puzzles To Add</div><br/>'; } else { ?> <form action="form-submit.php" method="post"> <input type="hidden" name="uid" value="<?php echo $uid; ?> " /> <input type="submit" name="getTestAdminPuzz" value="Get Puzzle" /> </form> <?php } displayTestQueue($uid); } echo "<h2>Puzzles needing testadmin</h2>"; $testPuzzles = getPuzzlesNeedTestAdmin(); // Should we show "testers" identities? No, // but we've gotten lazy about using the testadmin system, which means // I need to see testers for puzzles that have no testadmin. displayQueue($uid, $puzzles, "notes summary testers", FALSE); echo "<h2>Testing Feed</h2>"; echo "<table>"; echo "<div class='comments'>"; displayTestingFeed(); echo "</div>"; echo "</table>"; echo "<h2>Testing Summary</h2>"; displayTestingSummary(); // End HTML foot(); //------------------------------------------------------------------------
function getPuzzleForTestAdminQueue($uid) { $puzzles = getPuzzlesNeedTestAdmin(); if (!$puzzles) { return FALSE; } foreach ($puzzles as $pid) { if (canTestAdminPuzzle($uid, $pid)) { return $pid; } } return FALSE; }