Index: openacs-4/packages/assessment/lib/session-items.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/session-items.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/assessment/lib/session-items.adp 2 Mar 2005 17:18:25 -0000 1.5 +++ openacs-4/packages/assessment/lib/session-items.adp 11 Mar 2005 20:21:48 -0000 1.6 @@ -6,66 +6,113 @@ - + @items.name@:#assessment.Question# @items.rownum@: - (#assessment.max_time# @items.max_time_to_complete@) + (#assessment.max_time# @items.max_time_to_complete@)   - + - - @items.result_points@ / @items.points@ #assessment.points# + + @items.result_points@ / @items.points@ #assessment.points# - : @items.feedback;noquote@ - - + : @items.feedback;noquote@ - - #assessment.not_yet_reviewed# - #assessment.not_answered# - - #assessment.Edit# - + + + + #assessment.not_yet_reviewed# + #assessment.not_answered# + + #assessment.Edit# + - +  - + -
- @items.title;noquote@
- - - @formgroup.widget;noquote@ @formgroup.label;noquote@
-
+ + @items.title;noquote@ + + + + + + + + + - - @items.html;noquote@ - - - - - -
- [i] - @items.subtext@ -
-
+
+
+ + + + + + + +
@items.description@ + + +
@items.result_points@ / @items.points@ #assessment.points# + + :
@items.feedback;noquote@
+
+
+
+ +
#assessment.not_yet_reviewed#
+
#assessment.not_answered#
+
+ #assessment.Edit# + +
+
+
+ @formgroup.widget;noquote@ @formgroup.label;noquote@
+
+ + +
+ @formgroup.widget;noquote@ @formgroup.label;noquote@ + +
+ + + +
@formgroup.widget;noquote@ @formgroup.label;noquote@
+ + + + @items.html;noquote@ + + + + + +
+ [i] + @items.subtext@ +
+
+
Index: openacs-4/packages/assessment/lib/session-items.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/session-items.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/assessment/lib/session-items.tcl 2 Mar 2005 17:18:25 -0000 1.5 +++ openacs-4/packages/assessment/lib/session-items.tcl 11 Mar 2005 20:21:48 -0000 1.6 @@ -7,14 +7,19 @@ } # todo: display feedback text -db_multirow -extend { presentation_type html result_points feedback answered_p } items session_items {} { +db_multirow -extend { presentation_type html result_points feedback answered_p choice_orientation next_title num } items session_items {} { set default_value [as::item_data::get -subject_id $subject_id -as_item_id $as_item_id -session_id $session_id] set presentation_type [as::item_form::add_item_to_form -name session_results_$section_id -section_id $section_id -item_id $as_item_id -session_id $session_id -default_value $default_value -show_feedback $show_feedback] if {$presentation_type == "fitb"} { regsub -all -line -nocase -- { - select i.as_item_id, i.subtext, cr.title, ci.name, ism.required_p, - ism.section_id, ism.sort_order, i.feedback_right, i.feedback_wrong, - ism.max_time_to_complete, ism.points + select i.as_item_id, i.subtext, cr.title, cr.description, ci.name, + ism.required_p, ism.section_id, ism.sort_order, i.feedback_right, + i.feedback_wrong, ism.max_time_to_complete, ism.points from as_items i, cr_revisions cr, cr_items ci, as_item_section_map ism, as_session_items si where ci.item_id = cr.item_id @@ -21,4 +21,16 @@ + + + + select d.choice_orientation + from as_item_rels r, as_item_display_$presentation_type d + where r.item_rev_id = :as_item_id + and r.rel_type = 'as_item_display_rel' + and r.target_rev_id = d.as_item_display_id + + + + Index: openacs-4/packages/assessment/www/assessment-section-submit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/assessment-section-submit.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/assessment/www/assessment-section-submit.adp 11 Mar 2005 18:54:12 -0000 1.5 +++ openacs-4/packages/assessment/www/assessment-section-submit.adp 11 Mar 2005 20:21:48 -0000 1.6 @@ -43,12 +43,14 @@ - - - - @formgroup.label;noquote@ - - + + + + + @formgroup.label;noquote@ + + + @items.description@ @@ -86,7 +88,7 @@
-
+