| ');
+ if (defined($sone{$_})) { $r->print($sone{$_}."\n"); }
+ if (defined($stwo{$_})) { $r->print($stwo{$_}."\n"); }
+ if (defined($sthree{$_})) { $r->print($sthree{$_}."\n"); }
+ $r->print(' |
');
+ $i++;
+ }
+ $i--;
+ return($i);
}
1;
__END__;
+
+=pod
+
+=back
+
+=head2 Access .tab File Data
+
+=over 4
+
+=item languageids()
+
+returns list of all language ids
+
+=item languagedescription()
+
+returns description of a specified language id
+
+=item copyrightids()
+
+returns list of all copyrights
+
+=item copyrightdescription()
+
+returns description of a specified copyright id
+
+=item filecategories()
+
+returns list of all file categories
+
+=item filecategorytypes()
+
+returns list of file types belonging to a given file
+category
+
+=item fileembstyle()
+
+returns embedding style for a specified file type
+
+=item filedescription()
+
+returns description for a specified file type
+
+=item filedescriptionex()
+
+returns description for a specified file type with
+extra formatting
+
+=back
+
+=head2 Alternate Problem Views
+
+=over 4
+
+=item get_previous_attempt()
+
+return string with previous attempt on problem
+
+=item get_student_view()
+
+show a snapshot of what student was looking at
+
+=item get_student_answers()
+
+show a snapshot of how student was answering problem
+
+=back
+
+=head2 HTTP Helper
+
+=over 4
+
+=item get_unprocessed_cgi($query,$possible_names)
+
+Modify the %ENV hash to contain unprocessed CGI form parameters held in
+$query. The parameters listed in $possible_names (an array reference),
+will be set in $ENV{'form.name'} if they do not already exist.
+
+Typically called with $ENV{'QUERY_STRING'} as the first parameter.
+$possible_names is an ref to an array of form element names. As an example:
+get_unprocessed_cgi($ENV{'QUERY_STRING'},['uname','udom']);
+will result in $ENV{'form.uname'} and $ENV{'form.udom'} being set.
+
+=item cacheheader()
+
+returns cache-controlling header code
+
+=item nocache()
+
+specifies header code to not have cache
+
+=item add_to_env($name,$value)
+
+adds $name to the %ENV hash with value
+$value, if $name already exists, the entry is converted to an array
+reference and $value is added to the array.
+
+=back
+
+=cut