Index: lib.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/assignment/lib.php,v retrieving revision 1.277.2.47 diff -u -r1.277.2.47 lib.php --- lib.php 16 Feb 2009 13:09:01 -0000 1.277.2.47 +++ lib.php 19 May 2009 10:08:48 -0000 @@ -865,12 +865,19 @@ echo '}'."\n"; echo ''."\n"; - echo ''; + + echo '
'; + //echo '
'; ///Start of teacher info row - echo ''; - echo ''; + // start grading div + echo '
'; + + //echo '
'; - echo ''; + echo ''; + * */ + + + //echo ''; + ///End of teacher info row, Start of student info row - echo ''; - echo ''; - echo ''; - echo ''; + echo '
'; + echo ''; ///End of student info row + echo ''; - echo '
'; + //echo '
'; + /* + echo '
'; if ($submission->teacher) { $teacher = get_record('user', 'id', $submission->teacher); } else { @@ -878,53 +885,36 @@ $teacher = $USER; } print_user_picture($teacher, $this->course->id, $teacher->picture); - echo '
'; - echo '
'; - echo '
'; // xhtml compatibility - invisiblefieldset was breaking layout here - echo ''; - echo ''; - echo ''; - echo ''; - echo '';//selected menu index + //echo '
'; + echo ''; + echo '
'; // xhtml compatibility - invisiblefieldset was breaking layout here + echo ''; + echo ''; + echo ''; + echo ''; + echo '';//selected menu index //new hidden field, initialized to -1. - echo ''; + echo ''; if ($submission->timemarked) { - echo '
'; - echo '
'.fullname($teacher, true).'
'; - echo '
'.userdate($submission->timemarked).'
'; - echo '
'; - } - echo '
'; - choose_from_menu(make_grades_menu($this->assignment->grade), 'grade', $submission->grade, get_string('nograde'), '', -1, false, $disabled); - echo '
'; - - echo '
'; - echo '
'.get_string('finalgrade', 'grades').': '.$grading_info->items[0]->grades[$userid]->str_grade.'
'; - echo '
'; - - if (!empty($CFG->enableoutcomes)) { - foreach($grading_info->outcomes as $n=>$outcome) { - echo '
'; - $options = make_grades_menu(-$outcome->scaleid); - if ($outcome->grades[$submission->userid]->locked) { - $options[0] = get_string('nooutcome', 'grades'); - echo $options[$outcome->grades[$submission->userid]->grade]; - } else { - choose_from_menu($options, 'outcome_'.$n.'['.$userid.']', $outcome->grades[$submission->userid]->grade, get_string('nooutcome', 'grades'), '', 0, false, false, 0, 'menuoutcome_'.$n); - } - echo '
'; - echo '
'; - } + echo '
'; + echo '
'.fullname($teacher, true).'
'; + echo '
'.userdate($submission->timemarked).'
'; + echo '
'; } + $this->preprocess_submission($submission); if ($disabled) { - echo '
'.$grading_info->items[0]->grades[$userid]->str_feedback.'
'; + echo '
'.$grading_info->items[0]->grades[$userid]->str_feedback.'
'; } else { print_textarea($this->usehtmleditor, 14, 58, 0, 0, 'submissioncomment', $submission->submissioncomment, $this->course->id); @@ -941,46 +931,83 @@ $lastmailinfo = get_user_preferences('assignment_mailinfo', 1) ? 'checked="checked"' : ''; ///Print Buttons in Single View - echo ''; - echo ''; - echo '
'; - echo ''; - echo ''; + echo ''; + echo ''; + echo '
'; + echo ''; + echo ''; //if there are more to be graded. if ($nextid) { - echo ''; - echo ''; + echo ''; + echo ''; } + echo '
'; // end buttons + + + + // adding grade bit here to save space + echo '
'; + choose_from_menu(make_grades_menu($this->assignment->grade), 'grade', $submission->grade, get_string('nograde'), '', -1, false, $disabled); + echo '
'; + + echo '
'; + echo '
'.get_string('finalgrade', 'grades').': '.$grading_info->items[0]->grades[$userid]->str_grade.'
'; + echo '
'; + + if (!empty($CFG->enableoutcomes)) { + foreach($grading_info->outcomes as $n=>$outcome) { + echo '
'; + $options = make_grades_menu(-$outcome->scaleid); + if ($outcome->grades[$submission->userid]->locked) { + $options[0] = get_string('nooutcome', 'grades'); + echo $options[$outcome->grades[$submission->userid]->grade]; + } else { + choose_from_menu($options, 'outcome_'.$n.'['.$userid.']', $outcome->grades[$submission->userid]->grade, get_string('nooutcome', 'grades'), '', 0, false, false, 0, 'menuoutcome_'.$n); + } + echo '
'; + echo '
'; + } + } + + + // end xhtml fixing div + echo '
'; + // end grading div echo '
'; - echo ''; $customfeedback = $this->custom_feedbackform($submission, true); if (!empty($customfeedback)) { echo $customfeedback; } - echo '
'; - print_user_picture($user, $this->course->id, $user->picture); - echo ''; - echo '
'; - echo '
'.fullname($user, true).'
'; + echo '
'; + + print_user_picture($user, $this->course->id, $user->picture); + + echo '
'; + echo '
'.fullname($user, true).'
'; if ($submission->timemodified) { - echo '
'.userdate($submission->timemodified). - $this->display_lateness($submission->timemodified).'
'; + echo '
'.userdate($submission->timemodified). + $this->display_lateness($submission->timemodified).'
'; } - echo '
'; + echo '
'; + + + + // this contains the div that should scroll for online text assignments + echo '
'; $this->print_user_files($user->id); - echo '
'; + // end overall feedback div + echo ''; if (!$disabled and $this->usehtmleditor) { use_html_editor(); Index: styles.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/assignment/styles.php,v retrieving revision 1.16.2.3 diff -u -r1.16.2.3 styles.php --- styles.php 3 Mar 2008 05:54:43 -0000 1.16.2.3 +++ styles.php 19 May 2009 10:13:27 -0000 @@ -174,3 +174,40 @@ margin-top: 0.5em; } +/* Extra bits added for the CSS feedback pop-up */ + +#mod-assignment-submissions .from, +#mod-assignment-submissions .userpicture, +#mod-assignment-submissions .buttons { + float: left; +} +#mod-assignment-submissions #wordcount { + clear: none; +} +#mod-assignment-submissions .user_files { + margin-top: 10px; + margin-bottom: 10px; +} +#mod-assignment-submissions .grading_div .grade, #mod-assignment-submissions #wordcount { + float: right; +} +#mod-assignment-submissions .from { + width: 300px; + clear: none; +} +#mod-assignment-submissions .userpicture { + vertical-align: top; +} +#mod-assignment-submissions div.user_files .generalbox { + height: 200px; + overflow-y: scroll; +} +#mod-assignment-submissions #wordcount { + width: 100px; + clear: none; + height: auto; + overflow-y: auto; +} +#mod-assignment-submissions #student_info { + width: 100%; +} \ No newline at end of file