<div class="box-body"> <div class="table-responsive"> <table class="table no-margin"> <thead> <tr> <th>Puzzle ID</th> <th>Name</th> <th>Status</th> <th>Featured</th> <th>Created At</th> <th>Actions</th> </tr> </thead> <tbody> <?php $result = getAllPuzzles(); if ($result > 0) { while ($puzzle = mysql_fetch_array($result)) { ?> <tr> <td><?php echo $puzzle['puzzle_id']; ?> </td> <td><?php echo $puzzle['puzzle_name']; ?> </td> <td><a href="update-puzzle-status.php?id=<?php echo $puzzle['puzzle_id']; ?>
foreach ($authors as $uid => $fullname) { $slct = selected('author', $uid); echo "<option value='{$uid}' {$slct}>{$fullname}</option>"; } ?> </select> <input type="submit" value="Filter author"> </form> <form method="get" action="allpuzzles.php" class="inlform"> <input type="hidden" name="filterkey" value="tag"> <select name="filtervalue"> <option value='-'>-</option> <?php $tags = getAllTags(); asort($tags); foreach ($tags as $tid => $name) { $slct = selected('tag', $tid); echo "<option value='{$tid}' {$slct}>{$name}</option>"; } ?> </select> <input type="submit" value="Filter tag"> </form> </div> <?php $puzzles = getAllPuzzles(); $uid = isLoggedIn(); echo "(Hiding dead puzzles by default)<br><br>"; displayQueue($uid, $puzzles, "notes answer summary editornotes tags authorsandeditors", FALSE, $filt); // End HTML foot();