--- doc/homework/homework5.html 2002/03/28 22:55:35 1.13
+++ doc/homework/homework5.html 2002/05/03 18:34:20 1.14
@@ -885,7 +885,7 @@
$external::part - set to the id of the current problem
- <part>; zero if there are now <part>
+ <part>; zero if there are no <part>
$external::gradestatus - set to the value of the current
@@ -893,7 +893,7 @@
$external::datestatus - set to the current status of the clock
- either CLOSED, CAN_ANSWER, CANNOT_ANSWER, or SHOW_ANSWER
+ either CLOSED, CAN_ANSWER, CANNOT_ANSWER, SHOW_ANSWER, or UNCHECKEDOUT
$external::randomseed - set to the number that was used to
@@ -903,12 +903,74 @@
$rad2deg - converts radians to degrees
$deg2rad - converts degrees to radians
-
+
+ Form internals
+ Form elements used for homework editing/response
+ the form is named lonhomework
+ Viewing a problem (either CSTR or RES space)
+
+ -
+ grade_target, grade_username, grade_domain, grade_symb - the
+ vaules take precedence over the the normal ENV settings of
+ these, use &Apache::lonxml::whichuser() to get back the
+ correct vaues of the items
+
+ -
+ HWVAL_response:number - the name of the input elements for each response. The response is the response's ID, and the :number part exists only for response with multiple foils, and is a unique number in order of the submission
+
+ -
+ changerandseed - the 'Change' button, only exists right after
+ the Change button is clicked
+
+ -
+ problemmode - in CSTR, it is either 'View','Edit','EditXML' or
+ 'Analyze' depending on the desired view
+
+ -
+ rndseed - the currently requested random seed
+
+ -
+ showallfoils - if it exists, and we are in CSTR space, the
+ problem should ignore <conceptgroup> and the response's
+ max setting and show all possible foils
+
+ -
+ submit - the name of the Submit button
+
+ -
+ submitted - a hidden form parameter that can be used to tell
+ if the student has submitted answers or not, if it is set,
+ there should be answers to grade.
+
+
+ Editing a problem (Edit mode)
+ tagdepth referes to the current value of the xmlparsers tagdepth couter ($Apache::lonxml::currentdepth)
+ Note: the file edit.pm has many helper functions for creating the standard elements for editing a tag and it's attributes, all of those functions follow these conventions
+
+ -
+ tagdepth_argname - I.E. 1_3.max, a parameter editing value,
+ max is the name of the parameter and it is for the third tag
+ inside the first tag
+
+ -
+ delete_tagdepth - if set to yes, delete tag tagdepth and all
+ tags inside of it
+
+ -
+ homework_edit_tagdepth - used by both &Apache::edit::editline
+ and &Apache::edit::editfield for the <textarea> and
+ <input> form elements they create
+
+ -
+ insert_tagdepth - used to request an tag insert, it is set to
+ the id number of the requested tag in the
+ %Apache::lonxml::insertlist
+
Guy Albertelli
-Last modified: Thu Mar 28 17:59:42 EST 2002
+Last modified: Fri May 3 14:24:52 EDT 2002