Skip to content

Commit

Permalink
assignment quickgrading MDL-22610 fixed saveallmyfeedback form. posts…
Browse files Browse the repository at this point in the history
… now go thru to code and data enters DB fine.
  • Loading branch information
aparup committed May 31, 2010
1 parent 1fd3ea4 commit 8cb4148
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,17 @@ function display_submissions($message='') {
$assignment = $this->assignment;
$cm = $this->cm;

/// Print quickgrade form around the table
if ($quickgrade){
echo '<form action="submissions.php" id="fastg" method="post">';
echo '<div>';
echo '<input type="hidden" name="id" value="'.$this->cm->id.'" />';
echo '<input type="hidden" name="mode" value="fastgrade" />';
echo '<input type="hidden" name="page" value="'.$page.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '</div>';
}

$tabindex = 1; //tabindex for quick grading tabbing; Not working for dropdowns yet
add_to_log($course->id, 'assignment', 'view submission', 'submissions.php?id='.$this->cm->id, $this->assignment->id, $this->cm->id);
$PAGE->navbar->add($this->strsubmissions);
Expand Down Expand Up @@ -1384,17 +1395,6 @@ function display_submissions($message='') {
}
}

/// Print quickgrade form around the table
if ($quickgrade){
echo '<form action="submissions.php" id="fastg" method="post">';
echo '<div>';
echo '<input type="hidden" name="id" value="'.$this->cm->id.'" />';
echo '<input type="hidden" name="mode" value="fastgrade" />';
echo '<input type="hidden" name="page" value="'.$page.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '</div>';
}

$table->print_html(); /// Print the whole table

if ($quickgrade){
Expand Down

0 comments on commit 8cb4148

Please sign in to comment.