#if printing a single question, get the dcs topic that it falls under
if($qid) {$dcsid=getQuestionTopic($qid);}
echo dcs2Str($dcs,$dcsid);
?>

$str='';
if($dcsid and !$qid) {#view question list
$ids=getIds($dcsid); #list of question IDs
if($ids!='') {#questions for this area
$str.=printBodyTitle("Questions and Solutions");
$groups=getIdGroups($ids,10); #break into groups of ids
$str.=printIdGroups($groups); #print the group ranges
$str.='

';
$str.=printHiddenVariables();
// $str.=printFilterForm();
$str.=printQuestionList($groups,$groupnum); #print a list of questions for a particular group
$str.='';
$str.=printIdGroups($groups); #print the group ranges
$str.='