auth["uid"]; $dbp = new $DATABASE; $query = "select * from probe where published=1 AND startdate <= now()"; $dbp->query($query); $numprobes = $dbp->num_rows(); // make sure there are some if ($numprobes < 1) fatalError("Sorry, but there are no published probes available right now."); print ("

Probe Selection Page

\n

\n"); ?>

next_record(); // have they taken this probe? $thisprobe = $dbp->f("ID"); $completion = haveTaken($thisprobe, $uid); switch($completion) { case 0: // never took it before $txt = "Take this probe"; $url = "post.php?pID=$thisprobe"; break; case 2: // partially completed // which question do they do next? $nextQ = getNextQuestion($thisprobe, $uid); $txt = "Complete this probe"; $url = "post.php?pID=$thisprobe&qID=$nextQ"; break; case 1: // already took it $txt = "Review this probe"; $url = "view.php?pID=$thisprobe"; // if they are a teacher, 'review' means see all Q's without the extra info! if (isAdult($uid)) $url .= "&noanswers=1"; break; } print ("\n"); // name of the probe print (""); // the user's choices // if they're a teacher, tack on a third column offering the stats for the probe... // and a fourth to let them see the if (isAdult($uid)) { $url = $sess->url("/probe/view.php?pID=$thisprobe"); print ("\n"); } // and finally, if they're an admin of some sort, give them the ability to edit this sucker. if ($perm->has_one_perm("uberadmin,netadmin")) { $editurl = $sess->url("/probe/edit.php?pID=$thisprobe"); print ("\n"); } print (""); } if ($perm->has_one_perm("uberadmin,netadmin")) { $editlisturl = $sess->url("/probe/edit.php"); print ("\n"); } if (isAdult($uid)) { $url = $sess->url("http://intec.kidsolve.com/messageboard/list.php?mID=3&fID=2"); print "\n"; } ?>
". $dbp->f("name") . "url("/probe/".$url) . "\">" . $txt . " Statistics and
Discussion
Edit this Probe
To create new Probes or to edit unpublished Probes, click here
To see notes and old summaries of these probes, click here.